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 TypePredicateAbstractToString.typePredicate()The type to match on.protected TypePredicateAnnotationMirrorToString.typePredicate()protected TypePredicateAnnotationValueToString.typePredicate()protected TypePredicateArrayToString.typePredicate()protected TypePredicateLiteProtoToString.typePredicate()protected TypePredicateObjectToString.typePredicate()protected TypePredicateStreamToString.typePredicate()protected TypePredicateSymbolToString.typePredicate()protected TypePredicateTreeToString.typePredicate()protected TypePredicateTypeToString.typePredicate() -
Uses of TypePredicate in com.google.errorprone.matchers
Methods in com.google.errorprone.matchers with parameters of type TypePredicateModifier and TypeMethodDescriptionMatchers.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 TypePredicateTypePredicates.allOf(TypePredicate... predicates) static TypePredicateTypePredicates.anyOf(TypePredicate... predicates) static TypePredicateTypePredicates.anything()Matches everything (alwaystrue).static TypePredicateTypePredicates.isArray()Match arrays.static TypePredicateTypePredicates.isDescendantOf(Supplier<com.sun.tools.javac.code.Type> type) Match sub-types of the given type.static TypePredicateTypePredicates.isDescendantOf(String type) Match sub-types of the given type.static TypePredicateTypePredicates.isDescendantOfAny(Iterable<String> types) Match types that are a sub-type of one of the given types.static TypePredicateTypePredicates.isExactType(Supplier<com.sun.tools.javac.code.Type> type) Match types that are exactly equal.static TypePredicateTypePredicates.isExactType(String type) Match types that are exactly equal.static TypePredicateTypePredicates.isExactTypeAny(Iterable<String> types) Match types that are exactly equal to any of the given types.static TypePredicateTypePredicates.not(TypePredicate predicate) static TypePredicateTypePredicates.nothing()Matches nothing (alwaysfalse).Methods in com.google.errorprone.predicates with parameters of type TypePredicateModifier and TypeMethodDescriptionstatic TypePredicateTypePredicates.allOf(TypePredicate... predicates) static TypePredicateTypePredicates.anyOf(TypePredicate... predicates) static TypePredicateTypePredicates.not(TypePredicate predicate) -
Uses of TypePredicate in com.google.errorprone.predicates.type
Classes in com.google.errorprone.predicates.type that implement TypePredicateModifier and TypeClassDescriptionenumMatches arrays.classMatches sub-types of the given type.classMatches types that are a sub-type of one of the given types.classMatches types that exactly match the given type.classMatches types that exactly match one of the given types.