|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.math.AbstractFormulaParser.AbstractNode
protected abstract class AbstractFormulaParser.AbstractNode extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable
Abstract node interface
| Modifier and Type | Field and Description |
|---|---|
protected AbstractFormulaParser.AbstractNode |
left
Left side of the node |
protected AbstractFormulaParser.AbstractNode |
right
Right side of the node |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFormulaParser.AbstractNode()
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
clone()
Clones the node |
abstract java.lang.Double |
eval()
Evaluates the node value |
protected AbstractFormulaParser.AbstractNode |
getLeft()
Gets left side of the node |
protected AbstractFormulaParser.AbstractNode |
getRight()
Gets right side of the node |
void |
setLeft(AbstractFormulaParser.AbstractNode left)
Sets left side of the node |
void |
setRight(AbstractFormulaParser.AbstractNode right)
Sets the right side of the node |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AbstractFormulaParser.AbstractNode left
protected AbstractFormulaParser.AbstractNode right
| Constructor Detail |
|---|
protected AbstractFormulaParser.AbstractNode()
| Method Detail |
|---|
protected AbstractFormulaParser.AbstractNode getLeft()
throws java.lang.NullPointerException
java.lang.NullPointerException - throws null pointer exception if not set.public void setLeft(AbstractFormulaParser.AbstractNode left)
left - left side of the node
protected AbstractFormulaParser.AbstractNode getRight()
throws java.lang.NullPointerException
java.lang.NullPointerException - throws null pointer exception if can't returnpublic void setRight(AbstractFormulaParser.AbstractNode right)
right - right side of the node
public abstract java.lang.Double eval()
throws java.lang.NullPointerException
java.lang.NullPointerException - throws null pointer exception if can't perform evaluationprotected abstract java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||