Class ConstantHandler
java.lang.Object
com.singularsys.extensions.mathml.parser.AbstractHandler
com.singularsys.extensions.mathml.parser.ConstantHandler
- All Implemented Interfaces:
TagHandler
Handles <cn> elements.
- Author:
- Richard Morris
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParses complex numbers like<cn type="complex-cartesian">1.23<sep/>4.56</cn>static classParses complex numbers like<cn type="complex-polar">1.23<sep/>4.56</cn>static interfaceMethods for individual <cn type="type"> handlersstatic classParses numbers in e-notation like<cn type="e-notation">123<sep/>-2</cn>static classParses integer numbers like<cn type="integer">123</cn>static classParses constants like<cn type="constant">π</cn>static classParses complex numbers like<cn type="rational">123<sep/>456</cn>static classParses real numbers like<cn type="real">1.23</cn> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle(StackFrame frame, Locator loc) Transform the element, called when a closing tag is encountered.putConstantElement(String key, String value) removeEntity(String key) Methods inherited from class com.singularsys.extensions.mathml.parser.AbstractHandler
convertChildrenToNodes, convertToNode, getFt, getJep, getNf, getNumf, getOt, jepNodesAsArray, jepNodesToFlatArray, jepNodesToFlatList
-
Field Details
-
DEBUG
public static final boolean DEBUG- See Also:
-
-
Constructor Details
-
ConstantHandler
- Parameters:
jep-
-
-
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
-
putEntity
-
putConstantElement
-
removeConstantElement
-
removeEntity
-