Package org.apache.felix.gogo.runtime
Class Parser
- java.lang.Object
-
- org.apache.felix.gogo.runtime.Parser
-
public class Parser extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParser.Array[ a b ...] [ k1=v1 k2=v2 ...]static classParser.Closure{ program }static classParser.Executablestatic classParser.Operatorstatic classParser.Pipelinetoken1 | token2 | ...static classParser.Programpipe1 ; pipe2 ; ...static classParser.Sequence( program )static classParser.Statement
-
Field Summary
Fields Modifier and Type Field Description protected LinkedList<String>stackprotected List<Parser.Statement>statementsprotected List<Token>tokensprotected Tokenizertz
-
Constructor Summary
Constructors Constructor Description Parser(CharSequence line)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Parser.Arrayarray()Parser.Closureclosure()protected Tokenend(String str)protected Tokenexpect(String str)protected voidexpectNotNull()protected Tokennext()Parser.Programprogram()protected voidpush(Token t)Parser.Sequencesequence()protected Tokenstart(String str, String missing)Parser.Statementstatement()List<Parser.Statement>statements()List<Token>tokens()protected Tokenwhole(List<? extends Token> tokens, int index)protected Tokenwhole(Token b, Token e)
-
-
-
Field Detail
-
tz
protected final Tokenizer tz
-
stack
protected final LinkedList<String> stack
-
statements
protected final List<Parser.Statement> statements
-
-
Constructor Detail
-
Parser
public Parser(CharSequence line)
-
-
Method Detail
-
statements
public List<Parser.Statement> statements()
-
program
public Parser.Program program()
-
push
protected void push(Token t)
-
next
protected Token next()
-
sequence
public Parser.Sequence sequence()
-
closure
public Parser.Closure closure()
-
statement
public Parser.Statement statement()
-
array
public Parser.Array array()
-
expectNotNull
protected void expectNotNull()
-
-