public class ArrayAccessGrammarMatcher extends java.lang.Object implements GrammarMatcher
Constructor and Description |
---|
ArrayAccessGrammarMatcher(SymbolToken open,
SymbolToken close)
Construct a matcher for array access.
|
Modifier and Type | Method and Description |
---|---|
void |
init(Jep jep)
Delayed initialisation, this methods is called whenever components of the jep instance are changed.
|
Node |
match(Lookahead2Iterator<Token> it,
GrammarParser parser)
Test whether the input matches this pattern.
|
public ArrayAccessGrammarMatcher(SymbolToken open, SymbolToken close)
open
- token representing the opening delimiterclose
- token representing the closing delimiterpublic void init(Jep jep)
GrammarMatcher
init
in interface GrammarMatcher
jep
- the current jep instance.public Node match(Lookahead2Iterator<Token> it, GrammarParser parser) throws ParseException
GrammarMatcher
match
in interface GrammarMatcher
it
- An iterator inspecting the inputparser
- the parser to use when evaluating sub expressionsParseException
- if there is a syntactical error in the input.Copyright © 2018 Singular Systems http://www.singularsys.com/jep