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.ParsedLine
public int wordCursor()
wordCursor
in interface org.jline.reader.ParsedLine
public int wordIndex()
wordIndex
in interface org.jline.reader.ParsedLine
public String line()
line
in interface org.jline.reader.ParsedLine
public int cursor()
cursor
in interface org.jline.reader.ParsedLine
public org.apache.felix.gogo.runtime.Parser.Program program()
public int rawWordCursor()
rawWordCursor
in interface org.jline.reader.CompletingParsedLine
public int rawWordLength()
rawWordLength
in interface org.jline.reader.CompletingParsedLine
public CharSequence escape(CharSequence str, boolean complete)
escape
in interface org.jline.reader.CompletingParsedLine
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.