Package com.singularsys.extensions.mathml.parser
package com.singularsys.extensions.mathml.parser
Classes to handle parsing of content MathML.
The central class is MathMLDocumentHandler
this is called by the SAX parser every time a xml start or end tag is encountered.
When a tag is found the element name is looked up in a Map and the corresponding
TagHandler is encountered.
-
ClassDescriptionBase class which provides access to Jep componentsHandle <annotation-xml> and <annotation> elements.Handles the <apply> container element.A Reader implementation that concatenates two readers.Handles <cn> elements.Parses complex numbers like
<cn type="complex-cartesian">1.23<sep/>4.56</cn>Parses complex numbers like<cn type="complex-polar">1.23<sep/>4.56</cn>Methods for individual <cn type="type"> handlersParses numbers in e-notation like<cn type="e-notation">123<sep/>-2</cn>Parses integer numbers like<cn type="integer">123</cn>Parses constants like<cn type="constant">π</cn>Parses complex numbers like<cn type="rational">123<sep/>456</cn>Parses real numbers like<cn type="real">1.23</cn>Handles the <declare> element.Handles the <fn> tag.Object returned byStandardFunctionHandler.Converts <cn> elements into jep variable nodes with the same name.Handles: <apply><log/>arg</apply> <apply><log/><logbase><cn>2</cn></logbase>arg</apply>Central class for parsing MathML.Handles the <math> element.Convert <matrix>, <matrixrow>, <vector>, <list> and <set>.Needed to distinguish between Unary and binary minus.Just returns null.Handler for MathML elements which correspond to numeric constants,Double.NANandDouble.POSITIVE_INFINITYHandles elements corresponding to Jep operators.Handles: <apply><root/>arg</apply> <apply><root/><degree><cn>3</cn></degree>arg</apply>Needed to distinguish between Unary and binary minus.Handler for<semantics>elements.Returns an array of non-null children, flattening nested arrays and Lists.A simple handler which converts all elements to a tree structure.A class used to represent the tree.Base class for functions and operators which have special arguments.Represents the results returned by theSpecialNodeHandler.Handles special elements like <logbase>, <degree> and <sep/>.Representation of an element, contains the name, attributes and children of the element.Handles standard functions like <sin> returnsFunctionElement.Interface for handlers which need to be informed of starting tags.Interface for handlers which transform individual elements.For unsupported tags, handle always throws a SAXParseException.