Package com.google.errorprone.predicates
Class TypePredicates
java.lang.Object
com.google.errorprone.predicates.TypePredicates
public final class TypePredicates extends Object
A collection of
TypePredicate
s.-
Method Summary
Modifier and Type Method Description static TypePredicate
allOf(TypePredicate... predicates)
static TypePredicate
anyOf(TypePredicate... predicates)
static TypePredicate
isArray()
Match arrays.static TypePredicate
isDescendantOf(Supplier<com.sun.tools.javac.code.Type> type)
Match sub-types of the given type.static TypePredicate
isDescendantOf(String type)
Match sub-types of the given type.static TypePredicate
isDescendantOfAny(Iterable<String> types)
Match types that are a sub-type of one of the given types.static TypePredicate
isExactType(Supplier<com.sun.tools.javac.code.Type> type)
Match types that are exactly equal.static TypePredicate
isExactType(String type)
Match types that are exactly equal.static TypePredicate
isExactTypeAny(Iterable<String> types)
Match types that are exactly equal to any of the given types.static TypePredicate
not(TypePredicate predicate)
-
Method Details
-
isArray
Match arrays. -
isExactType
Match types that are exactly equal. -
isExactType
Match types that are exactly equal. -
isExactTypeAny
Match types that are exactly equal to any of the given types. -
isDescendantOf
Match sub-types of the given type. -
isDescendantOfAny
Match types that are a sub-type of one of the given types. -
isDescendantOf
Match sub-types of the given type. -
allOf
-
anyOf
-
not
-