public class OperatorTokenMatcher extends java.lang.Object implements TokenMatcher
Constructor and Description |
---|
OperatorTokenMatcher()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
init(Jep j)
Initializes the
map and tokens member from the
list of operators in the operator table of the Jep instance. |
void |
init(OperatorTableI os)
Initializes the
map and tokens member from the
list of operators in the operator table. |
Token |
match(java.lang.String s)
Quickly checks whether the first characters of the string match any of
the supplied operator strings.
|
java.lang.String |
toString() |
public OperatorTokenMatcher()
init(com.singularsys.jep.Jep)
method.public void init(Jep j)
map
and tokens
member from the
list of operators in the operator table of the Jep instance.init
in interface TokenMatcher
j
- Jep instancepublic void init(OperatorTableI os)
map
and tokens
member from the
list of operators in the operator table.os
- the operator table to initialize with.
In Jep 3.5 and later there is one OperatorToken for each alternate symbol.public Token match(java.lang.String s)
match
in interface TokenMatcher
s
- the string to match againstpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 Singular Systems http://www.singularsys.com/jep