|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 initialization, 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 separator| Method Detail |
|---|
public void init(Jep jep)
GrammarMatcher
init in interface GrammarMatcherjep - the current jep instance.
public Node match(Lookahead2Iterator<Token> it,
GrammarParser parser)
throws JepException
match in interface GrammarMatcherit - An iterator inspecting the inputparser - the parser to use when evaluating sub expressions
ParseException - if there is a syntactical error in the input.
JepException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||