|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.singularsys.jep.configurableparser.matchers.OperatorTokenMatcher
public class OperatorTokenMatcher
TokenMatcher for matching operators from the operator set.
Constructor Summary | |
---|---|
OperatorTokenMatcher()
Default constructor. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OperatorTokenMatcher()
init(com.singularsys.jep.Jep)
method.
Method Detail |
---|
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
public void init(OperatorTableI os)
map
and tokens
member from the
list of operators in the operator table.
os
- the operator table to initialize with.public Token match(java.lang.String s)
match
in interface TokenMatcher
s
- the string to match against
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |