tree
Class Node.Unary

java.lang.Object
  |
  +--java.lang.Number
        |
        +--tree.Node
              |
              +--tree.Node.Unary
Direct Known Subclasses:
Node.Minus
Enclosing class:
Node

protected abstract static class Node.Unary
extends Node

represents a unary operator. Must be subclassed to provide evaluation.

See Also:
Serialized Form

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

tree

protected java.lang.Number tree
operand subtree.
Constructor Detail

Node.Unary

protected Node.Unary(java.lang.Number tree)
builds a node with a subtree.
Parameters:
tree - subtree.