public class VariablePredicate<T> extends Predicate<T>
QueryRewriter
Modifier | Constructor and Description |
---|---|
protected |
VariablePredicate(String name,
Predicate<T> that) |
Modifier and Type | Method and Description |
---|---|
Predicate<T> |
copy(Collection<? extends Predicate<T>> children)
Create a copy of this predicate, with new children.
|
boolean |
equals(Object other) |
Predicate<T> |
getChild(int i)
Same as
getChildren().get(i) |
int |
getChildCount()
Same as
getChildren().size() |
List<Predicate<T>> |
getChildren()
Get the children of this predicate, if any.
|
int |
getCost() |
String |
getName() |
int |
hashCode() |
boolean |
match(T object)
Does this predicate match this object?
|
String |
toString() |
public String getName()
public final List<Predicate<T>> getChildren()
Predicate
getChildren
in class Predicate<T>
public final int getChildCount()
Predicate
getChildren().size()
getChildCount
in class Predicate<T>
public final Predicate<T> getChild(int i)
Predicate
getChildren().get(i)
public Predicate<T> copy(Collection<? extends Predicate<T>> children)
Predicate
public boolean match(T object) throws com.google.gwtorm.server.OrmException
Predicate
public int getCost()