Package org.jnode.shell.syntax

Examples of org.jnode.shell.syntax.ClassNameArgument


   
    private final ClassNameArgument argClass;

    public ClassCommand() {
        super(help_super);
        argClass = new ClassNameArgument("className", Argument.SINGLE | Argument.MANDATORY, help_class);
        registerArguments(argClass);
    }
View Full Code Here


    private final IntegerArgument argLevel;
    private final FlagArgument argTest;

    public CompileCommand() {
        super(help_super);
        argClass = new ClassNameArgument("className", Argument.MANDATORY, help_class);
        argLevel = new IntegerArgument("level", Argument.OPTIONAL, 0, maxLevel, help_level);
        argTest  = new FlagArgument("test", Argument.OPTIONAL, help_test);
        registerArguments(argClass, argLevel, argTest);
    }
View Full Code Here

    private final IntegerArgument argLevel;
    private final FlagArgument argTest;

    public DisassembleCommand() {
        super(help_super);
        argClass  = new ClassNameArgument("className", Argument.MANDATORY, help_class);
        argMethod = new StringArgument("methodName", Argument.OPTIONAL, help_method);
        argLevel  = new IntegerArgument("level", Argument.OPTIONAL, 0, maxLevel, help_level);
        argTest   = new FlagArgument("test", Argument.OPTIONAL, help_test);
        registerArguments(argClass, argMethod, argLevel, argTest);
    }
View Full Code Here

    private final ClassNameArgument argClass;
    private final StringArgument argArgs;

    public JavaCommand() {
        super(help_super);
        argClass = new ClassNameArgument("className", Argument.MANDATORY, help_class);
        argArgs  = new StringArgument("arg", Argument.OPTIONAL | Argument.MULTIPLE, help_args);
        registerArguments(argArgs, argClass);
    }
View Full Code Here

    private final AliasArgument argRemove;
   
    public AliasCommand() {
        super(help_super);
        argAlias  = new AliasArgument("alias", Argument.OPTIONAL, help_alias);
        argClass  = new ClassNameArgument("className", Argument.OPTIONAL, help_class);
        argRemove = new AliasArgument("remove", Argument.OPTIONAL, help_remove);
        registerArguments(argAlias, argClass, argRemove);
    }
View Full Code Here

        argVariant  = new StringArgument("variant", Argument.OPTIONAL, help_variant);
        argTriple   = new FlagArgument("triple", Argument.OPTIONAL, help_triple);
        argAdd      = new FlagArgument("add", Argument.OPTIONAL, help_add);
        argRemove   = new FlagArgument("remove", Argument.OPTIONAL, help_remove);
        argSet      = new FlagArgument("set", Argument.OPTIONAL, help_set);
        argClass    = new ClassNameArgument("class", Argument.OPTIONAL, help_class);
        registerArguments(argTriple, argLayout, argCountry, argLanguage, argVariant,
                          argAdd, argRemove, argSet, argClass);
    }
View Full Code Here

    private final AliasArgument ARG_REMOVE;

    public MyAliasCommand() {
        super("list, set or remove JNode command aliases");
        ARG_ALIAS = new AliasArgument("alias", Argument.OPTIONAL, "the alias to be added");
        ARG_CLASS = new ClassNameArgument("classname", Argument.OPTIONAL, "the classname");
        ARG_REMOVE = new AliasArgument("remove", Argument.OPTIONAL, "the alias to be removed");
        registerArguments(ARG_ALIAS, ARG_CLASS, ARG_REMOVE);
    }
View Full Code Here

TOP

Related Classes of org.jnode.shell.syntax.ClassNameArgument

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.