|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.singularsys.jep.configurableparser.matchers.RoundBracketGrammarMatcher
public class RoundBracketGrammarMatcher
A GrammarMatcher which matches bracketed expressions.
Constructor Summary | |
---|---|
RoundBracketGrammarMatcher(Token open,
Token close)
Create a RoundBracketGrammarMatcher |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoundBracketGrammarMatcher(Token open, Token close)
open
- token representing an opening bracketclose
- token representing a closing bracketMethod Detail |
---|
public 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 expressions
ParseException
- if there is a syntactical error in the input.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |