public class CommandListParser extends Object implements Parser<List<CliSession.Action>>
Constructor and Description |
---|
CommandListParser(Parser<CliSession.Action> commandParser)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<CliSession.Action> |
parse(ParseSession session,
ParseContext ctx,
boolean complete)
Parse one or more commands and return the
CliSession.Action s corresponding to the parsed commands. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyIdentifierScope
public CommandListParser(Parser<CliSession.Action> commandParser)
commandParser
- single command parserpublic List<CliSession.Action> parse(ParseSession session, ParseContext ctx, boolean complete)
CliSession.Action
s corresponding to the parsed commands.parse
in interface Parser<List<CliSession.Action>>
session
- parse sessionctx
- input to parsecomplete
- false if parse is "for real", true if only for tab completion calculationCopyright © 2019. All rights reserved.