public class CompleteOperation extends Object
Constructor and Description |
---|
CompleteOperation(String buffer,
int cursor) |
Modifier and Type | Method and Description |
---|---|
void |
addCompletionCandidate(String completionCandidate) |
void |
addCompletionCandidates(List<String> completionCandidates) |
void |
doAppendSeparator(boolean appendSeparator)
Set if this CompletionOperation would allow an separator to
be appended.
|
String |
getBuffer() |
List<String> |
getCompletionCandidates() |
int |
getCursor() |
String |
getFormattedCompletion(String completion) |
List<String> |
getFormattedCompletionCandidates() |
int |
getOffset() |
char |
getSeparator()
Get the separator character, by default its space
|
boolean |
hasAppendSeparator()
Do this completion allow for appending a separator
after completion? By default this is true.
|
void |
removeEscapedSpacesFromCompletionCandidates() |
void |
setCompletionCandidates(List<String> completionCandidates) |
void |
setOffset(int offset) |
void |
setSeparator(char separator)
By default the separator is one space char, but
it can be overridden here.
|
String |
toString() |
public CompleteOperation(String buffer, int cursor)
public String getBuffer()
public int getCursor()
public int getOffset()
public void setOffset(int offset)
public char getSeparator()
public void setSeparator(char separator)
separator
- separatorpublic boolean hasAppendSeparator()
public void doAppendSeparator(boolean appendSeparator)
appendSeparator
- appendSeparatorpublic void addCompletionCandidate(String completionCandidate)
public void removeEscapedSpacesFromCompletionCandidates()
Copyright © 2015 JBoss by Red Hat. All rights reserved.