org.springframework.shell.core
Class SimpleParser
java.lang.Object
org.springframework.shell.core.SimpleParser
- All Implemented Interfaces:
- Parser
public class SimpleParser
- extends Object
- implements Parser
Default implementation of Parser
.
- Since:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleParser
public SimpleParser()
parse
public ParseResult parse(String rawInput)
- Specified by:
parse
in interface Parser
commandNotFound
protected void commandNotFound(Logger logger,
String buffer)
complete
public int complete(String buffer,
int cursor,
List<String> candidates)
- Description copied from interface:
Parser
- Populates a list of completion candidates. This method is required for backward compatibility for STS versions up to 2.8.0.
- Specified by:
complete
in interface Parser
- Returns:
completeAdvanced
public int completeAdvanced(String buffer,
int cursor,
List<Completion> candidates)
- Description copied from interface:
Parser
- Populates a list of completion candidates.
- Specified by:
completeAdvanced
in interface Parser
- Returns:
obtainHelp
public void obtainHelp(String buffer)
getEveryCommand
public Set<String> getEveryCommand()
add
public final void add(CommandMarker command)
remove
public final void remove(CommandMarker command)
add
public final void add(Converter<?> converter)
remove
public final void remove(Converter<?> converter)