|
Release Planner v1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--rp.expn.Expn | +--rp.expn.OperatorExpn
A generic node in an expression tree.
Field Summary | |
protected java.util.Vector |
operands
|
Constructor Summary | |
OperatorExpn()
|
Method Summary | |
int |
getNumOperands()
Gets the number of operands for this operator. |
Expn[] |
getOperand()
Gets all the operands at once. |
Expn |
getOperand(int i)
Gets the i'th operand (0-based) of this operator. |
protected void |
setNumOperands(int n)
Sets the number of operands for this operator. |
protected void |
setOperand(Expn[] newOperands)
Sets all the operands at once Either this method or setNumOperands must be called before any other |
protected void |
setOperand(int i,
Expn newOperand)
Sets the i'th operand (0-based) to the given expression. |
void |
update(java.util.Observable o,
java.lang.Object arg)
|
Methods inherited from class rp.expn.Expn |
getScalarMean |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector operands
Constructor Detail |
public OperatorExpn()
Method Detail |
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
protected void setNumOperands(int n)
n
- the number of operandspublic int getNumOperands()
protected void setOperand(int i, Expn newOperand)
i
- the index (0-based) of the operand to setprotected void setOperand(Expn[] newOperands)
public Expn getOperand(int i)
i
- the index (0-based) of the operand to get
public Expn[] getOperand()
|
Release Planner v1.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |