public class ParsedLineImpl extends Object implements org.jline.reader.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 org.jline.reader.ParsedLinepublic int wordCursor()
wordCursor in interface org.jline.reader.ParsedLinepublic int wordIndex()
wordIndex in interface org.jline.reader.ParsedLinepublic String line()
line in interface org.jline.reader.ParsedLinepublic int cursor()
cursor in interface org.jline.reader.ParsedLinepublic org.apache.felix.gogo.runtime.Parser.Program program()
public int rawWordCursor()
rawWordCursor in interface org.jline.reader.CompletingParsedLinepublic int rawWordLength()
rawWordLength in interface org.jline.reader.CompletingParsedLinepublic CharSequence escape(CharSequence str, boolean complete)
escape in interface org.jline.reader.CompletingParsedLineCopyright © 2006–2020 The Apache Software Foundation. All rights reserved.