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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.activemq.filter.ConstantExpression
All Implemented Interfaces:
Expression
Direct Known Subclasses:
ConstantExpression.BooleanConstantExpression

public class ConstantExpression
extends java.lang.Object
implements Expression

Represents a constant expression

Version:
$Revision: 1.1.1.1 $

Nested Class Summary
(package private) static class ConstantExpression.BooleanConstantExpression
           
 
Field Summary
static ConstantExpression.BooleanConstantExpression FALSE
           
static ConstantExpression.BooleanConstantExpression NULL
           
static ConstantExpression.BooleanConstantExpression TRUE
           
private  java.lang.Object value
           
 
Constructor Summary
ConstantExpression(java.lang.Object value)
           
 
Method Summary
static ConstantExpression createFloat(java.lang.String text)
           
static ConstantExpression createFromDecimal(java.lang.String text)
           
static ConstantExpression createFromHex(java.lang.String text)
           
static ConstantExpression createFromOctal(java.lang.String text)
           
static java.lang.String encodeString(java.lang.String s)
          Encodes the value of string so that it looks like it would look like when it was provided in a selector.
 boolean equals(java.lang.Object o)
          TODO: more efficient hashCode()
 java.lang.Object evaluate(javax.jms.Message message)
           
 java.lang.Object getValue()
           
 int hashCode()
          TODO: more efficient hashCode()
 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
 

Field Detail

NULL

public static final ConstantExpression.BooleanConstantExpression NULL

TRUE

public static final ConstantExpression.BooleanConstantExpression TRUE

FALSE

public static final ConstantExpression.BooleanConstantExpression FALSE

value

private java.lang.Object value
Constructor Detail

ConstantExpression

public ConstantExpression(java.lang.Object value)
Method Detail

createFromDecimal

public static ConstantExpression createFromDecimal(java.lang.String text)

createFromHex

public static ConstantExpression createFromHex(java.lang.String text)

createFromOctal

public static ConstantExpression createFromOctal(java.lang.String text)

createFloat

public static ConstantExpression createFloat(java.lang.String text)

evaluate

public java.lang.Object evaluate(javax.jms.Message message)
                          throws javax.jms.JMSException
Specified by:
evaluate in interface Expression

getValue

public java.lang.Object getValue()

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()


encodeString

public static java.lang.String encodeString(java.lang.String s)
Encodes the value of string so that it looks like it would look like when it was provided in a selector.