|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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
Field Summary | |
protected java.util.Vector |
children
|
protected boolean |
highPrecisionMode
|
protected java.lang.String |
op
|
protected int |
roundingMode
|
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()
|
int |
getColumn()
|
java.lang.String |
getContent()
|
int |
getLine()
|
int |
getPos()
Deprecated. you must call the getColumn or getLine method |
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)
Deprecated. you must call the setColumn or setLine method Reset the current node location in the expression |
void |
setPos(int line,
int column)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean highPrecisionMode
protected int roundingMode
protected java.util.Vector children
protected java.lang.String op
Constructor Detail |
public AbstractNode()
public AbstractNode(int defroundingMode)
Method Detail |
public int getColumn()
public int getLine()
public void setPos(int pos)
public void setPos(int line, int column)
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 |