public class PredicateReflector extends Object
| Constructor and Description |
|---|
PredicateReflector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areAllFields(FieldPredicate condition)
Return true if all fields of the
given(Class) type or one of its supertypes matches the given predicate |
boolean |
areAllMethods(MethodPredicate condition)
Return true if all method of the
given(Class) type or one of its supertypes matches the given predicate |
boolean |
areAnyFields(FieldPredicate condition)
Return true if any field of the
given(Class) type or one of its supertypes matches the given predicate |
boolean |
areAnyMethods(MethodPredicate condition)
Return true if any method of the
given(Class) type or one of its supertypes matches the given predicate |
boolean |
contractIs(TypePredicate condition)
Return true if the type or one of its supertypes or any interface implemented by the type or one of its supertypes represented
by this reflector matches the given predicate
|
protected boolean |
contractIs(TypePredicate condition,
Class<?> base) |
PredicateReflector |
given(Class<?> type)
Define the type to query
|
boolean |
hierachyIs(TypePredicate condition)
Return true if the type or one of its supertypes represented by this reflector matches the given predicate
|
boolean |
isDirectly(TypePredicate condition)
Return true if the type represented by this reflector matches the given predicate
|
public PredicateReflector given(Class<?> type)
public boolean isDirectly(TypePredicate condition)
public boolean hierachyIs(TypePredicate condition)
public boolean contractIs(TypePredicate condition)
protected boolean contractIs(TypePredicate condition, Class<?> base)
public boolean areAnyMethods(MethodPredicate condition)
given(Class) type or one of its supertypes matches the given predicatepublic boolean areAllMethods(MethodPredicate condition)
given(Class) type or one of its supertypes matches the given predicatepublic boolean areAnyFields(FieldPredicate condition)
given(Class) type or one of its supertypes matches the given predicatepublic boolean areAllFields(FieldPredicate condition)
given(Class) type or one of its supertypes matches the given predicateCopyright © 2010–2016 RedEngine Ltd. All rights reserved.