Package org.jnode.shell.syntax

Examples of org.jnode.shell.syntax.IntegerArgument


   
    private boolean up = true;
   
    public DebugCommand() {
        super(help_super);
        argPort = new IntegerArgument("port", Argument.OPTIONAL, help_port);
        registerArguments(argPort);
    }
View Full Code Here


    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 FlagArgument argUdp;

    public RemoteOutputCommand() {
        super(help_super);
        argAddress = new HostNameArgument("host", Argument.MANDATORY, help_addr);
        argPort    = new IntegerArgument("port", Argument.OPTIONAL, help_port);
        argUdp     = new FlagArgument("udp", Argument.OPTIONAL, help_udp);
        registerArguments(argAddress, argPort, argUdp);
    }
View Full Code Here

   
    private IntegerArgument argSeconds;
   
    public SleepCommand() {
        super(help_super);
        argSeconds = new IntegerArgument("seconds", Argument.MANDATORY, help_sec);
        registerArguments(argSeconds);
    }
View Full Code Here

    private InputHistory history;


    public HistoryCommand() {
        super(help_super);
        argIndex  = new IntegerArgument("index", Argument.OPTIONAL, help_index);
        argPrefix = new StringArgument("prefix", Argument.OPTIONAL, help_prefix);
        argTest   = new FlagArgument("test", Argument.OPTIONAL, help_test);
        registerArguments(argIndex, argPrefix, argTest);
    }
View Full Code Here

    private final LongArgument argMinTotalSize;
    private final StringArgument className;

    public OnHeapCommand() {
        super(HELP_SUPER);
        argMinInstanceCount = new IntegerArgument("minCount", Argument.OPTIONAL, 1, Integer.MAX_VALUE, HELP_INST);
        argMinTotalSize     = new LongArgument("minTotalSize", Argument.OPTIONAL, 1L, Long.MAX_VALUE, HELP_SIZE);
        className           = new StringArgument("className", Argument.OPTIONAL | Argument.MULTIPLE, HELP_CLASSNAME);
        registerArguments(argMinInstanceCount, argMinTotalSize, className);
    }
View Full Code Here

   
    private final IntegerArgument argID;

    public TerminateCommand() {
        super(help_super);
        argID = new IntegerArgument("id", Argument.MANDATORY | Argument.SINGLE, help_id);
        registerArguments(argID);
    }
View Full Code Here

       
        IgnoreCase   = new FlagArgument("ignore-case", 0, help_case);
        Invert       = new FlagArgument("invert", 0, help_invert);
        MatchWord    = new FlagArgument("word-match", 0, help_match_word);
        MatchLine    = new FlagArgument("line-match", 0, help_match_line);
        MaxCount     = new IntegerArgument("max-matches", 0, help_max);
        Quiet        = new FlagArgument("quiet", 0, help_quiet);
        Suppress     = new FlagArgument("suppress", 0, help_suppress);
        Debug        = new FlagArgument("debug", 0, help_debug);
        registerArguments(IgnoreCase, Invert, MatchWord, MatchLine, MaxCount, Quiet, Suppress, Debug);
       
        ShowCount       = new FlagArgument("show-count", 0, help_count);
        ShowFileNoMatch = new FlagArgument("show-files-nomatch", 0, help_file_nomatch);
        ShowFileMatch   = new FlagArgument("show-files-match", 0, help_file_match);
        ShowOnlyMatch   = new FlagArgument("show-only-match", 0, help_only_matching);
        registerArguments(ShowCount, ShowFileNoMatch, ShowFileMatch, ShowOnlyMatch);
       
        PrefixByte   = new FlagArgument("prefix-byte", 0, help_prefix_byte);
        PrefixFile   = new FlagArgument("prefix-file", 0, help_prefix_file);
        PrefixNoFile = new FlagArgument("prefix-nofile", 0, help_prefix_nofile);
        PrefixLabel  = new StringArgument("prefix-label", 0, help_prefix_label);
        PrefixLine   = new FlagArgument("prefix-line", 0, help_prefix_line);
        PrefixTab    = new FlagArgument("prefix-tab", 0, help_prefix_tab);
        PrefixNull   = new FlagArgument("prefix-null", 0, help_prefix_null);
        registerArguments(PrefixByte, PrefixFile, PrefixNoFile, PrefixLabel, PrefixLine, PrefixTab, PrefixNull);
       
        ContextAfter  = new IntegerArgument("show-context-after", 0, help_context_after);
        ContextBefore = new IntegerArgument("show-context-before", 0, help_context_before);
        ContextBoth   = new IntegerArgument("show-context-both", 0, help_context_both);
        registerArguments(ContextAfter, ContextBefore, ContextBoth);
       
        ModeBinary     = new StringArgument("mode-binary", 0, help_mode_binary);
        ModeDevice     = new StringArgument("mode-device", 0, help_mode_device);
        ModeDir        = new StringArgument("mode-dir", 0, help_mode_dir);
View Full Code Here

TOP

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

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.