Package com.jackmeng.stl
Class stl_Commands
java.lang.Object
com.jackmeng.stl.stl_Commands
- All Implemented Interfaces:
stl_Callback<java.lang.String,java.lang.String>
,java.lang.Runnable
public class stl_Commands extends java.lang.Object implements java.lang.Runnable, stl_Callback<java.lang.String,java.lang.String>
A simple class to help with parsing String[] args or String... args
- Author:
- Jack Meng
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
stl_Commands.Commands_Fx
static class
stl_Commands.Commands_Type
static class
stl_Commands.Type_DYNAMIC
static class
stl_Commands.Type_HYBRID
static class
stl_Commands.Type_INFORMATIONAL
static class
stl_Commands.Type_STATIC
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,? super stl_Commands.Commands_Fx>
ARGUMENTS
-
Constructor Summary
Constructors Constructor Description stl_Commands()
stl_Commands(java.util.Map<java.lang.String,stl_Commands.Commands_Fx> ARGUMENTS)
-
Method Summary
Modifier and Type Method Description void
add(java.lang.String argumentName, stl_Commands.Commands_Fx e)
void
add(java.lang.String argumentName, stl_Commands.Commands_Type type, stl_Callback<java.lang.String,java.lang.String> callback)
java.lang.String
call(java.lang.String arg)
Call this callback with the specified attributes.void
run()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ARGUMENTS
-
-
Constructor Details
-
stl_Commands
public stl_Commands() -
stl_Commands
-
-
Method Details
-
add
public void add(java.lang.String argumentName, stl_Commands.Commands_Type type, stl_Callback<java.lang.String,java.lang.String> callback) -
add
-
run
public void run()- Specified by:
run
in interfacejava.lang.Runnable
-
call
public java.lang.String call(java.lang.String arg)Description copied from interface:stl_Callback
Call this callback with the specified attributes.- Specified by:
call
in interfacestl_Callback<java.lang.String,java.lang.String>
- Parameters:
arg
- The specified parameter type- Returns:
- The specified return type. Return "null" if the return type was set to
Void
-