org.jacorb.notification.filter
Class EvaluationResult

java.lang.Object
  extended by org.jacorb.notification.filter.EvaluationResult
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable
Direct Known Subclasses:
ImmutableEvaluationResult

public class EvaluationResult
extends java.lang.Object
implements org.apache.avalon.framework.configuration.Configurable

Version:
$Id: EvaluationResult.java,v 1.4 2004/05/06 12:39:59 nicolas Exp $
Author:
Alphonse Bendt

Field Summary
static EvaluationResult BOOL_FALSE
           
static EvaluationResult BOOL_TRUE
           
 
Constructor Summary
EvaluationResult()
           
 
Method Summary
 void addAny(Any any)
           
 int compareTo(EvaluationResult other)
           
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
           
static EvaluationResult div(EvaluationResult left, EvaluationResult right)
           
 boolean equals(java.lang.Object o)
           
static EvaluationResult fromAny(Any any)
           
 Any getAny()
           
 boolean getBool()
           
 double getDouble()
           
 float getFloat()
           
 int getLong()
           
 long getLongLong()
           
 java.lang.String getString()
           
protected  java.lang.Object getValue()
           
 int hashCode()
           
 boolean isDouble()
           
 boolean isFloat()
           
 boolean isLong()
           
 boolean isLongLong()
           
 boolean isString()
           
static EvaluationResult minus(EvaluationResult left, EvaluationResult right)
           
static EvaluationResult mult(EvaluationResult left, EvaluationResult right)
           
static EvaluationResult plus(EvaluationResult left, EvaluationResult right)
           
 void setBool(boolean b)
           
 void setDouble(double d)
           
 void setDouble(java.lang.Double d)
           
 void setFloat(double d)
           
 void setFloat(java.lang.Double d)
           
 void setFloat(float f)
           
 void setLong(java.lang.Double d)
           
 void setLong(int l)
           
 void setLongLong(java.lang.Double d)
           
 void setLongLong(long l)
           
 void setString(java.lang.String s)
           
 java.lang.String toString()
           
static EvaluationResult unaryMinus(EvaluationResult r)
           
static EvaluationResult wrapImmutable(EvaluationResult e)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BOOL_TRUE

public static final EvaluationResult BOOL_TRUE

BOOL_FALSE

public static final EvaluationResult BOOL_FALSE
Constructor Detail

EvaluationResult

public EvaluationResult()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable

getValue

protected java.lang.Object getValue()

isLongLong

public boolean isLongLong()

isDouble

public boolean isDouble()

isFloat

public boolean isFloat()

isLong

public boolean isLong()

isString

public boolean isString()

setString

public void setString(java.lang.String s)

setFloat

public void setFloat(float f)

setFloat

public void setFloat(double d)

setFloat

public void setFloat(java.lang.Double d)

setLongLong

public void setLongLong(long l)

setLongLong

public void setLongLong(java.lang.Double d)

setLong

public void setLong(int l)

setLong

public void setLong(java.lang.Double d)

setDouble

public void setDouble(java.lang.Double d)

setDouble

public void setDouble(double d)

getString

public java.lang.String getString()
                           throws org.jacorb.notification.filter.DynamicTypeException
Throws:
org.jacorb.notification.filter.DynamicTypeException

getLongLong

public long getLongLong()
                 throws org.jacorb.notification.filter.DynamicTypeException
Throws:
org.jacorb.notification.filter.DynamicTypeException

getLong

public int getLong()
            throws org.jacorb.notification.filter.DynamicTypeException
Throws:
org.jacorb.notification.filter.DynamicTypeException

getDouble

public double getDouble()
                 throws org.jacorb.notification.filter.DynamicTypeException
Throws:
org.jacorb.notification.filter.DynamicTypeException

getFloat

public float getFloat()
               throws org.jacorb.notification.filter.DynamicTypeException
Throws:
org.jacorb.notification.filter.DynamicTypeException

getBool

public boolean getBool()
                throws org.jacorb.notification.filter.DynamicTypeException
Throws:
org.jacorb.notification.filter.DynamicTypeException

setBool

public void setBool(boolean b)

getAny

public Any getAny()

addAny

public void addAny(Any any)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(EvaluationResult other)
              throws org.jacorb.notification.filter.DynamicTypeException,
                     EvaluationException
Throws:
org.jacorb.notification.filter.DynamicTypeException
EvaluationException

wrapImmutable

public static EvaluationResult wrapImmutable(EvaluationResult e)

plus

public static EvaluationResult plus(EvaluationResult left,
                                    EvaluationResult right)
                             throws org.jacorb.notification.filter.DynamicTypeException
Throws:
org.jacorb.notification.filter.DynamicTypeException

minus

public static EvaluationResult minus(EvaluationResult left,
                                     EvaluationResult right)
                              throws org.jacorb.notification.filter.DynamicTypeException
Throws:
org.jacorb.notification.filter.DynamicTypeException

unaryMinus

public static EvaluationResult unaryMinus(EvaluationResult r)
                                   throws org.jacorb.notification.filter.DynamicTypeException
Throws:
org.jacorb.notification.filter.DynamicTypeException

div

public static EvaluationResult div(EvaluationResult left,
                                   EvaluationResult right)
                            throws org.jacorb.notification.filter.DynamicTypeException
Throws:
org.jacorb.notification.filter.DynamicTypeException

mult

public static EvaluationResult mult(EvaluationResult left,
                                    EvaluationResult right)
                             throws org.jacorb.notification.filter.DynamicTypeException
Throws:
org.jacorb.notification.filter.DynamicTypeException

fromAny

public static EvaluationResult fromAny(Any any)