|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--wugle.expression.AbstractExpression
An abstract implementation of Expression.
AbstractExpression provides a basic implementation of Expression,
but is not meant to be a full class. Subclasses should implement
appropriate sub-interfaces of Expression in order to define properties and operations.
| Field Summary | |
protected org.apache.log4j.Logger |
log
Logger for logging messages |
protected ExpressionOperation |
operation
Object for delegating operations to. |
| Constructor Summary | |
AbstractExpression(java.lang.String symbol,
ExpressionOperation operation)
Initializes the Expression with a symbol and an ExpressionOperation. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a copy of this Expression. |
Operator |
getParent()
Gets the parent Operator, or null if there is no parent. |
java.lang.String |
getSymbol()
Gets the Expression's symbol. |
void |
setParent(Operator parent)
Sets the parent Operator. |
java.lang.String |
toString()
Gets the String representation of the Expression. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface wugle.expression.Expression |
isEqual |
| Field Detail |
protected org.apache.log4j.Logger log
protected ExpressionOperation operation
Subclasses can use this object for delegating implemented operations.
| Constructor Detail |
public AbstractExpression(java.lang.String symbol,
ExpressionOperation operation)
ExpressionOperation.
symbol - Symbol representing the Expressionoperation - Object for delegating operations tooperation| Method Detail |
public java.lang.String toString()
toString in class java.lang.ObjectgetSymbol()public java.lang.Object clone()
Expression
clone in interface Expressionclone in class java.lang.Objectpublic Operator getParent()
Expressionnull if there is no parent.
getParent in interface Expressionpublic void setParent(Operator parent)
Expression
setParent in interface Expressionparent - Parent Operator, or null for no parentpublic java.lang.String getSymbol()
Expression
getSymbol in interface Expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||