Package com.singularsys.jeptests.system
Class BugsTest.NumberWithUnitTokenMatcher
java.lang.Object
com.singularsys.jep.configurableparser.matchers.RegExpTokenMatcher
com.singularsys.jeptests.system.BugsTest.NumberWithUnitTokenMatcher
- All Implemented Interfaces:
TokenBuilder,TokenMatcher,Serializable
- Enclosing class:
BugsTest
TokenMatcher used to match a number with a unit.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildToken(String s) Builds a token following a successful match.voidInitialize the matcher when the Jep instance is known.Methods inherited from class com.singularsys.jep.configurableparser.matchers.RegExpTokenMatcher
match, toString
-
Constructor Details
-
NumberWithUnitTokenMatcher
public NumberWithUnitTokenMatcher()
-
-
Method Details
-
init
Description copied from interface:TokenMatcherInitialize the matcher when the Jep instance is known.- Parameters:
j- Jep instance
-
buildToken
Description copied from class:RegExpTokenMatcherBuilds a token following a successful match. Note new objects should be created each time as error reporting information is later attached to tokens.- Specified by:
buildTokenin interfaceTokenBuilder- Specified by:
buildTokenin classRegExpTokenMatcher- Parameters:
s- String representing the completed matched token- Returns:
- the appropriate type of token.
- Throws:
ParseException
-