Uses of Class
com.google.errorprone.ClassName
Packages that use ClassName
Package
Description
Support code for providing automated corrections for defects we find.
A predicate DSL for matching javac AST nodes.
Supports matchers, but rather than giving Matcher implementations which are predicates on
individual AST nodes, a supplier gives contextual information from the traversal of the AST.
Utility code.
-
Uses of ClassName in com.google.errorprone
Methods in com.google.errorprone that return ClassName -
Uses of ClassName in com.google.errorprone.fixes
Methods in com.google.errorprone.fixes with parameters of type ClassNameModifier and TypeMethodDescriptionstatic StringSuggestedFixes.qualifyType(VisitorState state, SuggestedFix.Builder fix, ClassName typeName) Returns a human-friendly name of the giventypeNamefor use in fixes. -
Uses of ClassName in com.google.errorprone.matchers
Fields in com.google.errorprone.matchers declared as ClassNameModifier and TypeFieldDescriptionstatic final ClassNameProtobufMatchers.ABSTRACT_MESSAGE_LITEstatic final ClassNameProtobufMatchers.BYTE_STRINGstatic final ClassNameProtobufMatchers.DESCRIPTORstatic final ClassNameProtobufMatchers.DYNAMIC_MESSAGEstatic final ClassNameProtobufMatchers.ENUM_DESCRIPTORstatic final ClassNameProtobufMatchers.ENUM_LITEstatic final ClassNameProtobufMatchers.ENUM_VALUE_DESCRIPTORstatic final ClassNameProtobufMatchers.EXTENDABLE_MESSAGEstatic final ClassNameProtobufMatchers.EXTENDABLE_MESSAGE_LITEstatic final ClassNameProtobufMatchers.EXTENSIONstatic final ClassNameProtobufMatchers.EXTENSION_LITEstatic final ClassNameProtobufMatchers.FIELD_DESCRIPTORstatic final ClassNameProtobufMatchers.FILE_DESCRIPTORstatic final ClassNameProtobufMatchers.GENERATED_MESSAGEstatic final ClassNameProtobufMatchers.GENERATED_MESSAGE_BUILDERstatic final ClassNameProtobufMatchers.GENERATED_MESSAGE_LITEstatic final ClassNameProtobufMatchers.GENERATED_MESSAGE_LITE_BUILDERstatic final ClassNameProtobufMatchers.INTERNAL_ONE_OF_ENUMstatic final ClassNameProtobufMatchers.MESSAGEstatic final ClassNameProtobufMatchers.MESSAGE_BUILDERstatic final ClassNameProtobufMatchers.MESSAGE_LITEstatic final ClassNameProtobufMatchers.MESSAGE_LITE_BUILDERstatic final ClassNameProtobufMatchers.MESSAGE_LITE_OR_BUILDERstatic final ClassNameProtobufMatchers.MESSAGE_OR_BUILDERstatic final ClassNameProtobufMatchers.MUTABLE_MESSAGE_LITEstatic final ClassNameProtobufMatchers.ONEOF_DESCRIPTORstatic final ClassNameProtobufMatchers.PROTO_DURATIONstatic final ClassNameProtobufMatchers.PROTO_DURATIONS_UTILstatic final ClassNameProtobufMatchers.PROTO_FIELD_MASK_UTILstatic final ClassNameProtobufMatchers.PROTO_TIMESTAMPstatic final ClassNameProtobufMatchers.PROTO_TIMESTAMPS_UTILstatic final ClassNameProtobufMatchers.PROTOCOL_MESSAGE_ENUMstatic final ClassNameProtobufMatchers.PROTOCOL_STRING_LISTstatic final ClassNameProtobufMatchers.SERVICE_DESCRIPTORstatic final ClassNameProtobufMatchers.UNKNOWN_FIELD_SETMethods in com.google.errorprone.matchers with parameters of type ClassNameModifier and TypeMethodDescriptionstatic Matcher<MethodTree> Matchers.constructorOfClass(ClassName className) Matches a constructor declaration in a specific enclosing class.Matchers.hasAnnotation(ClassName annotationClass) Determines whether an expression has an annotation of the given type.static Matcher<MethodTree> Matchers.hasAnnotationOnAnyOverriddenMethod(ClassName annotationClass) Matches if a method or any method it overrides has an annotation of the given type.Matchers.hasAnyAnnotation(ClassName... annotations) Determines whether a tree has any of the given annotations.static Matcher<AnnotationTree> Matchers.hasMetaAnnotation(ClassName annotationClassName) Matches an annotation that is itself annotated with the given annotation, i.e. a meta-annotation.Matchers.isDirectImplementationOf(ClassName clazz) Matches any node that is directly an implementation, but not extension, of the given Class.Matchers.isExtensionOf(ClassName clazz) Matches any node that is a direct extension of the given class.Matchers.isSameType(ClassName className) Matches an AST node if it has the same erased type as the given class.Matchers.isSubtypeOf(ClassName className) Matches an AST node if its type is a subtype of the given class.static Matcher<AnnotationTree> Matches anAnnotationTreewith the given annotationClassName.static Matcher<MethodTree> Matchers.methodReturns(ClassName returnType) Match a method whose return type equals the givenreturnType.static Matcher<MethodTree> Matchers.methodWithClassAndName(ClassName className, String methodName) Match a method declaration with a specific enclosing class and method name.Matchers.symbolHasAnnotation(ClassName annotationClass) Determines whether an expression refers to a symbol that has an annotation of the given type.Method parameters in com.google.errorprone.matchers with type arguments of type ClassNameModifier and TypeMethodDescriptionstatic Matcher<ExpressionTree> JUnitMatchers.isJUnit4TestRunnerOfClasses(Iterable<ClassName> runnerTypes) Matches an argument of typeClass<T>, whereTis a subtype of one of the givenrunnerTypes.Constructors in com.google.errorprone.matchers with parameters of type ClassName -
Uses of ClassName in com.google.errorprone.matchers.field
Methods in com.google.errorprone.matchers.field with parameters of type ClassNameModifier and TypeMethodDescription -
Uses of ClassName in com.google.errorprone.matchers.method
Methods in com.google.errorprone.matchers.method with parameters of type ClassNameModifier and TypeMethodDescriptionDeprecated.Match on the given class exactly.Deprecated.Match on the given class exactly.Deprecated.Match on the given class exactly.MethodMatchers.StaticMethodMatcher.onClassAny(ClassName... classNames) Deprecated.Match on types that are equal to any of the given classes.MethodMatchers.AnyMethodMatcher.onDescendantOf(ClassName className) Deprecated.Match on descendants of the given class.MethodMatchers.InstanceMethodMatcher.onDescendantOf(ClassName className) Deprecated.Match on descendants of the given class.MethodMatchers.StaticMethodMatcher.onDescendantOf(ClassName className) Deprecated.Match on descendants of the given class.MethodMatchers.AnyMethodMatcher.onDescendantOfAny(ClassName... classTypes) Deprecated.Match on types that are descendants of any of the given classes.MethodMatchers.InstanceMethodMatcher.onDescendantOfAny(ClassName... classTypes) Deprecated.Match on types that are descendants of any of the given classes.MethodMatchers.StaticMethodMatcher.onDescendantOfAny(ClassName... classTypes) Deprecated.Match on types that are descendants of any of the given classes.MethodMatchers.InstanceMethodMatcher.onExactClass(ClassName className) Deprecated.Match on the given class exactly.MethodMatchers.InstanceMethodMatcher.onExactClassAny(ClassName... classTypes) Deprecated.Match on types that are exactly the same as any of the given classes.MethodMatchers.ConstructorClassMatcher.withParametersOfType(ClassName first, ClassName... rest) Deprecated.Match constructors whose formal parameters have the given types.MethodMatchers.MethodNameMatcher.withParametersOfType(ClassName first, ClassName... rest) Deprecated.Match methods whose formal parameters have the given types. -
Uses of ClassName in com.google.errorprone.predicates
Methods in com.google.errorprone.predicates with parameters of type ClassNameModifier and TypeMethodDescriptionstatic TypePredicateTypePredicates.hasAnnotation(ClassName annotationType) Match types that are annotated with the given annotation.static TypePredicateTypePredicates.isDescendantOf(ClassName type) Match sub-types of the given type.static TypePredicateTypePredicates.isDescendantOfAny(ClassName... types) Match types that are a sub-type of one of the given types.static TypePredicateTypePredicates.isExactType(ClassName type) Match types that are exactly equal.static TypePredicateTypePredicates.isExactTypeAny(ClassName... types) Match types that are exactly equal to any of the given types. -
Uses of ClassName in com.google.errorprone.suppliers
Methods in com.google.errorprone.suppliers with parameters of type ClassName -
Uses of ClassName in com.google.errorprone.util
Methods in com.google.errorprone.util with parameters of type ClassNameModifier and TypeMethodDescriptionstatic booleanASTHelpers.hasAnnotation(@Nullable Tree tree, ClassName annotationClass, VisitorState state) Check for the presence of an annotation, considering annotation inheritance.static booleanASTHelpers.hasAnnotation(@Nullable com.sun.tools.javac.code.Symbol sym, ClassName annotationClass, VisitorState state) Determines whether a symbol has an annotation of the given type.static booleanASTHelpers.isSameType(com.sun.tools.javac.code.Type s, ClassName t, VisitorState state) Returns true iferasure(s) == erasure(t).static booleanASTHelpers.isSubtype(com.sun.tools.javac.code.Type s, ClassName t, VisitorState state) Returns true iferasure(s) <: erasure(t).