public class BooleanExpression extends ValueExpression
| 构造器和说明 |
|---|
BooleanExpression() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
evaluate(Object o,
Query q)
Get the value of this boolean.
|
Class |
getExpectedReturnType(Query q)
Get the expected return type.
|
Object |
getValue(Object o,
Query q)
Get the value of this boolean.
|
boolean |
hasFixedResult(Query q)
Always returns
true since it represents a constant. |
void |
init(Query q)
Init this expression.
|
boolean |
isTrue(Object o,
Query q)
Returns whether this expression is
true or false. |
void |
setValue(Boolean b) |
String |
toString()
Returns a string version of this expression.
|
isBracketed, setBracketedpublic boolean hasFixedResult(Query q)
true since it represents a constant.hasFixedResult 在类中 Expressionq - The Query object.true always.public String toString()
toString 在类中 Expressionpublic Class getExpectedReturnType(Query q)
getExpectedReturnType 在类中 Expressionq - The Query object.java.lang.Boolean.TYPE.public void init(Query q)
init 在类中 Expressionq - The Query object.public void setValue(Boolean b)
public boolean isTrue(Object o, Query q)
true or false.isTrue 在类中 Expressiono - The current object, not used in this method.q - The Query object, not used in this method.public Object getValue(Object o, Query q)
getValue 在类中 ValueExpressiono - The current object, not used in this method.q - The Query object, not used in this method.public Object evaluate(Object o, Query q)
evaluate 在类中 ValueExpressiono - The current object, not used in this method.q - The Query object, not used in this method.Copyright © 2021. All rights reserved.