Uses of Interface
com.google.errorprone.predicates.TypePredicate
Packages that use TypePredicate
Package
Description
Checks added to the java compiler which detect common bug patterns.
A predicate DSL for matching javac AST nodes.
-
Uses of TypePredicate in com.google.errorprone.bugpatterns
Methods in com.google.errorprone.bugpatterns that return TypePredicateModifier and TypeMethodDescriptionprotected abstract TypePredicate
AbstractToString.typePredicate()
The type to match on.protected TypePredicate
AnnotationMirrorToString.typePredicate()
protected TypePredicate
AnnotationValueToString.typePredicate()
protected TypePredicate
ArrayToString.typePredicate()
protected TypePredicate
LiteProtoToString.typePredicate()
protected TypePredicate
ObjectToString.typePredicate()
protected TypePredicate
StreamToString.typePredicate()
protected TypePredicate
SymbolToString.typePredicate()
protected TypePredicate
TreeToString.typePredicate()
protected TypePredicate
TypeToString.typePredicate()
-
Uses of TypePredicate in com.google.errorprone.matchers
Methods in com.google.errorprone.matchers with parameters of type TypePredicateModifier and TypeMethodDescriptionstatic <T extends com.sun.source.tree.Tree>
Matcher<T> Matchers.typePredicateMatcher
(TypePredicate pred) Match a Tree based solely on the type produced byASTHelpers.getType(Tree)
. -
Uses of TypePredicate in com.google.errorprone.matchers.method
Methods in com.google.errorprone.matchers.method with parameters of type TypePredicateModifier and TypeMethodDescriptionMethodMatchers.ConstructorMatcher.forClass
(TypePredicate predicate) Deprecated.Match on types that satisfy the given predicate.MethodMatchers.AnyMethodMatcher.onClass
(TypePredicate predicate) Deprecated.Match the given type exactly.MethodMatchers.InstanceMethodMatcher.onClass
(TypePredicate predicate) Deprecated.Match on types that satisfy the given predicate.MethodMatchers.StaticMethodMatcher.onClass
(TypePredicate predicate) Deprecated.Match on types that satisfy the given predicate. -
Uses of TypePredicate in com.google.errorprone.predicates
Methods in com.google.errorprone.predicates that return TypePredicateModifier and TypeMethodDescriptionstatic TypePredicate
TypePredicates.allOf
(TypePredicate... predicates) static TypePredicate
TypePredicates.anyOf
(TypePredicate... predicates) static TypePredicate
TypePredicates.anything()
Matches everything (alwaystrue
).static TypePredicate
TypePredicates.isArray()
Match arrays.static TypePredicate
TypePredicates.isDescendantOf
(Supplier<com.sun.tools.javac.code.Type> type) Match sub-types of the given type.static TypePredicate
TypePredicates.isDescendantOf
(String type) Match sub-types of the given type.static TypePredicate
TypePredicates.isDescendantOfAny
(Iterable<String> types) Match types that are a sub-type of one of the given types.static TypePredicate
TypePredicates.isExactType
(Supplier<com.sun.tools.javac.code.Type> type) Match types that are exactly equal.static TypePredicate
TypePredicates.isExactType
(String type) Match types that are exactly equal.static TypePredicate
TypePredicates.isExactTypeAny
(Iterable<String> types) Match types that are exactly equal to any of the given types.static TypePredicate
TypePredicates.not
(TypePredicate predicate) static TypePredicate
TypePredicates.nothing()
Matches nothing (alwaysfalse
).Methods in com.google.errorprone.predicates with parameters of type TypePredicateModifier and TypeMethodDescriptionstatic TypePredicate
TypePredicates.allOf
(TypePredicate... predicates) static TypePredicate
TypePredicates.anyOf
(TypePredicate... predicates) static TypePredicate
TypePredicates.not
(TypePredicate predicate) -
Uses of TypePredicate in com.google.errorprone.predicates.type
Classes in com.google.errorprone.predicates.type that implement TypePredicateModifier and TypeClassDescriptionenum
Matches arrays.class
Matches sub-types of the given type.class
Matches types that are a sub-type of one of the given types.class
Matches types that exactly match the given type.class
Matches types that exactly match one of the given types.