Class UpperCaseOperatorTokenMatcher
java.lang.Object
com.singularsys.jep.configurableparser.matchers.OperatorTokenMatcher
com.singularsys.jep.configurableparser.matchers.UpperCaseOperatorTokenMatcher
- All Implemented Interfaces:
TokenMatcher
,Serializable
A case-insensitive operator token matcher.
It converts the input to uppercase before comparing, hence all operators
in the OperatorTable must be uppercase.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class com.singularsys.jep.configurableparser.matchers.OperatorTokenMatcher
init, init, toString
-
Constructor Details
-
UpperCaseOperatorTokenMatcher
public UpperCaseOperatorTokenMatcher()
-
-
Method Details
-
match
Description copied from class:OperatorTokenMatcher
Quickly checks whether the first characters of the string match any of the supplied operator strings.- Specified by:
match
in interfaceTokenMatcher
- Overrides:
match
in classOperatorTokenMatcher
- Parameters:
s
- the string to match against- Returns:
- if successful returns the corresponding token, return null if failed to match
-