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
  • Field Details

  • Constructor Details

    • stl_Commands

      public stl_Commands()
    • stl_Commands

      public stl_Commands​(java.util.Map<java.lang.String,​stl_Commands.Commands_Fx> ARGUMENTS)
  • 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

      public void add​(java.lang.String argumentName, stl_Commands.Commands_Fx e)
    • run

      public void run()
      Specified by:
      run in interface java.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 interface stl_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