wugle.expression
Interface UnaryOperator

All Superinterfaces:
java.lang.Cloneable, Expression, Operator
All Known Implementing Classes:
AbstractUnaryOperator

public interface UnaryOperator
extends Operator

An Operator with one child Expression.

An UnaryOperator is an Operator with one child Expression. In a tree structure, the child will be to the right.

Version:
0.1.3
Author:
Jacob Perkins

Method Summary
 Expression getChild()
          Gets the child Expression.
 void setChild(Expression child)
          Sets the child Expression.
 
Methods inherited from interface wugle.expression.Operator
setChild
 
Methods inherited from interface wugle.expression.Expression
clone, getParent, getSymbol, isEqual, setParent
 

Method Detail

getChild

public Expression getChild()
Gets the child Expression.

Returns:
The child Expression, or null if none
See Also:
setChild(Expression)

setChild

public void setChild(Expression child)
Sets the child Expression.

Parameters:
child - The new child Expression, or null for no child
See Also:
getChild()