Package javarepl.completion

Examples of javarepl.completion.CommandCompleter


    private static final String COMMAND = ":cls";
    private final Evaluator evaluator;
    private final ConsoleLogger logger;

    public ClearScreen(Evaluator evaluator, ConsoleLogger logger) {
        super(COMMAND + " - clear screen", equalTo(COMMAND).or(equalTo(null)), new CommandCompleter(COMMAND));
        this.evaluator = evaluator;
        this.logger = logger;
    }
View Full Code Here


    private static final String COMMAND = ":type";
    private final Evaluator evaluator;
    private final ConsoleLogger logger;

    public ShowTypeOfExpression(Evaluator evaluator, ConsoleLogger logger) {
        super(COMMAND + " <expression> - shows the type of an expression without affecting current context", startsWith(COMMAND), new CommandCompleter(COMMAND));

        this.evaluator = evaluator;
        this.logger = logger;
    }
View Full Code Here

    private static final String COMMAND = ":h?";
    private final ConsoleLogger logger;
    private final ConsoleHistory history;

    public SearchHistory(ConsoleLogger logger, ConsoleHistory history) {
        super(COMMAND + " <term> - searches the history", startsWith(COMMAND), new CommandCompleter(COMMAND));
        this.logger = logger;
        this.history = history;
    }
View Full Code Here

    private final ConsoleLogger logger;


    public ListValues(Evaluator evaluator, ConsoleLogger logger) {
        super(COMMAND + " <results|types|methods|imports|all> - list specified values",
                startsWith(COMMAND), new CommandCompleter(COMMAND, sequence("results", "methods", "imports", "types", "all")));

        this.evaluator = evaluator;
        this.logger = logger;
    }
View Full Code Here

    private static final String COMMAND = ":cp";
    private final Evaluator evaluator;
    private final ConsoleLogger logger;

    public AddToClasspath(Evaluator evaluator, ConsoleLogger logger) {
        super(COMMAND + " <path> - includes given file or directory in the classpath", startsWith(COMMAND), new CommandCompleter(COMMAND));
        this.evaluator = evaluator;
        this.logger = logger;
    }
View Full Code Here

    private static final String COMMAND = ":quit";
    private final Evaluator evaluator;
    private final ConsoleLogger logger;

    public QuitApplication(Evaluator evaluator, ConsoleLogger logger) {
        super(COMMAND + " - quit application", equalTo(COMMAND).or(equalTo(null)), new CommandCompleter(COMMAND));
        this.evaluator = evaluator;
        this.logger = logger;
    }
View Full Code Here

    private static final String COMMAND = ":load";
    private final Evaluator evaluator;
    private final ConsoleLogger logger;

    public LoadSourceFile(Evaluator evaluator, ConsoleLogger logger) {
        super(COMMAND + " <path> - loads source file ", startsWith(COMMAND), new CommandCompleter(COMMAND));
        this.evaluator = evaluator;
        this.logger = logger;
    }
View Full Code Here

    private static final String COMMAND = ":check";
    private final Evaluator evaluator;
    private final ConsoleLogger logger;

    public CheckExpression(Evaluator evaluator, ConsoleLogger logger) {
        super(COMMAND + " <syntax> - checks syntax of given single line expression and returns detailed report", startsWith(COMMAND), new CommandCompleter(COMMAND));
        this.evaluator = evaluator;
        this.logger = logger;
    }
View Full Code Here

    private final ConsoleLogger logger;
    private final Evaluator evaluator;
    private final ConsoleHistory history;

    public EvaluateFile(ConsoleLogger logger, Evaluator evaluator, ConsoleHistory history) {
        super(COMMAND + " <path> - evaluates all expressions from file (expression per line)", startsWith(COMMAND), new CommandCompleter(COMMAND));
        this.logger = logger;
        this.evaluator = evaluator;
        this.history = history;
    }
View Full Code Here

    private final Console console;
    private final ConsoleHistory history;
    private final ConsoleLogger logger;

    public EvaluateFromHistory(Console console, ConsoleHistory history, ConsoleLogger logger) {
        super(COMMAND + " num - evaluate expression from history)", startsWith(COMMAND), new CommandCompleter(COMMAND));
        this.console = console;
        this.history = history;
        this.logger = logger;
    }
View Full Code Here

TOP

Related Classes of javarepl.completion.CommandCompleter

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.