Package gnu.expr
Class CommandCompleter
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- gnu.expr.CommandCompleter
-
- All Implemented Interfaces:
java.io.Serializable
public class CommandCompleter extends java.lang.RuntimeExceptionHandle 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 java.util.List<java.lang.String>candidatesstatic charCOMPLETE_REQUESTA pseudo-letter returned on a completion request.java.lang.StringwordintwordCursor
-
Constructor Summary
Constructors Constructor Description CommandCompleter(int prefixLength, java.util.List<java.lang.String> candidates, java.lang.String word, int wordCursor, Compilation comp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablefillInStackTrace()CompilationgetCompilation()
-
-
-
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 java.lang.String word
-
wordCursor
public int wordCursor
-
candidates
public java.util.List<java.lang.String> candidates
-
-
Constructor Detail
-
CommandCompleter
public CommandCompleter(int prefixLength, java.util.List<java.lang.String> candidates, java.lang.String word, int wordCursor, Compilation comp)
-
-
Method Detail
-
fillInStackTrace
public java.lang.Throwable fillInStackTrace()
- Overrides:
fillInStackTracein classjava.lang.Throwable
-
getCompilation
public Compilation getCompilation()
-
-