org.jrdf.query.expression
Class Optional<V extends ExpressionVisitor>

java.lang.Object
  extended by org.jrdf.query.expression.Optional<V>
All Implemented Interfaces:
Serializable, Expression<V>

public final class Optional<V extends ExpressionVisitor>
extends Object
implements Expression<V>, Serializable

See Also:
Serialized Form

Constructor Summary
Optional(Expression<V> rhs)
           
Optional(Expression<V> lhs, Expression<V> rhs)
           
 
Method Summary
 void accept(V v)
           
 boolean equals(Object obj)
           
 Expression<V> getLhs()
           
 Expression<V> getRhs()
           
 int hashCode()
           
 void setLhs(Expression<V> lhs)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Optional

public Optional(Expression<V> lhs,
                Expression<V> rhs)

Optional

public Optional(Expression<V> rhs)
Method Detail

setLhs

public void setLhs(Expression<V> lhs)

getLhs

public Expression<V> getLhs()

getRhs

public Expression<V> getRhs()

accept

public void accept(V v)
Specified by:
accept in interface Expression<V extends ExpressionVisitor>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object