Skip to content

GenericUserIsTaken/JAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAS

Java Argument Selector, is a program that allows you to call a method from a class using user input from console to pick the parameters used in the mehtod call. The user also picks which overloaded method to call (if there are any).

Features

<<<<<<< Updated upstream

  • yes =======
  • Call a method from any class
  • User can choose which arguments to use
  • Can specify what options the user can choose from
  • Can specify custom toString (for the menu) for custom objects
  • Can save the users choices, and call the method later in the code
  • Default options for all primitive types (+ easy String setup)
  • Easy to add options for custom types

Example Usage

        String[] a = {"Epic","string"};
		TextMenu mainMenu = new TextMenu(a);

		DefaultOption<String> methodSelection = new DefaultOption.Builder<String>(a)
		.topline("Select string options")
		.customToString(n -> formatMethod(n))
		.width(1)
        .indicies({0,1,3})
		.build();
		mainMenu.setOption(methodSelection);

		mainMenu.PrepareFunctionCall(RandomRobotCode.class,"methodwewanttocall");
		//do whatever your code does for a while
		mainMenu.Call(new RandomRobotCode());

Stashed changes

About

Java Argument Selector

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages