com.wewebu.expression.language
Class OwExprBooleanValue

java.lang.Object
  extended by com.wewebu.expression.language.OwExprValue
      extended by com.wewebu.expression.language.OwExprBooleanValue
All Implemented Interfaces:
OwExprScope

public class OwExprBooleanValue
extends OwExprValue

The standard boolean value.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Field Summary
static OwExprBooleanValue FALSE
          Singleton instance of TRUE
static OwExprBooleanValue TRUE
          Singleton instance of TRUE
 
Method Summary
 OwExprValue accept(OwExprBinaryOperator binaryOperator_p, OwExprBooleanValue v1_p)
          Stage 2 binary operator visitor acceptance method
 OwExprValue accept(OwExprBinaryOperator binaryOperator_p, OwExprStringValue v1_p)
          Stage 2 binary operator visitor acceptance method
 OwExprValue accept(OwExprBinaryOperator binaryOperator_p, OwExprValue v2_p)
          Stage 1 binary operator visitor acceptance method
 OwExprValue accept(OwExprUnaryOperator unaryOperator_p)
          Unary operator visitor acceptance method
 boolean equals(Object obj_p)
           
 boolean getBoolean()
           
 int hashCode()
           
 Object toJavaObject(Class javaSuperType_p)
          Java class conversion method.
 String toString()
           
static OwExprBooleanValue value(boolean bool_p)
          Singleton value instances accessor
static OwExprBooleanValue value(Boolean bool_p)
           
 
Methods inherited from class com.wewebu.expression.language.OwExprValue
accept, accept, accept, accept, at, fromJavaValue, fromJavaValue, function, getJavaType, getValuePropeties, hasProperty, length, property
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE

public static final OwExprBooleanValue TRUE
Singleton instance of TRUE


FALSE

public static final OwExprBooleanValue FALSE
Singleton instance of TRUE

Method Detail

value

public static final OwExprBooleanValue value(boolean bool_p)
Singleton value instances accessor

Parameters:
bool_p - the wrapped boolean vale
Returns:
TRUE if bool_p==true and FALSE if bool_p==false

value

public static final OwExprBooleanValue value(Boolean bool_p)
Parameters:
bool_p -
Returns:
* @return TRUE if bool_p.booleanValue()==true and FALSE if bool_p.booleanValue()==false

accept

public OwExprValue accept(OwExprBinaryOperator binaryOperator_p,
                          OwExprValue v2_p)
                   throws OwExprEvaluationException
Description copied from class: OwExprValue
Stage 1 binary operator visitor acceptance method

Overrides:
accept in class OwExprValue
Parameters:
binaryOperator_p - binary operator visitor
v2_p - right side operator value
Returns:
the operator visit processed OwExprValue
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

accept

public OwExprValue accept(OwExprBinaryOperator binaryOperator_p,
                          OwExprBooleanValue v1_p)
                   throws OwExprEvaluationException
Description copied from class: OwExprValue
Stage 2 binary operator visitor acceptance method

Overrides:
accept in class OwExprValue
Parameters:
binaryOperator_p - binary operator visitor
v1_p - lef side operator value
Returns:
the operator visit processed OwExprValue
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

accept

public OwExprValue accept(OwExprBinaryOperator binaryOperator_p,
                          OwExprStringValue v1_p)
                   throws OwExprEvaluationException
Description copied from class: OwExprValue
Stage 2 binary operator visitor acceptance method

Overrides:
accept in class OwExprValue
Parameters:
binaryOperator_p - binary operator visitor
v1_p - lef side operator value
Returns:
the operator visit processed OwExprValue
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

accept

public OwExprValue accept(OwExprUnaryOperator unaryOperator_p)
                   throws OwExprEvaluationException
Description copied from class: OwExprValue
Unary operator visitor acceptance method

Overrides:
accept in class OwExprValue
Parameters:
unaryOperator_p - binary operator visitor
Returns:
the operator visit processed OwExprValue
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

getBoolean

public boolean getBoolean()
Returns:
the wrapped boolean value

equals

public boolean equals(Object obj_p)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

toJavaObject

public Object toJavaObject(Class javaSuperType_p)
                    throws OwExprEvaluationException
Description copied from class: OwExprValue
Java class conversion method.

Specified by:
toJavaObject in class OwExprValue
Parameters:
javaSuperType_p - the requested java super type The returned type should be a subclass of this type. This is necessary for values having more than one possible java peers such as OwExprNumericValue's Integer and Double support.
Returns:
the java class peer of this value's expression language type
Throws:
OwExprEvaluationException


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.