org.codehaus.aspectwerkz.expression
Class Undeterministic

java.lang.Object
  extended by org.codehaus.aspectwerkz.expression.Undeterministic

public abstract class Undeterministic
extends Object

Helper class to have boolean operation on true / false and null, null is assumed to be undetermined, and "not null"="null" A "false && null" will stay false, but a "true && null" will become undetermined (null).

This is used when the expression cannot be resolved entirely (early matching, cflow, runtime check residuals)

Author:
Alexandre Vasseur

Constructor Summary
Undeterministic()
           
 
Method Summary
static Boolean and(Boolean lhs, Boolean rhs)
          And operation
static Boolean not(Boolean b)
          Not operation
static Boolean or(Boolean lhs, Boolean rhs)
          Or operation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Undeterministic

public Undeterministic()
Method Detail

and

public static Boolean and(Boolean lhs,
                          Boolean rhs)
And operation

Parameters:
lhs -
rhs -
Returns:

or

public static Boolean or(Boolean lhs,
                         Boolean rhs)
Or operation

Parameters:
lhs -
rhs -
Returns:

not

public static Boolean not(Boolean b)
Not operation

Parameters:
b -
Returns:


Copyright © 2002-2005 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.