Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.filter
Class UnaryExpression  view UnaryExpression download UnaryExpression.java

java.lang.Object
  extended byorg.activemq.filter.UnaryExpression
All Implemented Interfaces:
Expression
Direct Known Subclasses:
ComparisonExpression.LikeExpression, MultiExpressionEvaluator.CacheExpression, UnaryExpression.BooleanUnaryExpression

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

An expression which performs an operation on two expression values

Version:
$Revision: 1.1.1.1 $

Nested Class Summary
(package private) static class UnaryExpression.BooleanUnaryExpression
           
 
Field Summary
private static java.math.BigDecimal BD_LONG_MIN_VALUE
           
protected  Expression right
           
 
Constructor Summary
UnaryExpression(Expression left)
           
 
Method Summary
static BooleanExpression createBooleanCast(Expression left)
           
static BooleanExpression createInExpression(PropertyExpression right, java.util.List elements, boolean not)
           
static Expression createNegate(Expression left)
           
static BooleanExpression createNOT(BooleanExpression left)
           
static BooleanExpression createXPath(java.lang.String xpath)
           
static BooleanExpression createXQuery(java.lang.String xpath)
           
 boolean equals(java.lang.Object o)
          TODO: more efficient hashCode()
abstract  java.lang.String getExpressionSymbol()
          Returns the symbol that represents this binary expression.
 Expression getRight()
           
 int hashCode()
          TODO: more efficient hashCode()
private static java.lang.Number negate(java.lang.Number left)
           
 void setRight(Expression expression)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.activemq.filter.Expression
evaluate
 

Field Detail

BD_LONG_MIN_VALUE

private static final java.math.BigDecimal BD_LONG_MIN_VALUE

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,
                                                   java.util.List elements,
                                                   boolean not)

createNOT

public static BooleanExpression createNOT(BooleanExpression left)

createXPath

public static BooleanExpression createXPath(java.lang.String xpath)

createXQuery

public static BooleanExpression createXQuery(java.lang.String xpath)

createBooleanCast

public static BooleanExpression createBooleanCast(Expression left)

negate

private static java.lang.Number negate(java.lang.Number left)

getRight

public Expression getRight()

setRight

public void setRight(Expression expression)

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


hashCode

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


equals

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


getExpressionSymbol

public abstract java.lang.String getExpressionSymbol()
Returns the symbol that represents this binary expression. For example, addition is represented by "+"