public class CompletionContext extends Object
Constructor and Description |
---|
CompletionContext(List<String> words,
int wordIndex,
int position) |
Modifier and Type | Method and Description |
---|---|
String |
currentWord()
Return the whole word the cursor is in, or
null if the cursor is past the last word. |
String |
currentWordUpToCursor() |
CompletionContext |
drop(int nbWords)
Return a copy of this context, as if the first nbWords were not present
|
int |
getPosition() |
int |
getWordIndex() |
List<String> |
getWords() |
String |
upToCursor() |
public int getWordIndex()
public int getPosition()
public String upToCursor()
public String currentWord()
null
if the cursor is past the last word.public String currentWordUpToCursor()
public CompletionContext drop(int nbWords)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.