public class ParsedLineImpl extends Object implements CompletingParsedLine
| Constructor and Description |
|---|
ParsedLineImpl(org.apache.felix.gogo.runtime.Parser.Program program,
org.apache.felix.gogo.runtime.Token line,
int cursor,
List<org.apache.felix.gogo.runtime.Token> tokens) |
| Modifier and Type | Method and Description |
|---|---|
int |
cursor() |
CharSequence |
escape(CharSequence str,
boolean complete) |
String |
line() |
org.apache.felix.gogo.runtime.Parser.Program |
program() |
int |
rawWordCursor() |
int |
rawWordLength() |
String |
word() |
int |
wordCursor() |
int |
wordIndex() |
List<String> |
words() |
public ParsedLineImpl(org.apache.felix.gogo.runtime.Parser.Program program,
org.apache.felix.gogo.runtime.Token line,
int cursor,
List<org.apache.felix.gogo.runtime.Token> tokens)
public String word()
word in interface ParsedLinepublic int wordCursor()
wordCursor in interface ParsedLinepublic int wordIndex()
wordIndex in interface ParsedLinepublic List<String> words()
words in interface ParsedLinepublic String line()
line in interface ParsedLinepublic int cursor()
cursor in interface ParsedLinepublic org.apache.felix.gogo.runtime.Parser.Program program()
public int rawWordCursor()
rawWordCursor in interface CompletingParsedLinepublic int rawWordLength()
rawWordLength in interface CompletingParsedLinepublic CharSequence escape(CharSequence str, boolean complete)
escape in interface CompletingParsedLineCopyright © 2020. All rights reserved.