com.miginfocom.util.expression
Class CompositeExpression

java.lang.Object
  extended by com.miginfocom.util.expression.CompositeExpression
All Implemented Interfaces:
Expression, java.io.Serializable
Direct Known Subclasses:
AndExpression, NandExpression, OrExpression, XorExpression

public abstract class CompositeExpression
extends java.lang.Object
implements Expression

An expression that consists of two other expressions and:ed/or:ed or xor:ed together.

See Also:
OrExpression, AndExpression, XorExpression, NandExpression, Serialized Form

Field Summary
protected  Expression expression1
          The other two expressions.
protected  Expression expression2
          The other two expressions.
 
Constructor Summary
CompositeExpression(Expression expression1, Expression expression2)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          To equal they must be of same class and the expressions must equal.
 Expression getExpression1()
           
 Expression getExpression2()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.miginfocom.util.expression.Expression
evaluate
 

Field Detail

expression1

protected final transient Expression expression1
The other two expressions.


expression2

protected final transient Expression expression2
The other two expressions.

Constructor Detail

CompositeExpression

public CompositeExpression(Expression expression1,
                           Expression expression2)
Constructor.

Parameters:
expression1 - The first expression. Not null.
expression2 - The second expression. Not null.
Method Detail

getExpression1

public Expression getExpression1()

getExpression2

public Expression getExpression2()

equals

public boolean equals(java.lang.Object o)
To equal they must be of same class and the expressions must equal.

Overrides:
equals in class java.lang.Object
Parameters:
o - The objects to compare to.
Returns:
If they equals.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.