Package gnu.expr
Class CommandCompleter
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
gnu.expr.CommandCompleter
- All Implemented Interfaces:
Serializable
Handle command completion based on expression context.
The main entrypoint is the complete method.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final char
A pseudo-letter returned on a completion request.int
-
Constructor Summary
ConstructorsConstructorDescriptionCommandCompleter
(int prefixLength, List<String> candidates, String word, int wordCursor, Compilation comp) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
COMPLETE_REQUEST
public static final char COMPLETE_REQUESTA pseudo-letter returned on a completion request. This is typically where a TAB was typed.- See Also:
-
word
-
wordCursor
public int wordCursor -
candidates
-
-
Constructor Details
-
CommandCompleter
public CommandCompleter(int prefixLength, List<String> candidates, String word, int wordCursor, Compilation comp)
-
-
Method Details
-
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-
getCompilation
-