Class TypePredicates
java.lang.Object
com.google.errorprone.predicates.TypePredicates
A collection of
TypePredicate
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic TypePredicate
allOf
(TypePredicate... predicates) static TypePredicate
anyOf
(TypePredicate... predicates) static TypePredicate
anything()
Matches everything (alwaystrue
).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) static TypePredicate
nothing()
Matches nothing (alwaysfalse
).
-
Method Details
-
nothing
Matches nothing (alwaysfalse
). -
anything
Matches everything (alwaystrue
). -
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. -
isDescendantOf
Match sub-types of the given type. -
isDescendantOfAny
Match types that are a sub-type of one of the given types. -
allOf
-
anyOf
-
not
-