org.codehaus.activemq.filter
Class UnaryExpression

java.lang.Object
  extended byorg.codehaus.activemq.filter.UnaryExpression
All Implemented Interfaces:
Expression
Direct Known Subclasses:
MultiExpressionEvaluator.CacheExpression

public abstract class UnaryExpression
extends Object
implements Expression

An expression which performs an operation on two expression values

Version:
$Revision: 1.5.2.1 $

Field Summary
protected  Expression right
           
 
Constructor Summary
UnaryExpression(Expression left)
           
 
Method Summary
static BooleanExpression createBooleanCast(Expression left)
           
static BooleanExpression createInExpression(PropertyExpression right, List elements, boolean not)
           
static Expression createNegate(Expression left)
           
static BooleanExpression createNOT(BooleanExpression left)
           
 boolean equals(Object o)
          TODO: more efficient hashCode()
abstract  String getExpressionSymbol()
          Returns the symbol that represents this binary expression.
 Expression getRight()
           
 int hashCode()
          TODO: more efficient hashCode()
 void setRight(Expression expression)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.codehaus.activemq.filter.Expression
evaluate
 

Field Detail

right

protected Expression right
Constructor Detail

UnaryExpression

public UnaryExpression(Expression left)
Method Detail

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()
See Also:
Object.toString()

hashCode

public int hashCode()
TODO: more efficient hashCode()

See Also:
Object.hashCode()

equals

public boolean equals(Object o)
TODO: more efficient hashCode()

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:


Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.