Package org.jnode.shell

Examples of org.jnode.shell.ArgumentCompleter


                case TOK_PATTERN:
                case TOK_CASE_WORD:
                    // Ignore for purposes of completion
                    break;
                case TOK_ASSIGNMENT:
                    ArgumentCompleter ac = new ArgumentCompleter(
                            new AssignmentArgument("?", context, Argument.MANDATORY, null), token);
                    ac.complete(completions, shell);
                    break;
                case TOK_FOR_WORD:
                case TOK_FILE_NAME:
                    // Complete against the file system namespace
                    ac = new ArgumentCompleter(
                            new FileArgument("?", Argument.MANDATORY, null), token);
                    ac.complete(completions, shell);
                    break;
                case TOK_COMMAND_NAME:
                    // Complete against the command/alias/function namespaces
                    completeCommandWord(completions, shell, token);
                    break;
View Full Code Here


        for (String builtinName : BjorneInterpreter.BUILTINS.keySet()) {
            if (builtinName.startsWith(token.text)) {
                completions.addCompletion(builtinName);
            }
        }
        ArgumentCompleter ac = new ArgumentCompleter(
                new AliasArgument("?", Argument.MANDATORY, null), token);
        ac.complete(completions, shell);
        ac = new ArgumentCompleter(
                new BjorneAliasNameArgument("?", context, Argument.MANDATORY, null), token);
        ac.complete(completions, shell);
    }
View Full Code Here

TOP

Related Classes of org.jnode.shell.ArgumentCompleter

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.