public abstract class AbstractHandler extends java.lang.Object implements TagHandler
Modifier and Type | Field and Description |
---|---|
protected FunctionTable |
ft |
protected Jep |
jep |
protected NodeFactory |
nf |
protected NumberFactory |
numf |
protected OperatorTableI |
ot |
protected VariableTable |
vt |
Constructor and Description |
---|
AbstractHandler(Jep jep) |
Modifier and Type | Method and Description |
---|---|
protected Node[] |
convertChildrenToNodes(StackFrame frame,
int start,
org.xml.sax.Locator loc)
Converts the children of a StackFrame to an array of Nodes.
|
protected Node |
convertToNode(StackFrame frame,
java.lang.Object arg,
org.xml.sax.Locator loc)
Casts the argument to a Node.
|
FunctionTable |
getFt() |
Jep |
getJep() |
NodeFactory |
getNf() |
NumberFactory |
getNumf() |
OperatorTableI |
getOt() |
protected Node[] |
jepNodesAsArray(StackFrame frame,
org.xml.sax.Locator loc)
Convert those children which are nodes to a list, other nodes are ignored.
|
protected Node[] |
jepNodesToFlatArray(StackFrame frame,
org.xml.sax.Locator loc)
Convert those children which are nodes or arrays of nodes to a list.
|
protected java.util.List<Node> |
jepNodesToFlatList(StackFrame frame) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handle
protected Jep jep
protected NodeFactory nf
protected OperatorTableI ot
protected NumberFactory numf
protected FunctionTable ft
protected VariableTable vt
public AbstractHandler(Jep jep)
protected Node convertToNode(StackFrame frame, java.lang.Object arg, org.xml.sax.Locator loc) throws org.xml.sax.SAXParseException
frame
- TODOarg
- the argumentloc
- org.xml.sax.SAXParseException
- if the argument is not a Nodeprotected Node[] convertChildrenToNodes(StackFrame frame, int start, org.xml.sax.Locator loc) throws org.xml.sax.SAXParseException
frame
- the StackFramestart
- the first child to convertloc
- org.xml.sax.SAXParseException
- if any of the arguments are not nodesprotected Node[] jepNodesAsArray(StackFrame frame, org.xml.sax.Locator loc)
frame
- loc
- protected Node[] jepNodesToFlatArray(StackFrame frame, org.xml.sax.Locator loc)
frame
- loc
- protected java.util.List<Node> jepNodesToFlatList(StackFrame frame)
public Jep getJep()
public NodeFactory getNf()
public OperatorTableI getOt()
public NumberFactory getNumf()
public FunctionTable getFt()
Copyright © 2018 Singular Systems http://www.singularsys.com/jep