org.sbml.jsbml.math
public interface ASTNode2 extends TreeNodeWithChangeSupport
Modifier and Type | Method and Description |
---|---|
javax.swing.tree.TreeNode |
clone()
Clone ASTNode2
|
ASTNodeValue |
compile(AbstractASTNodeCompiler compiler)
Compiles this
ASTNode2 and returns the result. |
MathContainer |
getParentSBMLObject()
Sets the parentSBMLObject to container recursively
|
ASTNode.Type |
getType()
Returns the type of this ASTNode2.
|
boolean |
isStrict()
Specifies strictness.
|
void |
setParent(javax.swing.tree.TreeNode astNode2) |
void |
setParentSBMLObject(MathContainer container)
Sets the parentSBMLObject to container recursively
|
java.lang.String |
toFormula()
Converts this AbstractASTNode to a text string using a specific syntax for
mathematical formulas.
|
java.lang.String |
toLaTeX()
Converts this node recursively into a LaTeX formatted String.
|
java.lang.String |
toMathML()
Converts this node recursively into a MathML string that corresponds to
the subset of MathML defined in the SBML specification.
|
java.lang.String |
toString() |
void |
unsetParentSBMLObject()
Unsets the parentSBMLObject to null recursively.
|
addAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, userObjectKeySet
javax.swing.tree.TreeNode clone()
ASTNodeValue compile(AbstractASTNodeCompiler compiler)
ASTNode2
and returns the result.compiler
- An instance of an AbstractASTNodeCompiler
that provides
methods to translate this ASTNode2
into something
different.ASTNodeValue
. The content of the
wrapper depends on the AbstractASTNodeCompiler
used to create it.
However, this ASTNode2
will ensure that level and version
are set appropriately according to this node's parent SBML
object.SBMLException
- Thrown if an error occurs during the compilation process.MathContainer getParentSBMLObject()
ASTNode.Type getType()
boolean isStrict()
true
, ASTUnaryFunctionNode
and
ASTBinaryFunctionNode
nodes can only contain the specified # of
children. When false, there is a bit of leeway (i.e.,
ASTUnaryFunctionNode
can contain more than one child)
(not recommended).void setParent(javax.swing.tree.TreeNode astNode2)
parent
- the parent to setvoid setParentSBMLObject(MathContainer container)
MathContainer
- containerjava.lang.String toFormula()
Converts this AbstractASTNode to a text string using a specific syntax for mathematical formulas.
The text-string form of mathematical formulas produced by formulaToString() and read by parseFormula() are simple C-inspired infix notation taken from SBML Level 1. A formula in this text-string form therefore can be handed to a program that understands SBML Level 1 mathematical expressions, or used as part of a formula translation system. The syntax is described in detail in the documentation for ASTNode.
null
is
returned if the given argument is null
.SBMLException
- if there is a problem in the AbstractASTNode tree.java.lang.String toLaTeX()
SBMLException
- if there is a problem in the AbstractASTNode tree.java.lang.String toMathML()
java.lang.String toString()
toString
in class java.lang.Object
void unsetParentSBMLObject()
{@link
- ASTNode2} node