public class SingleArgFunctionMatcher extends java.lang.Object implements GrammarMatcher
Constructor and Description |
---|
SingleArgFunctionMatcher(Token open)
Constructor
|
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 SingleArgFunctionMatcher(Token open)
open
- token for normal functions like "sin(x)", if the open token is detected then match will return nullpublic 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.public void init(Jep jep)
GrammarMatcher
init
in interface GrammarMatcher
jep
- the current jep instance.Copyright © 2018 Singular Systems http://www.singularsys.com/jep