1package aud.example.expr;
11 return -left.
getData().getValue();
15 @Override
public String
toString() {
return "-"; }
BinaryTree< T > getLeft()
get left child or null
BinaryTree< T > getRight()
get right child or null)
ExpressionTree node_
uplink reference to node: node_.getData()==this @endiliteral
Tree representation of arithmetic expression.
Node representing operator in an expression tree.
unary - operator: -A ("sign")
UnaryMinus clone()
Get a copy: a new AtomicExpression of same type/content.
Type getType()
Get type identifier.
UnaryMinus()
create operation
double getValue()
get value
type identifiers returned by getType