| java.lang.Object org.josql.expressions.Expression org.josql.expressions.ValueExpression org.josql.expressions.BooleanExpression
BooleanExpression | public class BooleanExpression extends ValueExpression (Code) | | This class represents a "boolean" expression, either true or false .
|
Method Summary | |
public Object | evaluate(Object o, Query q) Get the value of this boolean.
Parameters: o - The current object, not used in this method. Parameters: q - The Query object, not used in this method. | public Class | getExpectedReturnType(Query q) Get the expected return type.
Parameters: q - The Query object. | public Object | getValue(Object o, Query q) Get the value of this boolean.
Parameters: o - The current object, not used in this method. Parameters: q - The Query object, not used in this method. | public boolean | hasFixedResult(Query q) Always returns true since it represents a constant.
Parameters: q - The Query object. | public void | init(Query q) Init this expression. | public boolean | isTrue(Object o, Query q) Returns whether this expression is true or false .
Parameters: o - The current object, not used in this method. Parameters: q - The Query object, not used in this method. | public void | setValue(Boolean b) | public String | toString() Returns a string version of this expression. |
BooleanExpression | public BooleanExpression()(Code) | | |
evaluate | public Object evaluate(Object o, Query q)(Code) | | Get the value of this boolean.
Parameters: o - The current object, not used in this method. Parameters: q - The Query object, not used in this method. The value of this expression. |
getExpectedReturnType | public Class getExpectedReturnType(Query q)(Code) | | Get the expected return type.
Parameters: q - The Query object. Always returns: java.lang.Boolean.TYPE . |
getValue | public Object getValue(Object o, Query q)(Code) | | Get the value of this boolean.
Parameters: o - The current object, not used in this method. Parameters: q - The Query object, not used in this method. The value of this expression. |
hasFixedResult | public boolean hasFixedResult(Query q)(Code) | | Always returns true since it represents a constant.
Parameters: q - The Query object. true always. |
init | public void init(Query q)(Code) | | Init this expression. Actually does nothing since it is a constant.
Parameters: q - The Query object. |
isTrue | public boolean isTrue(Object o, Query q)(Code) | | Returns whether this expression is true or false .
Parameters: o - The current object, not used in this method. Parameters: q - The Query object, not used in this method. The value of this expression. |
toString | public String toString()(Code) | | Returns a string version of this expression.
Basically returns: true | false.
A string version of this expression. |
|
|