Class SimpleHandler
java.lang.Object
com.singularsys.extensions.mathml.parser.SimpleHandler
- All Implemented Interfaces:
TagHandler
A simple handler which converts all elements to a tree structure.
The inner class TreeNode represents elements of the tree and the standard
output format from the toString method is such that
<math><apply><plus/><ci>x</ci><cn type="real">3</cn></apply></math>becomes
math
-apply
--plus
--ci
---x
--cn {type=real}
---3-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA class used to represent the tree. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle(StackFrame frame, Locator loc) Transform the element, called when a closing tag is encountered.
-
Constructor Details
-
SimpleHandler
public SimpleHandler()
-
-
Method Details
-
handle
Description copied from interface:TagHandlerTransform the element, called when a closing tag is encountered.- Specified by:
handlein interfaceTagHandler- 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.
-