|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.japisoft.formula.node.AbstractNode
Common node. Such node is a result of the parsing process, so this
is not theorically mutable. However, you can access to all children
and update the structure by inheriting from this node and change
the children
Vector content.
More information at : http://www.japisoft.com
Constructor Summary | |
AbstractNode()
|
|
AbstractNode(int defroundingMode)
|
Method Summary | |
void |
addChildNode(AbstractNode node)
Add a new child |
void |
dump()
|
abstract java.lang.Object |
evaluate(NodeContext ctx)
|
AbstractNode |
getChildAt(int index)
|
int |
getChildCount()
|
java.lang.String |
getContent()
|
int |
getPos()
|
boolean |
isLeaf()
|
void |
setContent(java.lang.String content)
Set the node content like a function name, a variable name... |
void |
setOp(java.lang.String op)
|
void |
setPos(int pos)
Reset the current node location in the expression |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractNode()
public AbstractNode(int defroundingMode)
Method Detail |
public void setPos(int pos)
public int getPos()
public void setOp(java.lang.String op)
public void setContent(java.lang.String content)
public java.lang.String getContent()
public void addChildNode(AbstractNode node)
public boolean isLeaf()
public int getChildCount()
public AbstractNode getChildAt(int index)
public void dump()
public abstract java.lang.Object evaluate(NodeContext ctx) throws EvaluateException
EvaluateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |