Modifier and Type | Method and Description |
---|---|
ASTNode |
ASTNode.deepCopy()
Creates a recursive copy of this node and all its children.
|
ASTNode |
ASTNodeList.get(long n) |
ASTNode |
FunctionDefinition.getArgument(long n)
Get the
n th argument to this function. |
ASTNode |
FunctionDefinition.getArgument(String name)
Get the argument named
name to this FunctionDefinition . |
ASTNode |
FunctionDefinition.getBody()
Get the mathematical expression that is the body of this
FunctionDefinition object. |
ASTNode |
ASTNode.getChild(long n)
Get a child of this node according to its index number.
|
ASTNode |
ASTNode.getLeftChild()
Get the left child of this node.
|
ASTNode |
EventAssignment.getMath()
Get the mathematical expression in this
EventAssignment 's 'math'
subelement. |
ASTNode |
Rule.getMath()
|
ASTNode |
FunctionDefinition.getMath()
Get the mathematical formula of this
FunctionDefinition . |
ASTNode |
Trigger.getMath()
Get the mathematical formula for the trigger and return it
as an AST.
|
ASTNode |
StoichiometryMath.getMath()
Retrieves the mathematical formula within this
StoichiometryMath and
return it as an AST. |
ASTNode |
Constraint.getMath()
Get the mathematical expression of this
Constraint |
ASTNode |
InitialAssignment.getMath()
Get the mathematical formula of this
InitialAssignment . |
ASTNode |
Delay.getMath()
Get the mathematical formula for the delay and return it
as an AST.
|
ASTNode |
KineticLaw.getMath()
Returns the mathematical formula for this
KineticLaw object and return
it as as an AST. |
ASTNode |
Priority.getMath()
Get the mathematical formula for the priority and return it
as an AST.
|
ASTNode |
ASTNode.getRightChild()
Get the right child of this node.
|
static ASTNode |
libsbml.parseFormula(String formula)
Parses the given SBML formula and returns a representation of it as an
Abstract Syntax Tree (AST).
|
static ASTNode |
libsbml.parseL3Formula(String formula)
Parses the given mathematical formula and returns a representation of it
as an Abstract Syntax Tree (AST).
|
static ASTNode |
libsbml.parseL3FormulaWithModel(String formula,
Model model)
Parses the given mathematical formula using specific a specific
Model to
resolve symbols, and returns an Abstract Syntax Tree (AST)
representation of the result. |
static ASTNode |
libsbml.parseL3FormulaWithSettings(String formula,
L3ParserSettings settings)
Parses the given mathematical formula using specific parser settings and
returns an Abstract Syntax Tree (AST) representation of the result.
|
static ASTNode |
libsbml.readMathMLFromString(String xml)
Reads the MathML from the given XML string, constructs a corresponding
abstract syntax tree, and returns a pointer to the root of the tree.
|
ASTNode |
ASTNodeList.remove(long n) |
Modifier and Type | Method and Description |
---|---|
void |
ASTNodeList.add(ASTNode item) |
int |
ASTNode.addChild(ASTNode child)
Adds the given node as a child of this
ASTNode . |
static String |
libsbml.formulaToString(ASTNode tree)
Converts an AST to a string representation of a formula using a syntax
basically derived from SBML Level 1.
|
int |
ASTNode.insertChild(long n,
ASTNode newChild)
|
void |
ASTNodeList.prepend(ASTNode item) |
int |
ASTNode.prependChild(ASTNode child)
Adds the given node as a child of this
ASTNode . |
void |
ASTNode.replaceArgument(String bvar,
ASTNode arg)
Replaces occurences of a given name within this
ASTNode with the
name/value/formula represented by arg . |
int |
ASTNode.replaceChild(long n,
ASTNode newChild)
|
int |
Replacing.replaceWithAndMaybeDelete(SBase replacement,
boolean deleteme,
ASTNode conversionFactor) |
int |
EventAssignment.setMath(ASTNode math)
Sets the 'math' subelement of this
EventAssignment to a copy of the
given ASTNode . |
int |
Rule.setMath(ASTNode math)
|
int |
FunctionDefinition.setMath(ASTNode math)
Sets the 'math' subelement of this
FunctionDefinition to the Abstract
Syntax Tree given in math . |
int |
Trigger.setMath(ASTNode math)
|
int |
StoichiometryMath.setMath(ASTNode math)
Sets the 'math' expression of this
StoichiometryMath instance to a
copy of the given ASTNode . |
int |
Constraint.setMath(ASTNode math)
Sets the mathematical expression of this
Constraint to a copy of the
AST given as math . |
int |
InitialAssignment.setMath(ASTNode math)
Sets the 'math' subelement of this
InitialAssignment . |
int |
Delay.setMath(ASTNode math)
|
int |
KineticLaw.setMath(ASTNode math)
Sets the mathematical expression of this
KineticLaw instance to a copy
of the given ASTNode . |
int |
Priority.setMath(ASTNode math)
|
int |
ASTNode.swapChildren(ASTNode that)
|
static String |
libsbml.writeMathMLToString(ASTNode node)
Writes the given
ASTNode (and its children) to a string as MathML, and
returns the string. |
Constructor and Description |
---|
ASTNode(ASTNode orig)
Copy constructor; creates a deep copy of the given
ASTNode . |