GetCommand() public method

Returns the current command for lightweight referencing.
public GetCommand ( ) : Command
return Command
Esempio n. 1
0
 public CommandRef(TextBuiltin clazz, String cn)
 {
     impl = (TextBuiltin)clazz;
     name = cn;
     Command cmd = impl.GetCommand();
     if (cmd != null)
     {
         common = cmd.common;
         complete = cmd.complete;
         usage = cmd.usage;
         cmdHelp = clazz.getCommandHelp();
     }
 }
Esempio n. 2
0
        public CommandRef(TextBuiltin clazz, String cn)
        {
            impl = (TextBuiltin)clazz;
            name = cn;
            Command cmd = impl.GetCommand();

            if (cmd != null)
            {
                common   = cmd.common;
                complete = cmd.complete;
                usage    = cmd.usage;
                cmdHelp  = clazz.getCommandHelp();
            }
        }