Package | Description |
---|---|
com.graphbuilder.math |
Modifier and Type | Class and Description |
---|---|
class |
AddNode
A node of an expression tree, represented by the symbol "+".
|
class |
DivNode
A node of an expression tree, represented by the symbol "/".
|
class |
FuncNode
A node of an expression tree that represents a function.
|
class |
MultNode
A node of an expression tree, represented by the symbol "*".
|
class |
OpNode
A node of an expression tree that has exactly 2 children, a left child and a right child.
|
class |
PowNode
A node of an expression tree, represented by the symbol "^".
|
class |
SubNode
A node of an expression tree, represented by the symbol "-".
|
class |
TermNode
A node of an expression tree that represents a variable or a function.
|
class |
ValNode
A node of an expression tree that represents a value.
|
class |
VarNode
A node of an expression tree that represents a variable.
|
Modifier and Type | Field and Description |
---|---|
protected Expression |
OpNode.leftChild |
protected Expression |
Expression.parent |
protected Expression |
OpNode.rightChild |
Modifier and Type | Method and Description |
---|---|
Expression |
FuncNode.child(int i)
Returns the child expression at the specified index.
|
Expression |
OpNode.getLeftChild() |
Expression |
Expression.getParent()
Returns the parent of this node.
|
Expression |
OpNode.getRightChild() |
static Expression |
ExpressionTree.parse(String s)
Returns an expression-tree that represents the expression string.
|
Modifier and Type | Method and Description |
---|---|
void |
FuncNode.add(Expression x)
Adds the expression as a child.
|
protected void |
Expression.checkBeforeAccept(Expression x)
Protected method used to verify that the specified expression can be included as a child
expression of this node.
|
void |
FuncNode.insert(Expression x,
int i)
Adds the expression as a child at the specified index.
|
boolean |
Expression.isDescendent(Expression x)
Returns true if this node is a descendent of the specified node, false otherwise.
|
void |
FuncNode.remove(Expression x)
Removes the specified expression as a child.
|
void |
OpNode.setLeftChild(Expression x) |
void |
OpNode.setRightChild(Expression x) |
Constructor and Description |
---|
AddNode(Expression leftChild,
Expression rightChild) |
DivNode(Expression leftChild,
Expression rightChild) |
MultNode(Expression leftChild,
Expression rightChild) |
OpNode(Expression leftChild,
Expression rightChild) |
PowNode(Expression leftChild,
Expression rightChild) |
SubNode(Expression leftChild,
Expression rightChild) |
Copyright © 2024. All rights reserved.