|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.singularsys.jep.configurableparser.matchers.FunctionGrammarMatcher
public class FunctionGrammarMatcher
A GrammarMatcher which matches functions in the form 'atan2(y,x)'. The function must be in the FunctionTable and brackets are required.
Constructor Summary | |
---|---|
FunctionGrammarMatcher(Token open,
Token close,
Token comma)
Create a FunctionGrammarMatcher |
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)
Attempt to match a function, calls the GrammarParser.parseSubExpression() to match function arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FunctionGrammarMatcher(Token open, Token close, Token comma)
open
- token representing an opening bracketclose
- token representing a closing bracketcomma
- token representing a list item separatorMethod 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
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 |