|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.expression.language.OwExprValue
com.wewebu.expression.language.OwExprBooleanValue
public class OwExprBooleanValue
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 |
---|
public static final OwExprBooleanValue TRUE
public static final OwExprBooleanValue FALSE
Method Detail |
---|
public static final OwExprBooleanValue value(boolean bool_p)
bool_p
- the wrapped boolean vale
TRUE
if bool_p==true and FALSE
if bool_p==falsepublic static final OwExprBooleanValue value(Boolean bool_p)
bool_p
-
TRUE
if bool_p.booleanValue()==true and FALSE
if bool_p.booleanValue()==falsepublic OwExprValue accept(OwExprBinaryOperator binaryOperator_p, OwExprValue v2_p) throws OwExprEvaluationException
OwExprValue
accept
in class OwExprValue
binaryOperator_p
- binary operator visitorv2_p
- right side operator value
OwExprValue
OwExprEvaluationException
- if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)public OwExprValue accept(OwExprBinaryOperator binaryOperator_p, OwExprBooleanValue v1_p) throws OwExprEvaluationException
OwExprValue
accept
in class OwExprValue
binaryOperator_p
- binary operator visitorv1_p
- lef side operator value
OwExprValue
OwExprEvaluationException
- if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)public OwExprValue accept(OwExprBinaryOperator binaryOperator_p, OwExprStringValue v1_p) throws OwExprEvaluationException
OwExprValue
accept
in class OwExprValue
binaryOperator_p
- binary operator visitorv1_p
- lef side operator value
OwExprValue
OwExprEvaluationException
- if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)public OwExprValue accept(OwExprUnaryOperator unaryOperator_p) throws OwExprEvaluationException
OwExprValue
accept
in class OwExprValue
unaryOperator_p
- binary operator visitor
OwExprValue
OwExprEvaluationException
- if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)public boolean getBoolean()
public boolean equals(Object obj_p)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Object toJavaObject(Class javaSuperType_p) throws OwExprEvaluationException
OwExprValue
toJavaObject
in class OwExprValue
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.
OwExprEvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |