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