|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mysema.query.BooleanBuilder
public final class BooleanBuilder
BooleanBuilder is a cascading builder for Predicate expressions.
| Constructor Summary | |
|---|---|
BooleanBuilder()
|
|
BooleanBuilder(Predicate initial)
|
|
| Method Summary | ||
|---|---|---|
|
accept(Visitor<R,C> v,
C context)
Accept the visitor with the given context |
|
BooleanBuilder |
and(Predicate right)
Create the insertion of this and the given predicate |
|
BooleanBuilder |
andAnyOf(Predicate... args)
Create the intersection of this and the union of the given args |
|
BooleanBuilder |
andNot(Predicate right)
Create the insertion of this and the negation of the given predicate |
|
BooleanBuilder |
clone()
|
|
boolean |
equals(Object o)
|
|
Expression<?> |
getArg(int index)
Get the argument with the given index |
|
List<Expression<?>> |
getArgs()
Get the arguments of this operation |
|
Operator<? super Boolean> |
getOperator()
Get the operator symbol for this operation |
|
Class<? extends Boolean> |
getType()
Get the java type for this expression |
|
Predicate |
getValue()
|
|
int |
hashCode()
|
|
boolean |
hasValue()
Returns true if the value is set, and false, if not |
|
BooleanBuilder |
not()
Get the negation of the expression |
|
BooleanBuilder |
or(Predicate right)
Create the union of this and the given predicate |
|
BooleanBuilder |
orAllOf(Predicate... args)
Create the union of this and the intersection of the given args |
|
BooleanBuilder |
orNot(Predicate right)
Create the union of this and the negation of the given predicate |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanBuilder()
public BooleanBuilder(Predicate initial)
| Method Detail |
|---|
public <R,C> R accept(Visitor<R,C> v,
C context)
Expression
accept in interface Expression<Boolean>R - return typeC - context typev - visitorcontext - context of visit
public BooleanBuilder and(@Nullable
Predicate right)
right -
public BooleanBuilder andAnyOf(Predicate... args)
(this && (arg1 || arg2 ... || argN))
args -
public BooleanBuilder andNot(Predicate right)
right -
public BooleanBuilder clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic boolean equals(Object o)
equals in class Objectpublic Expression<?> getArg(int index)
Operation
getArg in interface Operation<Boolean>public List<Expression<?>> getArgs()
Operation
getArgs in interface Operation<Boolean>public Operator<? super Boolean> getOperator()
Operation
getOperator in interface Operation<Boolean>@Nullable public Predicate getValue()
public int hashCode()
hashCode in class Objectpublic boolean hasValue()
public BooleanBuilder not()
Predicate
not in interface Predicate
public BooleanBuilder or(@Nullable
Predicate right)
right -
public BooleanBuilder orAllOf(Predicate... args)
(this || (arg1 && arg2 ... && argN))
args -
public BooleanBuilder orNot(Predicate right)
right -
public Class<? extends Boolean> getType()
Expression
getType in interface Expression<Boolean>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||