|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Number | +--tree.Node | +--tree.Node.Unary
represents a unary operator. Must be subclassed to provide evaluation.
Inner classes inherited from class tree.Node |
Node.Add,
Node.Binary,
Node.Div,
Node.Minus,
Node.Mul,
Node.Sub,
Node.Unary |
Field Summary | |
protected java.lang.Number |
tree
operand subtree. |
Constructor Summary | |
protected |
Node.Unary(java.lang.Number tree)
builds a node with a subtree. |
Methods inherited from class tree.Node |
byteValue,
floatValue,
intValue,
shortValue |
Methods inherited from class java.lang.Number |
doubleValue,
longValue |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.Number tree
Constructor Detail |
protected Node.Unary(java.lang.Number tree)
tree
- subtree.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |