org.granite.gravity.selector
Class UnaryExpression
java.lang.Object
org.granite.gravity.selector.UnaryExpression
- All Implemented Interfaces:
- Expression
public abstract class UnaryExpression
- extends Object
- implements Expression
An expression which performs an operation on two expression values
- Version:
- $Revision: 1.3 $
right
protected Expression right
UnaryExpression
public UnaryExpression(Expression left)
createNegate
public static Expression createNegate(Expression left)
createInExpression
public static BooleanExpression createInExpression(PropertyExpression right,
List<?> elements,
boolean not)
createNOT
public static BooleanExpression createNOT(BooleanExpression left)
createBooleanCast
public static BooleanExpression createBooleanCast(Expression left)
getRight
public Expression getRight()
setRight
public void setRight(Expression expression)
toString
public String toString()
- Overrides:
toString in class Object
- See Also:
Object.toString()
hashCode
public int hashCode()
- TODO: more efficient hashCode()
- Overrides:
hashCode in class Object
- See Also:
Object.hashCode()
equals
public boolean equals(Object o)
- TODO: more efficient hashCode()
- Overrides:
equals in class Object
- See Also:
Object.equals(java.lang.Object)
getExpressionSymbol
public abstract String getExpressionSymbol()
- Returns the symbol that represents this binary expression. For example, addition is
represented by "+"
- Returns:
- teh symbol