Class NumericConstantHandler
java.lang.Object
com.singularsys.extensions.mathml.parser.AbstractHandler
com.singularsys.extensions.mathml.parser.NumericConstantHandler
- All Implemented Interfaces:
TagHandler
Handler for MathML elements which correspond to numeric constants,
Double.NAN
and Double.POSITIVE_INFINITY- Author:
- Richard Morris
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionNumericConstantHandler(Jep jep, Object value) Constructs a handler which returns a ASTConstant with a specific value. -
Method Summary
Modifier and TypeMethodDescriptionhandle(StackFrame frame, Locator loc) Transform the element, called when a closing tag is encountered.Methods inherited from class com.singularsys.extensions.mathml.parser.AbstractHandler
convertChildrenToNodes, convertToNode, getFt, getJep, getNf, getNumf, getOt, jepNodesAsArray, jepNodesToFlatArray, jepNodesToFlatList
-
Constructor Details
-
NumericConstantHandler
Constructs a handler which returns a ASTConstant with a specific value.- Parameters:
jep-value-
-
-
Method Details
-
handle
Description copied from interface:TagHandlerTransform the element, called when a closing tag is encountered.- Parameters:
frame- StackFrame representing the elementloc- location in input- Returns:
- typically a Node, other types of objects may also be returned when the tag has a special meaning for its parent node.
- Throws:
SAXParseException
-