|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--wugle.expression.AbstractExpression
|
+--wugle.expression.AbstractUnaryOperator
An abstract implementation of UnaryOperator.
AbstractUnaryOperator provides a basic implementation of UnaryOperator,
but is not meant to be a full class. Subclasses should implement the
appropriate operation interfaces.
| Field Summary |
| Fields inherited from class wugle.expression.AbstractExpression |
log, operation |
| Constructor Summary | |
AbstractUnaryOperator(java.lang.String symbol,
ExpressionOperation operation,
Expression child)
Initializes the Expression and sets the initial child Expression. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a copy of this Expression. |
Expression |
getChild()
Gets the child Expression. |
boolean |
isEqual(Expression expression)
Tests if this Expression is equal to the given Expression. |
void |
setChild(Expression child)
Sets the child Expression. |
void |
setChild(Expression oldChild,
Expression newChild)
Replaces a current child Expression with a new child Expression |
java.lang.String |
toString()
Gets the String representation of the Expression. |
| Methods inherited from class wugle.expression.AbstractExpression |
getParent, getSymbol, setParent |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface wugle.expression.Expression |
getParent, getSymbol, setParent |
| Constructor Detail |
public AbstractUnaryOperator(java.lang.String symbol,
ExpressionOperation operation,
Expression child)
symbol - Symbol representing this Operatoroperation - Object for delegating operations tochild - Child Expression| Method Detail |
public java.lang.String toString()
AbstractExpression
toString in class AbstractExpressionAbstractExpression.getSymbol()public java.lang.Object clone()
Expression
clone in interface Expressionclone in class AbstractExpressionpublic boolean isEqual(Expression expression)
Expression
isEqual in interface Expressionexpression - Expression to compare to
true if they are equal
public void setChild(Expression oldChild,
Expression newChild)
Operator
setChild in interface OperatoroldChild - Child Expression to replacenewChild - Replacement child ExpressionsetChild(Expression)public Expression getChild()
UnaryOperator
getChild in interface UnaryOperatornull if noneUnaryOperator.setChild(Expression)public void setChild(Expression child)
UnaryOperator
setChild in interface UnaryOperatorchild - The new child Expression, or null for no childUnaryOperator.getChild()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||