Class SpecialFunctionHandler
java.lang.Object
com.singularsys.extensions.mathml.parser.SpecialFunctionHandler
- All Implemented Interfaces:
TagHandler
- Direct Known Subclasses:
LogHandler,MinusHandler,RootHandler,SelectorHandler
Base class for functions and operators which have special arguments.
For example <root> may have a <degree> element as its first child.
- Author:
- Richard Morris
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Nodeapply(ApplyHandler ah, StackFrame frame, Locator loc) Called when closing <apply/> tag is encountered.handle(StackFrame frame, Locator loc) Returns 'this'.
-
Constructor Details
-
SpecialFunctionHandler
public SpecialFunctionHandler()
-
-
Method Details
-
apply
public abstract Node apply(ApplyHandler ah, StackFrame frame, Locator loc) throws SAXParseException, ParseException Called when closing <apply/> tag is encountered.- Parameters:
ah- a reference to the ApplyHandler which provides some useful methods.frame- the stackframe for the "apply" element, the children can be recovered from thisloc- provides information on the location in the xml document.- Returns:
- the resulting Node representing the function.
- Throws:
SAXParseExceptionParseException
-
handle
Returns 'this'.- 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.
-