Index

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

absent() - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
An empty explanation.
ABSTRACT - Enum constant in enum com.google.errorprone.annotations.Modifier
 
AbstractAsKeyOfSetOrMap - Class in com.google.errorprone.bugpatterns
Check for usage of Set<T> or Map<T, E>.
AbstractAsKeyOfSetOrMap() - Constructor for class com.google.errorprone.bugpatterns.AbstractAsKeyOfSetOrMap
 
AbstractBanUnsafeAPIChecker - Class in com.google.errorprone.bugpatterns
An abstract class that detects use of the unsafe APIs.
AbstractBanUnsafeAPIChecker() - Constructor for class com.google.errorprone.bugpatterns.AbstractBanUnsafeAPIChecker
 
AbstractCollectionIncompatibleTypeMatcher - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
Extracts the necessary information from a MethodInvocationTree to check whether calls to a method are using incompatible types and to emit a helpful error message.
AbstractCollectionIncompatibleTypeMatcher() - Constructor for class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher
 
AbstractCollectionIncompatibleTypeMatcher.MatchResult - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
Encapsulates the result of matching a Collection.contains(java.lang.Object)-like call, including the source and target types.
AbstractMockChecker<T> - Class in com.google.errorprone.bugpatterns
Helper for enforcing Annotations that disallow mocking.
AbstractMockChecker(AbstractMockChecker.TypeExtractor<VariableTree>, AbstractMockChecker.TypeExtractor<MethodInvocationTree>, Class<T>, Function<T, String>) - Constructor for class com.google.errorprone.bugpatterns.AbstractMockChecker
 
AbstractMockChecker.MockForbidder - Interface in com.google.errorprone.bugpatterns
A policy for determining what classes should not be mocked.
AbstractMockChecker.Reason - Class in com.google.errorprone.bugpatterns
An explanation of what type should not be mocked, and the reason why.
AbstractMockChecker.TypeExtractor<T> - Interface in com.google.errorprone.bugpatterns
An extension of Matcher to return, not just a boolean `matches`, but also extract some type information about the Tree of interest.
AbstractMustBeClosedChecker - Class in com.google.errorprone.bugpatterns
An abstract check for resources that must be closed; used by StreamResourceLeak and MustBeClosedChecker.
AbstractMustBeClosedChecker() - Constructor for class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker
 
AbstractMustBeClosedChecker.Change - Class in com.google.errorprone.bugpatterns
Error Prone's fix application logic doesn't like it when a fix suggests multiple identical insertions at the same position.
AbstractPatternSyntaxChecker - Class in com.google.errorprone.bugpatterns
Finds calls to regex-accepting methods with literal strings.
AbstractPatternSyntaxChecker() - Constructor for class com.google.errorprone.bugpatterns.AbstractPatternSyntaxChecker
 
AbstractReferenceEquality - Class in com.google.errorprone.bugpatterns
Abstract implementation of a BugPattern that detects the use of reference equality to compare classes with value semantics.
AbstractReferenceEquality() - Constructor for class com.google.errorprone.bugpatterns.AbstractReferenceEquality
 
AbstractReturnValueIgnored - Class in com.google.errorprone.bugpatterns
An abstract base class to match API usages in which the return value is not used.
AbstractReturnValueIgnored() - Constructor for class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
 
AbstractReturnValueIgnored(ConstantExpressions) - Constructor for class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
 
AbstractToString - Class in com.google.errorprone.bugpatterns
An abstract matcher for implicit and explicit calls to Object.toString(), for use on types that do not have a human-readable toString() implementation.
AbstractToString(ErrorProneFlags) - Constructor for class com.google.errorprone.bugpatterns.AbstractToString
 
AbstractTypeMatcher<T> - Class in com.google.errorprone.matchers
Base class for type matchers.
AbstractTypeMatcher(Supplier<Type>) - Constructor for class com.google.errorprone.matchers.AbstractTypeMatcher
 
AbstractTypeMatcher(String) - Constructor for class com.google.errorprone.matchers.AbstractTypeMatcher
 
AbstractUseSwitch - Class in com.google.errorprone.bugpatterns
Helper for refactoring from if-else chains to switches.
AbstractUseSwitch() - Constructor for class com.google.errorprone.bugpatterns.AbstractUseSwitch
 
accept(ConstantExpressions.ConstantExpressionVisitor) - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression
 
accept(ConstantExpressions.ConstantExpressionVisitor) - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.PureMethodInvocation
 
accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UAnyOf
 
accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UFreeIdent
 
accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UMethodIdent
 
accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UStaticIdent
 
accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.ULiteral
 
accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UMemberSelect
 
accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UMethodInvocation
 
accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UPlaceholderExpression
 
accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UReturn
 
accept(TreeVisitor<R, D>, D) - Method in class com.google.errorprone.refaster.UVariableDecl
 
acceptedAnnotations(Iterable<String>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
Annotations that do *not* cause a class to be tested, but which are treated as valid annotations to pass the test; for example, if @ThreadSafe is the marker annotation, @Immutable would be included in this list, as an immutable class is by definition thread-safe.
AccessPath - Class in com.google.errorprone.dataflow
A sequence of field names or autovalue accessors, along with a receiver: either a variable or a reference (explicit or implicit) to this.
AccessPath() - Constructor for class com.google.errorprone.dataflow.AccessPath
 
AccessPathStore<V> - Class in com.google.errorprone.dataflow
Immutable map from local variables or heap access paths to their AbstractValue
AccessPathStore() - Constructor for class com.google.errorprone.dataflow.AccessPathStore
 
AccessPathStore.Builder<V> - Class in com.google.errorprone.dataflow
Builder for AccessPathStore instances.
AccessPathValues<T> - Interface in com.google.errorprone.dataflow
Read-only access to AccessPathStore for convenience.
actualTypes(Inliner) - Method in class com.google.errorprone.refaster.Template
Returns a list of the actual types to be matched.
add(Replacement) - Method in class com.google.errorprone.fixes.Replacements
 
add(Replacement, Replacements.CoalescePolicy) - Method in class com.google.errorprone.fixes.Replacements
 
add(Class<?>, String...) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
 
add(String) - Method in class com.google.errorprone.apply.ImportStatements
Add an import to the list of imports.
add(String, String...) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
 
addAll(ImmutableMap<String, AnnotationInfo>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
 
addAll(Collection<String>) - Method in class com.google.errorprone.apply.ImportStatements
Add all imports in a collection to this list of imports.
addAllClassDiff(Iterable<? extends ApiDiffProto.ClassDiff>) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
addAllFixes(List<? extends Fix>) - Method in class com.google.errorprone.matchers.Description.Builder
Add each fix in order.
addAllMember(Iterable<? extends ApiDiffProto.ClassMember>) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
addBinding(Class<T>, T) - Method in class com.google.errorprone.scanner.ErrorProneInjector
 
addClassDiff(int, ApiDiffProto.ClassDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
addClassDiff(int, ApiDiffProto.ClassDiff.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
addClassDiff(ApiDiffProto.ClassDiff) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
addClassDiff(ApiDiffProto.ClassDiff.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
addClassDiffBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
addClassDiffBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
addClasses(Set<Class<?>>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
 
addFailCall(TryTree, StatementTree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.MissingFail
 
addFix(Fix) - Method in class com.google.errorprone.matchers.Description.Builder
Adds a suggested fix for this Description.
addFix(Optional<? extends Fix>) - Method in class com.google.errorprone.matchers.Description.Builder
Deprecated.
prefer referring to empty fixes using SuggestedFix.emptyFix().
addFixes(Description.Builder, BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReferenceEquality
 
addGroups(Map<K, ? extends Collection<ImportOrganizer.Import>>, Iterable<K>) - Method in class com.google.errorprone.apply.ImportOrganizer.OrganizedImports
Add groups of already sorted imports.
addImport(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Add an import statement as part of this SuggestedFix.
addImport(String) - Method in class com.google.errorprone.refaster.Inliner
 
addImports(Inliner, SuggestedFix.Builder) - Static method in class com.google.errorprone.refaster.Template
 
addInput(String) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
 
addInputLines(String, String...) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
 
ADDITIVE - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
 
addMember(int, ApiDiffProto.ClassMember) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
addMember(int, ApiDiffProto.ClassMember.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
addMember(ApiDiffProto.ClassMember) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
addMember(ApiDiffProto.ClassMember.Builder) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
addMemberBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
addMemberBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
addMembers(ClassTree, VisitorState, SuggestedFixes.AdditionPosition, Iterable<String>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a Fix that adds members defined by members to the class referenced by classTree.
addMembers(ClassTree, VisitorState, SuggestedFixes.AdditionPosition, String, String...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a Fix that adds members defined by firstMember (and optionally otherMembers) to the class referenced by classTree.
addMembers(ClassTree, VisitorState, String, String...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a Fix that adds members defined by firstMember (and optionally otherMembers) to the end of the class referenced by classTree.
addModifiers(Tree, VisitorState, Modifier...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Adds modifiers to the given class, method, or field declaration.
addModifiers(Tree, ModifiersTree, VisitorState, Set<Modifier>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Adds modifiers to the given declaration and corresponding modifiers tree.
addModules(String...) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
 
addModules(String...) - Method in class com.google.errorprone.CompilationTestHelper
 
addOption(SuggestedFix) - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
 
addOutput(String) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper.ExpectOutput
 
addOutputLines(String, String...) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper.ExpectOutput
 
addRepeatedField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
addRepeatedField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
addRepeatedField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
addRepeatedField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
addRepeatedField(Descriptors.FieldDescriptor, Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
AddressSelection - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
AddressSelection() - Constructor for class com.google.errorprone.bugpatterns.AddressSelection
 
addRule(ResultUseRule<C, S>) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.Builder
Adds the given rule.
addRules(ResultUseRule<C, S>...) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.Builder
Adds all the given rules.
addRules(Iterable<? extends ResultUseRule<C, S>>) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.Builder
Adds all the given rules.
addSourceFile(String) - Method in class com.google.errorprone.CompilationTestHelper
Adds a source file to the test compilation, from an existing resource file.
addSourceLines(String, String...) - Method in class com.google.errorprone.CompilationTestHelper
Adds a source file to the test compilation, from the string content of the file.
addStaticImport(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Add a static import statement as part of this SuggestedFix.
addStaticImport(String) - Method in class com.google.errorprone.refaster.Inliner
 
addStrings(List<String>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
 
addSuppressWarnings(SuggestedFix.Builder, VisitorState, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Modifies fixBuilder to either create a new @SuppressWarnings element on the closest suppressible node, or add warningToSuppress to that node if there's already a SuppressWarnings annotation there.
addSuppressWarnings(SuggestedFix.Builder, VisitorState, String, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Modifies fixBuilder to either create a new @SuppressWarnings element on the closest suppressible node, or add warningToSuppress to that node if there's already a SuppressWarnings annotation there.
addSuppressWarnings(SuggestedFix.Builder, VisitorState, String, String, boolean) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Modifies fixBuilder to either create a new @SuppressWarnings element on the closest suppressible node, or add warningToSuppress to that node if there's already a SuppressWarnings annotation there.
addSuppressWarnings(VisitorState, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a fix that adds a @SuppressWarnings(warningToSuppress) to the closest suppressible element to the node pointed at by state.getPath().
addSuppressWarnings(VisitorState, String, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a fix that adds a @SuppressWarnings(warningToSuppress) to the closest suppressible element to the node pointed at by state.getPath(), optionally suffixing the suppression with a comment suffix (e.g.
addType(Type) - Method in class com.google.errorprone.bugpatterns.StronglyType.Builder
Add a type that can be replaced with a stronger type.
addValuesToAnnotationArgument(AnnotationTree, String, Collection<String>, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a fix that appends newValues to the parameterName argument for annotation, regardless of whether there is already an argument.
AdjustedPosition - Class in com.google.errorprone.fixes
Describes a tree position with adjustments to the start and end indices.
AdjustedPosition(JCTree, int, int) - Constructor for class com.google.errorprone.fixes.AdjustedPosition
 
AFTER - Enum constant in enum com.google.errorprone.util.Commented.Position
 
afterComments() - Method in class com.google.errorprone.util.Commented
 
AfterTemplate - Annotation Type in com.google.errorprone.refaster.annotation
Desired "after" version of a refactoring.
ALL - Enum constant in enum com.google.errorprone.matchers.ChildMultiMatcher.MatchType
Matches if all of the child elements match the matcher.
allChecks() - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
Returns a ScannerSupplier with all BugCheckers in Error Prone.
allNames() - Method in class com.google.errorprone.BugCheckerInfo
 
allNames() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
allNames() - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyAnalyzer
Returns all of the name strings that this checker should respect as part of a @SuppressWarnings annotation.
allNames() - Method in interface com.google.errorprone.matchers.Suppressible
Returns all of the name strings that this checker should respect as part of a @SuppressWarnings annotation.
allOf(Matcher<? super T>...) - Static method in class com.google.errorprone.matchers.Matchers
Compose several matchers together, such that the composite matches an AST node iff all the given matchers do.
allOf(TypePredicate...) - Static method in class com.google.errorprone.predicates.TypePredicates
 
allOf(Iterable<? extends Matcher<? super T>>) - Static method in class com.google.errorprone.matchers.Matchers
Compose several matchers together, such that the composite matches an AST node iff all the given matchers do.
allOn() - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByFlags
 
allowableToStringKind(AbstractToString.ToStringKind) - Method in class com.google.errorprone.bugpatterns.AbstractToString
Whether this kind of toString call is allowable for this check.
allowableToStringKind(AbstractToString.ToStringKind) - Method in class com.google.errorprone.bugpatterns.ArrayToString
 
allowBreakingChanges() - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
If set, fixes that produce output that doesn't compile are allowed.
AllowCodeBetweenLines - Annotation Type in com.google.errorprone.refaster.annotation
Annotation on a Refaster rule to allow code between every pair of consecutive top-level statements in @BeforeTemplates that do not refer to variables Refaster knows about and do not break or return, and moves that code to the beginning of the @AfterTemplate.
allowedOnPath() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
Allow the restricted API on paths matching this regular expression.
allowInExceptionThrowers() - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
Override this to return false to forbid discarding return values in testers that are testing whether an exception is thrown.
allowlistAnnotations() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
Allow calls to the restricted API in methods or classes with this annotation.
allowlistWithWarningAnnotations() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
Emit warnings, not errors, on calls to the restricted API for callers with this annotation.
allowsIdentity() - Element in annotation type com.google.errorprone.refaster.annotation.Placeholder
Identifies whether the placeholder is allowed to match an expression which simply returns one of the placeholder arguments unchanged.
AlmostJavadoc - Class in com.google.errorprone.bugpatterns.javadoc
Flags comments which appear to be intended to be Javadoc, but are not started with an extra *.
AlmostJavadoc() - Constructor for class com.google.errorprone.bugpatterns.javadoc.AlmostJavadoc
 
AlreadyChecked - Class in com.google.errorprone.bugpatterns
Bugpattern to find conditions which are checked more than once.
AlsoNegation - Annotation Type in com.google.errorprone.refaster.annotation
Indicates that Refaster should, additionally, refactor the negation of this rule and its corresponding before templates.
altNames - Variable in class com.google.errorprone.BugPatternInstance
 
altNames() - Element in annotation type com.google.errorprone.BugPattern
Alternate identifiers for this bug, which may also be used in @SuppressWarnings.
ALWAYS_RETURNS - Enum constant in enum com.google.errorprone.refaster.ControlFlowVisitor.Result
 
AlwaysThrows - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
AmbiguousMethodReference - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
AmbiguousMethodReference() - Constructor for class com.google.errorprone.bugpatterns.AmbiguousMethodReference
 
analyze(VisitorState, HeldLockAnalyzer.LockEventListener, Predicate<Tree>, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.HeldLockAnalyzer
Analyzes a method body, tracking the set of held locks and checking accesses to guarded members.
AND - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
 
ANDROID_STATIC_FIRST_ORGANIZER - Static variable in interface com.google.errorprone.apply.ImportOrganizer
An ImportOrganizer that sorts import statements according to Android Code Style, with static imports first.
ANDROID_STATIC_LAST_ORGANIZER - Static variable in interface com.google.errorprone.apply.ImportOrganizer
An ImportOrganizer that sorts import statements according to Android Code Style, with static imports last.
AndroidInjectionBeforeSuper - Class in com.google.errorprone.bugpatterns.inject.dagger
 
AndroidInjectionBeforeSuper() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.AndroidInjectionBeforeSuper
 
AndroidJdkLibsChecker - Class in com.google.errorprone.bugpatterns.apidiff
Checks for uses of classes, fields, or methods that are not compatible with legacy Android devices.
ANNOTATED_ANNOTATION_MESSAGE - Static variable in class com.google.errorprone.bugpatterns.threadsafety.ImmutableAnnotationChecker
 
ANNOTATED_ENUM_MESSAGE - Static variable in class com.google.errorprone.bugpatterns.threadsafety.ImmutableEnumChecker
 
AnnotateFormatMethod - Class in com.google.errorprone.bugpatterns
Detects occurrences of pairs of parameters being passed straight through to String.format(java.lang.String, java.lang.Object...) from a method not annotated with FormatMethod.
AnnotateFormatMethod() - Constructor for class com.google.errorprone.bugpatterns.AnnotateFormatMethod
 
ANNOTATION_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
AnnotationDoesNotHaveArgument - Class in com.google.errorprone.matchers
Matches an annotation that does not have a particular argument, possibly because the default value is being used.
AnnotationDoesNotHaveArgument(String) - Constructor for class com.google.errorprone.matchers.AnnotationDoesNotHaveArgument
Creates a new matcher.
AnnotationHasArgumentWithValue - Class in com.google.errorprone.matchers
 
AnnotationHasArgumentWithValue(String, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.AnnotationHasArgumentWithValue
 
AnnotationInfo - Class in com.google.errorprone.bugpatterns.threadsafety
Specifies information about a type which may be a container specified by generic type arguments, e.g.
AnnotationInfo() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
 
annotationMap(Symbol) - Static method in class com.google.errorprone.refaster.UTemplater
 
AnnotationMatcher<T> - Class in com.google.errorprone.matchers
Matches if the given annotation matcher matches all of or any of the annotations on the tree node.
AnnotationMatcher(ChildMultiMatcher.MatchType, Matcher<AnnotationTree>) - Constructor for class com.google.errorprone.matchers.AnnotationMatcher
 
AnnotationMatcherUtils - Class in com.google.errorprone.matchers
Utilities for matching annotations.
AnnotationMirrorToString - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
annotationOnVoid(String, String) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ErrorMessages
Error message for when an annotation used by Rules.mapAnnotationSimpleName(java.lang.String, com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicy) is applied to a void-returning method.
AnnotationPosition - Class in com.google.errorprone.bugpatterns
Checks annotation positioning, and orphaned Javadocs.
AnnotationPosition() - Constructor for class com.google.errorprone.bugpatterns.AnnotationPosition
 
annotationReplacements() - Method in class com.google.errorprone.bugpatterns.JUnit4SetUpNotRun
 
annotationReplacements() - Method in class com.google.errorprone.bugpatterns.JUnit4TearDownNotRun
 
annotations() - Method in interface com.google.errorprone.CodeTransformer
Returns a map of annotation data logically applied to this code transformer.
annotations() - Method in class com.google.errorprone.CompositeCodeTransformer
 
annotations() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
annotations() - Method in class com.google.errorprone.refaster.RefasterRule
 
annotations() - Method in class com.google.errorprone.refaster.Template
 
annotations() - Method in class com.google.errorprone.scanner.ErrorProneScannerTransformer
 
annotations(ChildMultiMatcher.MatchType, Matcher<AnnotationTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches if the given annotation matcher matches all of or any of the annotations on this tree node.
annotationsAmong(Symbol, Set<? extends Name>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Determines which of a set of annotations are present on a symbol.
annotationsAreAmbiguous(Collection<? extends AnnotationMirror>) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
 
annotationsRelevantToNullness(List<? extends AnnotationTree>) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
 
AnnotationType - Class in com.google.errorprone.matchers
 
AnnotationType(String) - Constructor for class com.google.errorprone.matchers.AnnotationType
 
AnnotationValueToString - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
any(Collection<Choice<T>>) - Static method in class com.google.errorprone.refaster.Choice
Returns a choice between any of the options from any of the specified choices.
ANY - Enum constant in enum com.google.errorprone.util.Commented.Position
 
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
Deprecated.
Match on any class.
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Deprecated.
Match on any class.
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Deprecated.
Match on any class.
anyFieldInClass(String) - Static method in class com.google.errorprone.matchers.FieldMatchers
 
anyMatch(Predicate<Symbol>) - Method in class com.google.errorprone.util.ErrorProneScope
 
anyMethod() - Static method in class com.google.errorprone.matchers.Matchers
Matches a static or instance method.
anyMethod() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
 
anyOf(Matcher<? super T>...) - Static method in class com.google.errorprone.matchers.Matchers
 
anyOf(TypePredicate...) - Static method in class com.google.errorprone.predicates.TypePredicates
 
anyOf(Iterable<? extends Matcher<? super T>>) - Static method in class com.google.errorprone.matchers.Matchers
Compose several matchers together, such that the composite matches an AST node if any of the given matchers do.
anyOf(T...) - Static method in class com.google.errorprone.refaster.Refaster
Indicates that Refaster should attempt to match a target expression against each of the specified template expressions, in order, and succeed at the first match.
anything() - Static method in class com.google.errorprone.matchers.Matchers
A matcher that matches any AST node.
anything() - Static method in class com.google.errorprone.predicates.TypePredicates
Matches everything (always true).
Api - Class in com.google.errorprone.bugpatterns.checkreturnvalue
Represents a Java method or constructor.
Api() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.Api
 
API_DIFF - Static variable in class com.google.errorprone.bugpatterns.apidiff.Java7ApiChecker
 
ApiDiff - Class in com.google.errorprone.bugpatterns.apidiff
The difference between two APIs.
ApiDiff() - Constructor for class com.google.errorprone.bugpatterns.apidiff.ApiDiff
 
ApiDiff.ClassMemberKey - Class in com.google.errorprone.bugpatterns.apidiff
A per class unique identifier for a field or method.
ApiDiffChecker - Class in com.google.errorprone.bugpatterns.apidiff
A base Error Prone check implementation to enforce compliance with a given API diff.
ApiDiffChecker(ApiDiff) - Constructor for class com.google.errorprone.bugpatterns.apidiff.ApiDiffChecker
 
ApiDiffChecker(ApiDiff, Class<? extends Annotation>) - Constructor for class com.google.errorprone.bugpatterns.apidiff.ApiDiffChecker
 
ApiDiffProto - Class in com.google.errorprone.bugpatterns.apidiff
 
ApiDiffProto.ClassDiff - Class in com.google.errorprone.bugpatterns.apidiff
Protobuf type devtools.staticanalysis.errorprone.apidiff.ClassDiff
ApiDiffProto.ClassDiff.Builder - Class in com.google.errorprone.bugpatterns.apidiff
Protobuf type devtools.staticanalysis.errorprone.apidiff.ClassDiff
ApiDiffProto.ClassDiff.DiffCase - Enum in com.google.errorprone.bugpatterns.apidiff
 
ApiDiffProto.ClassDiffOrBuilder - Interface in com.google.errorprone.bugpatterns.apidiff
 
ApiDiffProto.ClassMember - Class in com.google.errorprone.bugpatterns.apidiff
Protobuf type devtools.staticanalysis.errorprone.apidiff.ClassMember
ApiDiffProto.ClassMember.Builder - Class in com.google.errorprone.bugpatterns.apidiff
Protobuf type devtools.staticanalysis.errorprone.apidiff.ClassMember
ApiDiffProto.ClassMemberOrBuilder - Interface in com.google.errorprone.bugpatterns.apidiff
 
ApiDiffProto.Diff - Class in com.google.errorprone.bugpatterns.apidiff
Protobuf type devtools.staticanalysis.errorprone.apidiff.Diff
ApiDiffProto.Diff.Builder - Class in com.google.errorprone.bugpatterns.apidiff
Protobuf type devtools.staticanalysis.errorprone.apidiff.Diff
ApiDiffProto.DiffOrBuilder - Interface in com.google.errorprone.bugpatterns.apidiff
 
ApiDiffProto.EverythingDiff - Class in com.google.errorprone.bugpatterns.apidiff
Protobuf type devtools.staticanalysis.errorprone.apidiff.EverythingDiff
ApiDiffProto.EverythingDiff.Builder - Class in com.google.errorprone.bugpatterns.apidiff
Protobuf type devtools.staticanalysis.errorprone.apidiff.EverythingDiff
ApiDiffProto.EverythingDiffOrBuilder - Interface in com.google.errorprone.bugpatterns.apidiff
 
ApiDiffProto.MemberDiff - Class in com.google.errorprone.bugpatterns.apidiff
Protobuf type devtools.staticanalysis.errorprone.apidiff.MemberDiff
ApiDiffProto.MemberDiff.Builder - Class in com.google.errorprone.bugpatterns.apidiff
Protobuf type devtools.staticanalysis.errorprone.apidiff.MemberDiff
ApiDiffProto.MemberDiffOrBuilder - Interface in com.google.errorprone.bugpatterns.apidiff
 
ApiFactory - Class in com.google.errorprone.bugpatterns.checkreturnvalue
Utility method to produce Api objects from javac Symbol.MethodSymbol.
AppliedFix - Class in com.google.errorprone.fixes
Represents the corrected source which we think was intended, by applying a Fix.
AppliedFix.Applier - Class in com.google.errorprone.fixes
 
Applier(CharSequence, EndPosTable) - Constructor for class com.google.errorprone.fixes.AppliedFix.Applier
 
apply(Fix) - Method in class com.google.errorprone.fixes.AppliedFix.Applier
Applies the suggestedFix to the source.
apply(UStatement.UnifierWithUnconsumedStatements) - Method in class com.google.errorprone.refaster.UReturn
 
apply(UStatement.UnifierWithUnconsumedStatements) - Method in class com.google.errorprone.refaster.UVariableDecl
 
apply(TreePath, Context, DescriptionListener) - Method in interface com.google.errorprone.CodeTransformer
Apply recursively from the leaf node in the given TreePath.
apply(TreePath, Context, DescriptionListener) - Method in class com.google.errorprone.CompositeCodeTransformer
 
apply(TreePath, Context, DescriptionListener) - Method in class com.google.errorprone.refaster.RefasterRule
 
apply(TreePath, Context, DescriptionListener) - Method in class com.google.errorprone.scanner.ErrorProneScannerTransformer
 
apply(Type, VisitorState) - Method in class com.google.errorprone.predicates.type.DescendantOf
 
apply(Type, VisitorState) - Method in class com.google.errorprone.predicates.type.DescendantOfAny
 
apply(Type, VisitorState) - Method in class com.google.errorprone.predicates.type.Exact
 
apply(Type, VisitorState) - Method in class com.google.errorprone.predicates.type.ExactAny
 
apply(Type, VisitorState) - Method in interface com.google.errorprone.predicates.TypePredicate
 
applyDifferences(SourceFile) - Method in class com.google.errorprone.apply.DescriptionBasedDiff
 
applyDifferences(SourceFile) - Method in interface com.google.errorprone.apply.Diff
Applies this difference to the supplied sourceFile.
applyOverrides(ErrorProneOptions) - Method in class com.google.errorprone.scanner.ScannerSupplier
Applies options to this ScannerSupplier.
applySeverityOverride(BugPattern.SeverityLevel) - Method in class com.google.errorprone.matchers.Description
Internal-only.
argument(int, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
 
argumentCount(int) - Static method in class com.google.errorprone.matchers.Matchers
 
ArgumentSelectionDefectChecker - Class in com.google.errorprone.bugpatterns.argumentselectiondefects
Checks the lexical distance between method parameter names and the argument names at call sites.
ArgumentSelectionDefectChecker() - Constructor for class com.google.errorprone.bugpatterns.argumentselectiondefects.ArgumentSelectionDefectChecker
 
Array - Enum in com.google.errorprone.predicates.type
Matches arrays.
ArrayAsKeyOfSetOrMap - Class in com.google.errorprone.bugpatterns
Warns that users should not have an array as a key to a Set or Map
ArrayAsKeyOfSetOrMap() - Constructor for class com.google.errorprone.bugpatterns.ArrayAsKeyOfSetOrMap
 
ArrayEquals - Class in com.google.errorprone.bugpatterns
 
ArrayEquals() - Constructor for class com.google.errorprone.bugpatterns.ArrayEquals
 
ArrayFillIncompatibleType - Class in com.google.errorprone.bugpatterns
Checks when Arrays.fill(Object[], Object) is called with object types that are guaranteed to result in an ArrayStoreException.
ArrayFillIncompatibleType() - Constructor for class com.google.errorprone.bugpatterns.ArrayFillIncompatibleType
 
ArrayHashCode - Class in com.google.errorprone.bugpatterns
 
ArrayHashCode() - Constructor for class com.google.errorprone.bugpatterns.ArrayHashCode
 
arrayOf(Supplier<Type>) - Static method in class com.google.errorprone.suppliers.Suppliers
 
ArrayRecordComponent - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
ArrayRecordComponent() - Constructor for class com.google.errorprone.bugpatterns.ArrayRecordComponent
 
ArraysAsListPrimitiveArray - Class in com.google.errorprone.bugpatterns
 
ArraysAsListPrimitiveArray() - Constructor for class com.google.errorprone.bugpatterns.ArraysAsListPrimitiveArray
 
ArrayToString - Class in com.google.errorprone.bugpatterns
 
arrayTypeForType(Type) - Method in class com.google.errorprone.VisitorState
Build an Array Type from another Type
ascending() - Method in class com.google.errorprone.fixes.Replacements
Non-overlapping replacements, sorted in ascending order by position.
asEnumValue(Class<T>, AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given attribute to an enum value.
asFlagSet(long) - Static method in class com.google.errorprone.util.ASTHelpers
 
asImportBlock() - Method in class com.google.errorprone.apply.ImportOrganizer.OrganizedImports
Get the organized imports as a block of imports, with blank links between the separate groups.
asIntegerValue(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given attribute to an integer value.
asName(CharSequence) - Method in class com.google.errorprone.refaster.Inliner
 
AssertEqualsArgumentOrderChecker - Class in com.google.errorprone.bugpatterns.argumentselectiondefects
Checker to make sure that assertEquals-like methods are called with the arguments expected and actual the right way round.
AssertEqualsArgumentOrderChecker() - Constructor for class com.google.errorprone.bugpatterns.argumentselectiondefects.AssertEqualsArgumentOrderChecker
 
assertEqualsInvocation() - Static method in class com.google.errorprone.matchers.Matchers
Matches calls to the method org.junit.Assert#assertEquals and corresponding methods in JUnit 3.x.
AssertFalse - Class in com.google.errorprone.bugpatterns
 
AssertFalse() - Constructor for class com.google.errorprone.bugpatterns.AssertFalse
 
assertHasDiagnosticOnAllMatchingLines(JavaFileObject, DiagnosticTestHelper.LookForCheckNameInDiagnostic) - Method in class com.google.errorprone.DiagnosticTestHelper
Asserts that the diagnostics contain a diagnostic on each line of the source file that matches our bug marker pattern.
AssertionFailureIgnored - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
AssertionFailureIgnored() - Constructor for class com.google.errorprone.bugpatterns.AssertionFailureIgnored
 
assertionWithCondition(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an assertion AST node if the given matcher matches its condition.
assertNotEqualsInvocation() - Static method in class com.google.errorprone.matchers.Matchers
Matches calls to the method org.junit.Assert#assertNotEquals and corresponding methods in JUnit 3.x.
Asserts - Class in com.google.errorprone.matchers
Matches assert statements which have a condition expression matched by the given matcher.
Asserts(Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.Asserts
 
assertStatement(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an assert statement where the condition is matched by the passed conditionMatcher.
AssertThrowsMultipleStatements - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
AssertThrowsMultipleStatements() - Constructor for class com.google.errorprone.bugpatterns.AssertThrowsMultipleStatements
 
AssertThrowsUtils - Class in com.google.errorprone.bugpatterns
Utility methods for refactoring try-fail pattern to assertThrows, which is preferred.
assignment(Matcher<ExpressionTree>, Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an assignment operator AST node if both of the given matchers match.
ASSIGNMENT - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
 
ASSISTED_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
ASSISTED_INJECT_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
AssistedInjectAndInjectOnConstructors - Class in com.google.errorprone.bugpatterns.inject
 
AssistedInjectAndInjectOnConstructors() - Constructor for class com.google.errorprone.bugpatterns.inject.AssistedInjectAndInjectOnConstructors
 
AssistedInjectAndInjectOnSameConstructor - Class in com.google.errorprone.bugpatterns.inject
 
AssistedInjectAndInjectOnSameConstructor() - Constructor for class com.google.errorprone.bugpatterns.inject.AssistedInjectAndInjectOnSameConstructor
 
AssistedInjectScoping - Class in com.google.errorprone.bugpatterns.inject.guice
This checker matches iff *both* of the following conditions are true: 1) The class is assisted: a) If there is a constructor that is annotated with @Inject and that constructor has at least one parameter that is annotated with @Assisted.
AssistedInjectScoping() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.AssistedInjectScoping
 
AssistedParameters - Class in com.google.errorprone.bugpatterns.inject.guice
 
AssistedParameters() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.AssistedParameters
 
asStrings(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given annotation value to one or more strings.
asStringValue(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given attribute to an string value.
AST_MATCH - Enum constant in enum com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode
 
ASTHelpers - Class in com.google.errorprone.util
This class contains utility methods to work with the javac AST.
ASTHelpers.ScanThrownTypes - Class in com.google.errorprone.util
Scanner for determining what types are thrown by a tree.
ASTHelpers.TargetType - Class in com.google.errorprone.util
ASTHelpersSuggestions - Class in com.google.errorprone.bugpatterns
A BugPattern; see the summary
ASTHelpersSuggestions() - Constructor for class com.google.errorprone.bugpatterns.ASTHelpersSuggestions
 
asTypes(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given annotation value to one or more annotations.
asTypeValue(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given attribute to an enum value.
asVarargs(T) - Static method in class com.google.errorprone.refaster.Refaster
Indicates that Refaster should treat this @Repeated argument specifically as a varargs argument.
AsyncCallableReturnsNull - Class in com.google.errorprone.bugpatterns
Checks that AsyncCallable implementations do not directly return null.
AsyncCallableReturnsNull() - Constructor for class com.google.errorprone.bugpatterns.AsyncCallableReturnsNull
 
AsyncFunctionReturnsNull - Class in com.google.errorprone.bugpatterns
Checks that AsyncFunction implementations do not directly return null.
AsyncFunctionReturnsNull() - Constructor for class com.google.errorprone.bugpatterns.AsyncFunctionReturnsNull
 
AT_LEAST_ONE - Enum constant in enum com.google.errorprone.matchers.ChildMultiMatcher.MatchType
Matches if at least one of the child elements match the matcher.
AttemptedNegativeZero - Class in com.google.errorprone.bugpatterns
A BugPattern; see the summary.
AttemptedNegativeZero() - Constructor for class com.google.errorprone.bugpatterns.AttemptedNegativeZero
 
autoBuilders() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.AutoValueRules
Returns a rule for abstract methods on @AutoBuilder types.
AutoFactoryAtInject - Class in com.google.errorprone.bugpatterns.inject
 
AutoFactoryAtInject() - Constructor for class com.google.errorprone.bugpatterns.inject.AutoFactoryAtInject
 
AUTOGENERATED - Enum constant in enum com.google.errorprone.BugPattern.LinkType
Link to autogenerated documentation, hosted on the error-prone web site.
AutoValueBoxedValues - Class in com.google.errorprone.bugpatterns
See summary for details.
AutoValueBoxedValues() - Constructor for class com.google.errorprone.bugpatterns.AutoValueBoxedValues
 
AutoValueBuilderDefaultsInConstructor - Class in com.google.errorprone.bugpatterns
See summary for details.
AutoValueBuilderDefaultsInConstructor() - Constructor for class com.google.errorprone.bugpatterns.AutoValueBuilderDefaultsInConstructor
 
autoValueBuilders() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.AutoValueRules
Returns a rule for abstract methods on @AutoValue.Builder types.
AutoValueConstructorOrderChecker - Class in com.google.errorprone.bugpatterns.argumentselectiondefects
Checker to make sure that constructors for AutoValue types are invoked with arguments in the correct order.
AutoValueConstructorOrderChecker() - Constructor for class com.google.errorprone.bugpatterns.argumentselectiondefects.AutoValueConstructorOrderChecker
 
AutoValueFinalMethods - Class in com.google.errorprone.bugpatterns
Checks the toString(), hashCode() and equals() methods are final in AutoValue classes.
AutoValueFinalMethods() - Constructor for class com.google.errorprone.bugpatterns.AutoValueFinalMethods
 
AutoValueImmutableFields - Class in com.google.errorprone.bugpatterns
Flags mutable collections in AutoValue.
AutoValueImmutableFields() - Constructor for class com.google.errorprone.bugpatterns.AutoValueImmutableFields
 
AutoValueRules - Class in com.google.errorprone.bugpatterns.checkreturnvalue
Rules for @AutoValue, @AutoValue.Builder, and @AutoBuilder types.
autoValues() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.AutoValueRules
Returns a rule for abstract methods on @AutoValue types.
AutoValueSubclassLeaked - Class in com.google.errorprone.bugpatterns
Matches AutoValue_ uses outside the containing file.
AutoValueSubclassLeaked() - Constructor for class com.google.errorprone.bugpatterns.AutoValueSubclassLeaked
 
AvoidObjectArrays - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
AvoidObjectArrays() - Constructor for class com.google.errorprone.bugpatterns.AvoidObjectArrays
 

B

BadAnnotationImplementation - Class in com.google.errorprone.bugpatterns
Checker that ensures implementations of Annotation override equals and hashCode.
BadAnnotationImplementation() - Constructor for class com.google.errorprone.bugpatterns.BadAnnotationImplementation
 
BadComparable - Class in com.google.errorprone.bugpatterns
 
BadComparable() - Constructor for class com.google.errorprone.bugpatterns.BadComparable
 
BadImport - Class in com.google.errorprone.bugpatterns
 
BadInstanceof - Class in com.google.errorprone.bugpatterns
Matches instanceof checks where the expression is a subtype of the checked type.
BadInstanceof() - Constructor for class com.google.errorprone.bugpatterns.BadInstanceof
 
BadShiftAmount - Class in com.google.errorprone.bugpatterns
 
BadShiftAmount() - Constructor for class com.google.errorprone.bugpatterns.BadShiftAmount
 
BanClassLoader - Class in com.google.errorprone.bugpatterns
A BugChecker that detects use of the unsafe JNDI API system.
BanClassLoader() - Constructor for class com.google.errorprone.bugpatterns.BanClassLoader
 
BanJNDI - Class in com.google.errorprone.bugpatterns
A BugChecker that detects use of the unsafe JNDI API system.
BanJNDI() - Constructor for class com.google.errorprone.bugpatterns.BanJNDI
 
BANNED_OBJECT_INPUT_STREAM_METHODS - Static variable in class com.google.errorprone.bugpatterns.SerializableReads
 
BanSerializableRead - Class in com.google.errorprone.bugpatterns
A BugChecker that detects use of the unsafe Serializable API.
BanSerializableRead() - Constructor for class com.google.errorprone.bugpatterns.BanSerializableRead
 
BareDotMetacharacter - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern for details.
BareDotMetacharacter() - Constructor for class com.google.errorprone.bugpatterns.BareDotMetacharacter
 
base() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Select
 
base() - Method in class com.google.errorprone.dataflow.AccessPath
If present, base of access path is contained Element; if absent, base is `this`
BaseErrorProneJavaCompiler - Class in com.google.errorprone
An Error Prone compiler that implements JavaCompiler.
BaseErrorProneJavaCompiler(ScannerSupplier) - Constructor for class com.google.errorprone.BaseErrorProneJavaCompiler
 
BEFORE - Enum constant in enum com.google.errorprone.util.Commented.Position
 
beforeComments() - Method in class com.google.errorprone.util.Commented
 
BeforeTemplate - Annotation Type in com.google.errorprone.refaster.annotation
Desired "before" version of a refactoring.
BigDecimalEquals - Class in com.google.errorprone.bugpatterns
Matches use of BigDecimal#equals, which compares scale as well (which is not likely to be intended).
BigDecimalEquals() - Constructor for class com.google.errorprone.bugpatterns.BigDecimalEquals
 
BigDecimalLiteralDouble - Class in com.google.errorprone.bugpatterns
Matches usages of new BigDecimal(double) which lose precision.
BigDecimalLiteralDouble() - Constructor for class com.google.errorprone.bugpatterns.BigDecimalLiteralDouble
 
BINARY_TREE_MATCHER - Static variable in class com.google.errorprone.bugpatterns.BadShiftAmount
 
binaryNameFromClassname(String) - Method in class com.google.errorprone.VisitorState
Returns the Name object corresponding to the named class, converting it to binary form along the way if necessary (i.e., replacing Foo.Bar with Foo$Bar).
binaryTree(Matcher<ExpressionTree>, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a binary tree if the given matchers match the operands in either order.
bind(Context, ImportPolicy) - Static method in enum com.google.errorprone.refaster.ImportPolicy
 
BinderIdentityRestoredDangerously - Class in com.google.errorprone.bugpatterns.android
 
BinderIdentityRestoredDangerously() - Constructor for class com.google.errorprone.bugpatterns.android.BinderIdentityRestoredDangerously
 
bindExpression(JCTree.JCExpression, VisitorState, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder
Creates a GuardedByExpression from a bound AST node, or returns Optional.empty() if the AST node doesn't correspond to a 'simple' lock expression.
bindGuardedByString(Tree, String, VisitorState, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils
 
bindings - Variable in class com.google.errorprone.refaster.Inliner
 
Bindings - Class in com.google.errorprone.refaster
A type-safe map from objects of type Bindings.Key<V>, which consist of a String key and a Bindings.Key subclass, to values of type V.
Bindings.Key<V> - Class in com.google.errorprone.refaster
A key type for a Binding.
BindingToUnqualifiedCommonType - Class in com.google.errorprone.bugpatterns.inject.guice
 
BindingToUnqualifiedCommonType() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.BindingToUnqualifiedCommonType
 
bindString(String, GuardedBySymbolResolver, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder
Creates a GuardedByExpression from a string, given the resolution context.
Block(Matcher<BlockTree>) - Constructor for class com.google.errorprone.matchers.Enclosing.Block
 
BLOCK - Enum constant in enum com.google.errorprone.util.ErrorProneComment.ErrorProneCommentStyle
 
BlockOrCase(Matcher<BlockTree>, Matcher<CaseTree>) - Constructor for class com.google.errorprone.matchers.Enclosing.BlockOrCase
 
BlockTemplate - Class in com.google.errorprone.refaster
Template representing a sequence of consecutive statements.
BlockTemplate() - Constructor for class com.google.errorprone.refaster.BlockTemplate
 
BOOLEAN_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
booleanConstant(boolean) - Static method in class com.google.errorprone.matchers.Matchers
Matches the boolean constant (Boolean.TRUE or Boolean.FALSE) corresponding to the given value.
booleanLit(boolean) - Static method in class com.google.errorprone.refaster.ULiteral
 
booleanLiteral(boolean) - Static method in class com.google.errorprone.matchers.Matchers
 
BooleanParameter - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
BooleanParameter() - Constructor for class com.google.errorprone.bugpatterns.BooleanParameter
 
BOTTOM - Enum constant in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
 
BoxedPrimitiveConstructor - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
BoxedPrimitiveConstructor() - Constructor for class com.google.errorprone.bugpatterns.BoxedPrimitiveConstructor
 
BoxedPrimitiveEquality - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
BranchedSuggestedFixes - Class in com.google.errorprone.fixes
Helper class for accumulating a branching tree of alternative fixes designed to help build as set of potential fixes with different options in them.
BranchedSuggestedFixes.Builder - Class in com.google.errorprone.fixes
Builder class for BranchedSuggestedFixes
BugChecker - Class in com.google.errorprone.bugpatterns
A base class for implementing bug checkers.
BugChecker() - Constructor for class com.google.errorprone.bugpatterns.BugChecker
 
BugChecker.AnnotatedTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.AnnotationTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ArrayAccessTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ArrayTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.AssertTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.AssignmentTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.BinaryTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.BlockTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.BreakTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.CaseTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.CatchTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ClassTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.CompilationUnitTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.CompoundAssignmentTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ConditionalExpressionTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ContinueTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.DoWhileLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.EmptyStatementTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.EnhancedForLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ExpressionStatementTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ForLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.IdentifierTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.IfTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ImportTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.InstanceOfTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.IntersectionTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.LabeledStatementTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.LambdaExpressionTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.LiteralTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.MemberReferenceTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.MemberSelectTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.MethodInvocationTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.MethodTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ModifiersTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.NewArrayTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.NewClassTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ParameterizedTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ParenthesizedTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.PrimitiveTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ReturnTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.SuppressibleTreePathScanner<R,P> - Class in com.google.errorprone.bugpatterns
A TreePathScanner which skips trees which are suppressed for this check.
BugChecker.SwitchTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.SynchronizedTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ThrowTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.TryTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.TypeCastTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.TypeParameterTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.UnaryTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.UnionTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.VariableTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.WhileLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.WildcardTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugCheckerInfo - Class in com.google.errorprone
An accessor for information about a single bug checker, including the metadata in the check's @BugPattern annotation and the class that implements the check.
BugCheckerRefactoringTestHelper - Class in com.google.errorprone
Compare a file transformed as suggested by BugChecker to an expected source.
BugCheckerRefactoringTestHelper.ExpectOutput - Class in com.google.errorprone
To assert the proper .addInput().addOutput() chain.
BugCheckerRefactoringTestHelper.FixChooser - Interface in com.google.errorprone
For checks that provide multiple possible fixes, chooses the one that will be applied for the test.
BugCheckerRefactoringTestHelper.FixChoosers - Enum in com.google.errorprone
Predefined FixChoosers for selecting a fix by its position in the list
BugCheckerRefactoringTestHelper.TestMode - Enum in com.google.errorprone
Test mode for matching refactored source against expected source.
BugPattern - Annotation Type in com.google.errorprone
Describes a bug pattern detected by error-prone.
BugPattern.LinkType - Enum in com.google.errorprone
The type of link to generate in the compiler error message.
BugPattern.SeverityLevel - Enum in com.google.errorprone
The severity of the diagnostic.
BugPattern.StandardTags - Class in com.google.errorprone
A collection of standardized tags that can be applied to BugPatterns.
BugPatternIndexWriter - Class in com.google.errorprone
 
BugPatternIndexWriter() - Constructor for class com.google.errorprone.BugPatternIndexWriter
 
BugPatternInstance - Class in com.google.errorprone
A serialization-friendly POJO of the information in a BugPattern.
BugPatternInstance() - Constructor for class com.google.errorprone.BugPatternInstance
 
BugPatternNaming - Class in com.google.errorprone.bugpatterns
See the summary.
BugPatternNaming() - Constructor for class com.google.errorprone.bugpatterns.BugPatternNaming
 
BugPatternValidator - Class in com.google.errorprone
Validates an @BugPattern annotation for wellformedness.
build() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
build() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
build() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
build() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
build() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
build() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.Builder
build() - Method in class com.google.errorprone.bugpatterns.StronglyType.Builder
 
build() - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes.MapBuilder
 
build() - Method in class com.google.errorprone.dataflow.AccessPathStore.Builder
 
build() - Method in class com.google.errorprone.ErrorProneFlags.Builder
 
build() - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
 
build() - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
build() - Method in class com.google.errorprone.matchers.Description.Builder
 
build(VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
 
buildDescription(Tree) - Method in class com.google.errorprone.bugpatterns.BugChecker
Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.
buildDescription(JCTree) - Method in class com.google.errorprone.bugpatterns.BugChecker
Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.
buildDescription(JCDiagnostic.DiagnosticPosition) - Method in class com.google.errorprone.bugpatterns.BugChecker
Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.
builder() - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
 
builder() - Static method in class com.google.errorprone.ErrorProneFlags
 
builder() - Static method in class com.google.errorprone.fixes.BranchedSuggestedFixes
 
builder() - Static method in class com.google.errorprone.fixes.SuggestedFix
 
builder(ResultUsePolicyEvaluator.MethodInfo<C, S, M>) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator
builder(Tree, String, String, String) - Static method in class com.google.errorprone.matchers.Description
Returns a new builder for Descriptions.
builder(JCTree, String, String, String) - Static method in class com.google.errorprone.matchers.Description
Returns a new builder for Descriptions.
builder(JCDiagnostic.DiagnosticPosition, String, String, String) - Static method in class com.google.errorprone.matchers.Description
Returns a new builder for Descriptions.
Builder() - Constructor for class com.google.errorprone.bugpatterns.StronglyType.Builder
 
Builder() - Constructor for class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
 
Builder() - Constructor for class com.google.errorprone.fixes.SuggestedFix.Builder
 
BuilderReturnThis - Class in com.google.errorprone.bugpatterns.checkreturnvalue
Discourages builder instance methods that do not return 'this'.
BuilderReturnThis() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.BuilderReturnThis
 
buildFix() - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
 
buildFix(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringSplitter
 
buildPartial() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
buildPartial() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
buildPartial() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
buildPartial() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
buildPartial() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
BuiltInCheckerSuppliers - Class in com.google.errorprone.scanner
Static helper class that provides ScannerSuppliers and BugCheckers for the built-in Error Prone checks, as opposed to plugin checks or checks used in tests.
BundleDeserializationCast - Class in com.google.errorprone.bugpatterns.android
 
BundleDeserializationCast() - Constructor for class com.google.errorprone.bugpatterns.android.BundleDeserializationCast
 
BYTE_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
ByteBufferBackingArray - Class in com.google.errorprone.bugpatterns
Checks when ByteBuffer.array() is used without calling .arrayOffset() to know the offset of the array, or when the buffer wasn't initialized using ByteBuffer.wrap() or ByteBuffer.allocate().
ByteBufferBackingArray() - Constructor for class com.google.errorprone.bugpatterns.ByteBufferBackingArray
 

C

CacheLoaderNull - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
CacheLoaderNull() - Constructor for class com.google.errorprone.bugpatterns.CacheLoaderNull
 
canAlias(JavaExpression, JavaExpression) - Method in class com.google.errorprone.dataflow.AccessPathStore
 
canBeRemoved(Symbol.ClassSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
canBeRemoved(Symbol.VarSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
canBeRemoved(Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether this symbol is safe to remove.
CanBeStaticAnalyzer - Class in com.google.errorprone.bugpatterns
Analyzes trees for references to their enclosing instance.
CanBeStaticAnalyzer.CanBeStaticResult - Class in com.google.errorprone.bugpatterns
Stores the result of a can-be-static query.
canBeStaticResult(Tree, Symbol, VisitorState) - Static method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer
 
CanBeStaticResult() - Constructor for class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer.CanBeStaticResult
 
canCompleteNormally(CaseTree) - Static method in class com.google.errorprone.util.Reachability
Returns true if the given case tree can complete normally, as defined by JLS 14.21.
canCompleteNormally(StatementTree) - Static method in class com.google.errorprone.util.Reachability
Returns true if the given statement can complete normally, as defined by JLS 14.21.
CanIgnoreReturnValue - Annotation Type in com.google.errorprone.annotations
Indicates that the return value of the annotated API is ignorable.
CanIgnoreReturnValueSuggester - Class in com.google.errorprone.bugpatterns.checkreturnvalue
Checker that recommends annotating a method with @CanIgnoreReturnValue if the method returns this, returns an effectively final input param, or if it looks like a builder method (that is likely to return this).
CannotMockFinalClass - Class in com.google.errorprone.bugpatterns
Bug pattern to recognize attempts to mock final types.
CannotMockFinalClass() - Constructor for class com.google.errorprone.bugpatterns.CannotMockFinalClass
 
CannotMockMethod - Class in com.google.errorprone.bugpatterns
A BugPattern; see the summary
CannotMockMethod() - Constructor for class com.google.errorprone.bugpatterns.CannotMockMethod
 
CanonicalDuration - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
CanonicalDuration() - Constructor for class com.google.errorprone.bugpatterns.CanonicalDuration
 
canonicalName() - Method in class com.google.errorprone.BugCheckerInfo
 
canonicalName() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
canonicalName() - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyAnalyzer
The canonical name of the check.
canonicalName() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
The fully-qualified canonical name of the type.
canonicalName() - Method in interface com.google.errorprone.matchers.Suppressible
The canonical name of the check.
canonicalName(String, BugPattern) - Static method in class com.google.errorprone.BugCheckerInfo
 
canPossiblyBeStatic() - Method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer.CanBeStaticResult
Whether the method could *possibly* be static: i.e., this is false if it references an instance field.
castTree(ExpressionTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Casts the given expressionTree to toType, adding parentheses if necessary.
CatchAndPrintStackTrace - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
CatchAndPrintStackTrace() - Constructor for class com.google.errorprone.bugpatterns.CatchAndPrintStackTrace
 
CatchFail - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
CatchFail() - Constructor for class com.google.errorprone.bugpatterns.CatchFail
 
CatchingUnchecked - Class in com.google.errorprone.bugpatterns
Flags code which catches RuntimeExceptions under the guise of catching Exception.
CatchingUnchecked() - Constructor for class com.google.errorprone.bugpatterns.CatchingUnchecked
 
category - Variable in class com.google.errorprone.BugPatternInstance
 
ChainedAssertionLosesContext - Class in com.google.errorprone.bugpatterns
Identifies calls to assertThat and similar methods inside the implementation of a Subject assertion method.
ChainedAssertionLosesContext() - Constructor for class com.google.errorprone.bugpatterns.ChainedAssertionLosesContext
 
ChainingConstructorIgnoresParameter - Class in com.google.errorprone.bugpatterns
Checks, if two constructors in a class both accept Foo foo and one calls the other, that the caller passes foo as a parameter.
ChainingConstructorIgnoresParameter() - Constructor for class com.google.errorprone.bugpatterns.ChainingConstructorIgnoresParameter
 
Change() - Constructor for class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker.Change
 
CHAR_SEQUENCE - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
 
CHAR_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
CharacterGetNumericValue - Class in com.google.errorprone.bugpatterns
Checks for use of Character.getNumericValue and UCharacter.getNumericValue
CharacterGetNumericValue() - Constructor for class com.google.errorprone.bugpatterns.CharacterGetNumericValue
 
charAt(int) - Method in class com.google.errorprone.refaster.StringName
 
charLit(char) - Static method in class com.google.errorprone.refaster.ULiteral
 
check(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.apidiff.AndroidJdkLibsChecker
 
check(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffChecker
 
CHECK_ALL_CONSTRUCTORS - Static variable in class com.google.errorprone.bugpatterns.CheckReturnValue
 
CHECK_ALL_METHODS - Static variable in class com.google.errorprone.bugpatterns.CheckReturnValue
 
CheckedExceptionNotThrown - Class in com.google.errorprone.bugpatterns
Flags checked exceptions which are claimed to be thrown, but are not.
CheckedExceptionNotThrown() - Constructor for class com.google.errorprone.bugpatterns.CheckedExceptionNotThrown
 
checkerClass() - Method in class com.google.errorprone.BugCheckerInfo
 
checkForImmutability(Optional<ClassTree>, ImmutableSet<String>, Type.ClassType, ImmutableAnalysis.ViolationReporter) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableAnalysis
Check that an @Immutable-annotated class: does not declare or inherit any mutable fields, any immutable supertypes are instantiated with immutable type arguments as required by their containerOf spec, and any enclosing instances are immutable.
checkForThreadSafety(Optional<ClassTree>, ImmutableSet<String>, Type.ClassType) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafeAnalysis
Check that an @ThreadSafe-annotated class: does not declare or inherit any fields which are not thread safe, any threadsafe supertypes are instantiated with threadsafe type arguments as required by their containerOf spec, and any enclosing instances are threadsafe.
checkGuardedAccess(Tree, GuardedByExpression, HeldLockSet, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
 
checkGuardedBy(boolean, String) - Static method in exception class com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
Throws an IllegalGuardedBy exception if the given condition is false.
checkGuardedBy(boolean, String, Object...) - Static method in exception class com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
Throws an IllegalGuardedBy exception if the given condition is false.
checkInstantiation(Symbol.TypeVariableSymbol, Collection<Type>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Checks that any thread-safe type parameters are instantiated with thread-safe types.
checkInstantiation(Collection<Symbol.TypeVariableSymbol>, Collection<Type>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
 
checkInvocation(Type, Symbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableAnalysis
 
checkInvocation(Type, Symbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafeAnalysis
 
checkInvocation(Type, Symbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Checks the instantiation of any thread-safe type parameters in the current invocation.
checkMethod(MethodTree, ImmutableSet<Symbol.MethodSymbol>, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit3TestNotRun
Matches iff: Method's name begins with misspelled variation of "test".
checkName - Variable in class com.google.errorprone.matchers.Description
The name of the check that produced the match.
checkName() - Method in exception class com.google.errorprone.ErrorProneError
 
CheckNotNullMultipleTimes - Class in com.google.errorprone.bugpatterns
Checks for the same variable being checked against null twice in a method.
CheckNotNullMultipleTimes() - Constructor for class com.google.errorprone.bugpatterns.CheckNotNullMultipleTimes
 
CheckReturnValue - Class in com.google.errorprone.bugpatterns
 
CheckReturnValue - Annotation Type in com.google.errorprone.annotations
Indicates that the return value of the annotated method must be used.
checkSuperInstantiation(Set<String>, AnnotationInfo, Type) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Check that the super-type of a @ThreadSafe-annotated type is instantiated with threadsafe type arguments where required by its annotation's containerOf element, and that any type arguments that correspond to containerOf type parameters on the sub-type are also in the super-type's containerOf spec.
ChildMultiMatcher<T,N> - Class in com.google.errorprone.matchers
A MultiMatcher that applies a matcher across multiple children of a single ancestor node.
ChildMultiMatcher(ChildMultiMatcher.MatchType, Matcher<N>) - Constructor for class com.google.errorprone.matchers.ChildMultiMatcher
 
ChildMultiMatcher.MatchType - Enum in com.google.errorprone.matchers
 
Choice<T> - Class in com.google.errorprone.refaster
A representation of a choice with zero or more options, which may be evaluated lazily or strictly.
choose(List<Fix>) - Method in interface com.google.errorprone.BugCheckerRefactoringTestHelper.FixChooser
 
Class(Matcher<ClassTree>) - Constructor for class com.google.errorprone.matchers.Enclosing.Class
 
CLASS_DIFF_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
 
CLASS_LITERAL - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Kind
 
CLASS_NAME_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
 
CLASS_NAME_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
 
CLASS_NAME_WITH_T - Enum constant in enum com.google.errorprone.bugpatterns.TypeParameterNaming.TypeParameterNamingClassification
A valid Type Parameter name, that follows the style guide rule:
ClassCanBeStatic - Class in com.google.errorprone.bugpatterns
 
ClassCanBeStatic() - Constructor for class com.google.errorprone.bugpatterns.ClassCanBeStatic
 
classDescriptor(Type, VisitorState) - Static method in class com.google.errorprone.util.Signatures
Returns the binary names of the class.
classify(String) - Static method in enum com.google.errorprone.bugpatterns.TypeParameterNaming.TypeParameterNamingClassification
 
ClassInitializationDeadlock - Class in com.google.errorprone.bugpatterns
See the summary.
ClassInitializationDeadlock() - Constructor for class com.google.errorprone.bugpatterns.ClassInitializationDeadlock
 
classLiteral(Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
 
ClassLiteral() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.ClassLiteral
 
ClassMemberKey() - Constructor for class com.google.errorprone.bugpatterns.apidiff.ApiDiff.ClassMemberKey
 
className - Variable in class com.google.errorprone.BugPatternInstance
 
className() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.Api
Returns the fully qualified type that contains the given method/constructor.
ClassName - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
ClassName() - Constructor for class com.google.errorprone.bugpatterns.ClassName
 
ClassNamedLikeTypeParameter - Class in com.google.errorprone.bugpatterns
 
ClassNamedLikeTypeParameter() - Constructor for class com.google.errorprone.bugpatterns.ClassNamedLikeTypeParameter
 
ClassNewInstance - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
ClassNewInstance() - Constructor for class com.google.errorprone.bugpatterns.ClassNewInstance
 
classReference(Inliner, CharSequence, CharSequence) - Method in enum com.google.errorprone.refaster.ImportPolicy
 
clazz - Variable in class com.google.errorprone.matchers.Enclosing.Block
 
clazz - Variable in class com.google.errorprone.matchers.Enclosing.Class
 
clazz - Variable in class com.google.errorprone.matchers.Enclosing.Method
 
clazz() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
clazz() - Static method in class com.google.errorprone.refaster.Refaster
This is a placeholder for the expression T.class.
clear() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
clear() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
clear() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
clear() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
clear() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
clearBinding(Bindings.Key<?>) - Method in class com.google.errorprone.refaster.Unifier
 
clearClassDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
clearClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
string class_name = 1;
clearClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
string class_name = 1;
clearDiagnostics() - Method in class com.google.errorprone.DiagnosticTestHelper
 
clearDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
clearEverythingDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
clearField(Descriptors.FieldDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
clearField(Descriptors.FieldDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
clearField(Descriptors.FieldDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
clearField(Descriptors.FieldDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
clearField(Descriptors.FieldDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
clearIdentifier() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
string identifier = 1;
clearMember() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
clearMemberDescriptor() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
a JVMS 4.3 member descriptor
clearMemberDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
clearOneof(Descriptors.OneofDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
clearOneof(Descriptors.OneofDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
clearOneof(Descriptors.OneofDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
clearOneof(Descriptors.OneofDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
clearOneof(Descriptors.OneofDescriptor) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
clone() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
clone() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
clone() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
clone() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
clone() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
cloneWithoutMetadata(Type) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ApiFactory
 
CLOSEABLE_DECORATOR_TYPES - Static variable in class com.google.errorprone.bugpatterns.CloseableDecoratorTypes
 
CloseableDecoratorTypes - Class in com.google.errorprone.bugpatterns
Common AutoCloseable decorator types that wrap around AutoCloseable resources, which are always closed when the enclosing decorators are closed.
CloseableProvides - Class in com.google.errorprone.bugpatterns.inject
 
CloseableProvides() - Constructor for class com.google.errorprone.bugpatterns.inject.CloseableProvides
 
ClosingStandardOutputStreams - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
ClosingStandardOutputStreams() - Constructor for class com.google.errorprone.bugpatterns.ClosingStandardOutputStreams
 
coalesce(String, String) - Method in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
Handle two insertions at the same position.
CodeTransformer - Interface in com.google.errorprone
Interface for a transformation over Java source.
COLLECTION - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
 
CollectionIncompatibleType - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
Checker for calling Object-accepting methods with types that don't match the type arguments of their container types.
CollectionToArraySafeParameter - Class in com.google.errorprone.bugpatterns
 
CollectionToArraySafeParameter() - Constructor for class com.google.errorprone.bugpatterns.CollectionToArraySafeParameter
 
CollectionUndefinedEquality - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
Highlights use of Collection#contains (and others) with types that do not have well-defined equals.
CollectionUndefinedEquality() - Constructor for class com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionUndefinedEquality
 
collector - Variable in class com.google.errorprone.DiagnosticTestHelper
 
COLLECTOR_OF_CALL - Static variable in class com.google.errorprone.bugpatterns.CollectorShouldNotUseState
 
CollectorShouldNotUseState - Class in com.google.errorprone.bugpatterns
 
CollectorShouldNotUseState() - Constructor for class com.google.errorprone.bugpatterns.CollectorShouldNotUseState
 
com.google.errorprone - package com.google.errorprone
 
com.google.errorprone.annotations - package com.google.errorprone.annotations
 
com.google.errorprone.annotations.concurrent - package com.google.errorprone.annotations.concurrent
 
com.google.errorprone.apply - package com.google.errorprone.apply
 
com.google.errorprone.bugpatterns - package com.google.errorprone.bugpatterns
Checks added to the java compiler which detect common bug patterns.
com.google.errorprone.bugpatterns.android - package com.google.errorprone.bugpatterns.android
 
com.google.errorprone.bugpatterns.apidiff - package com.google.errorprone.bugpatterns.apidiff
 
com.google.errorprone.bugpatterns.argumentselectiondefects - package com.google.errorprone.bugpatterns.argumentselectiondefects
 
com.google.errorprone.bugpatterns.checkreturnvalue - package com.google.errorprone.bugpatterns.checkreturnvalue
 
com.google.errorprone.bugpatterns.collectionincompatibletype - package com.google.errorprone.bugpatterns.collectionincompatibletype
 
com.google.errorprone.bugpatterns.flogger - package com.google.errorprone.bugpatterns.flogger
 
com.google.errorprone.bugpatterns.formatstring - package com.google.errorprone.bugpatterns.formatstring
 
com.google.errorprone.bugpatterns.inject - package com.google.errorprone.bugpatterns.inject
Bug patterns related to dependency injection and JSR 330.
com.google.errorprone.bugpatterns.inject.dagger - package com.google.errorprone.bugpatterns.inject.dagger
Bug patterns related to Dagger.
com.google.errorprone.bugpatterns.inject.guice - package com.google.errorprone.bugpatterns.inject.guice
Bug patterns related to Guice.
com.google.errorprone.bugpatterns.inlineme - package com.google.errorprone.bugpatterns.inlineme
 
com.google.errorprone.bugpatterns.javadoc - package com.google.errorprone.bugpatterns.javadoc
 
com.google.errorprone.bugpatterns.nullness - package com.google.errorprone.bugpatterns.nullness
 
com.google.errorprone.bugpatterns.overloading - package com.google.errorprone.bugpatterns.overloading
 
com.google.errorprone.bugpatterns.threadsafety - package com.google.errorprone.bugpatterns.threadsafety
 
com.google.errorprone.bugpatterns.time - package com.google.errorprone.bugpatterns.time
 
com.google.errorprone.dataflow - package com.google.errorprone.dataflow
 
com.google.errorprone.dataflow.nullnesspropagation - package com.google.errorprone.dataflow.nullnesspropagation
 
com.google.errorprone.dataflow.nullnesspropagation.inference - package com.google.errorprone.dataflow.nullnesspropagation.inference
 
com.google.errorprone.fixes - package com.google.errorprone.fixes
Support code for providing automated corrections for defects we find.
com.google.errorprone.matchers - package com.google.errorprone.matchers
A predicate DSL for matching javac AST nodes.
com.google.errorprone.matchers.method - package com.google.errorprone.matchers.method
 
com.google.errorprone.names - package com.google.errorprone.names
 
com.google.errorprone.predicates - package com.google.errorprone.predicates
 
com.google.errorprone.predicates.type - package com.google.errorprone.predicates.type
 
com.google.errorprone.refaster - package com.google.errorprone.refaster
 
com.google.errorprone.refaster.annotation - package com.google.errorprone.refaster.annotation
 
com.google.errorprone.scanner - package com.google.errorprone.scanner
 
com.google.errorprone.suppliers - package com.google.errorprone.suppliers
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.
com.google.errorprone.util - package com.google.errorprone.util
Utility code.
Commented<T> - Class in com.google.errorprone.util
Class to hold AST nodes annotated with the comments that are associated with them
Commented() - Constructor for class com.google.errorprone.util.Commented
 
Commented.Position - Enum in com.google.errorprone.util
Identifies the position of a comment relative to the associated treenode.
comments() - Method in class com.google.errorprone.util.ErrorProneToken
 
Comments - Class in com.google.errorprone.util
Utilities for attaching comments to relevant AST nodes
ComparableAndComparator - Class in com.google.errorprone.bugpatterns
 
ComparableAndComparator() - Constructor for class com.google.errorprone.bugpatterns.ComparableAndComparator
 
ComparableType - Class in com.google.errorprone.bugpatterns
 
ComparableType() - Constructor for class com.google.errorprone.bugpatterns.ComparableType
 
compareToMethodDeclaration() - Static method in class com.google.errorprone.matchers.Matchers
Matches compareTo method declaration.
CompareToZero - Class in com.google.errorprone.bugpatterns
Suggests comparing the result of compareTo to only 0.
CompareToZero() - Constructor for class com.google.errorprone.bugpatterns.CompareToZero
 
ComparingThisWithNull - Class in com.google.errorprone.bugpatterns
Check for expressions containing this != null or this == null
ComparingThisWithNull() - Constructor for class com.google.errorprone.bugpatterns.ComparingThisWithNull
 
ComparisonContractViolated - Class in com.google.errorprone.bugpatterns
 
ComparisonContractViolated() - Constructor for class com.google.errorprone.bugpatterns.ComparisonContractViolated
 
comparisonKey() - Method in interface com.google.errorprone.matchers.method.MethodInvocationMatcher.Token
The value to compare with MethodInvocationMatcher.TokenType.extract(Context, VisitorState) to determine whether this property matches.
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
 
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
 
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
 
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
 
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
 
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
 
ComparisonOutOfRange - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
ComparisonOutOfRange() - Constructor for class com.google.errorprone.bugpatterns.ComparisonOutOfRange
 
compatibilityOfTypes(Type, Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeCompatibility
 
CompatibleWith - Annotation Type in com.google.errorprone.annotations
Declares that a parameter to a method must be "compatible with" one of the type parameters in the method's enclosing class, or on the method itself.
CompatibleWithMisuse - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
 
CompatibleWithMisuse() - Constructor for class com.google.errorprone.bugpatterns.collectionincompatibletype.CompatibleWithMisuse
 
CompilationTestHelper - Class in com.google.errorprone
Helps test Error Prone bug checkers and compilations.
compile(ImmutableList<String>) - Method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler
 
compile(Iterable<MethodInvocationMatcher.Rule>) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher
Constructs a Matcher that matches for method invocations (including constructor invocations) satisfying at least one of the given Rule specifications.
compilesWithFix(Fix, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns true if the current compilation would succeed with the given fix applied.
compilesWithFix(Fix, VisitorState, ImmutableList<String>, boolean) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns true if the current compilation would succeed with the given fix applied, using the given additional compiler options, optionally limiting the checking of compilation failures to the compilation unit in which the fix is applied.
CompileTimeConstant - Annotation Type in com.google.errorprone.annotations
Annotation for method parameter and class field declarations, which denotes that corresponding actual values must be compile-time constant expressions.
CompileTimeConstantChecker - Class in com.google.errorprone.bugpatterns
A Bugpattern; see the accompanying Markdown documentation.
CompileTimeConstantChecker() - Constructor for class com.google.errorprone.bugpatterns.CompileTimeConstantChecker
 
CompileTimeConstantExpressionMatcher - Class in com.google.errorprone.matchers
A matcher for compile-time-constant expressions.
CompileTimeConstantExpressionMatcher() - Constructor for class com.google.errorprone.matchers.CompileTimeConstantExpressionMatcher
 
ComplexBooleanConstant - Class in com.google.errorprone.bugpatterns
 
ComplexBooleanConstant() - Constructor for class com.google.errorprone.bugpatterns.ComplexBooleanConstant
 
componentBuilders() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.DaggerRules
Returns a rule that handles @dagger.Component.Builder types, making their fluent setter methods' results ignorable.
compose(CodeTransformer...) - Static method in class com.google.errorprone.CompositeCodeTransformer
 
compose(Iterable<? extends CodeTransformer>) - Static method in class com.google.errorprone.CompositeCodeTransformer
 
CompositeCodeTransformer - Class in com.google.errorprone
Combines multiple CodeTransformers into one.
compoundAssignment(Tree.Kind, Matcher<ExpressionTree>, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a compound assignment operator AST node which matches a given left-operand matcher, a given right-operand matcher, and a specific compound assignment operator.
compoundAssignment(Set<Tree.Kind>, Matcher<ExpressionTree>, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a compound assignment operator AST node which matches a given left-operand matcher, a given right-operand matcher, and is one of a set of compound assignment operators.
CompoundAssignment - Class in com.google.errorprone.matchers
Matcher for a compound-assignment operator expression.
CompoundAssignment(Set<Tree.Kind>, Matcher<ExpressionTree>, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.CompoundAssignment
Creates a new compound-assignment operator matcher, which matches a compound assignment expression with one of a set of operators and whose receiver and expression match the given matchers.
ComputeIfAbsentAmbiguousReference - Class in com.google.errorprone.bugpatterns
ComputeIfAbsentAmbiguousReference() - Constructor for class com.google.errorprone.bugpatterns.ComputeIfAbsentAmbiguousReference
 
CONCURRENCY - Static variable in class com.google.errorprone.BugPattern.StandardTags
This check points out potential issues when operating in a concurrent context
condition(boolean) - Method in class com.google.errorprone.refaster.Choice
Returns this choice if condition, otherwise the empty choice.
condition(boolean, T) - Static method in class com.google.errorprone.refaster.Choice
Returns a Choice with t as an option if condition, and no options otherwise.
condition(Predicate<? super T>) - Method in class com.google.errorprone.refaster.Choice
Filters the choices to those that satisfy the provided Predicate.
CONDITIONAL_AND - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
 
CONDITIONAL_OR - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
 
ConditionalExpressionNumericPromotion - Class in com.google.errorprone.bugpatterns
 
ConditionalExpressionNumericPromotion() - Constructor for class com.google.errorprone.bugpatterns.ConditionalExpressionNumericPromotion
 
conflictingAnnotations(List<String>, String) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ErrorMessages
Error message for when annotations mapped to conflicting ResultUsePolicys are applied to the same element.
CONSTANT_EQUALS - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression.ConstantExpressionKind
 
ConstantEquals() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantEquals
 
constantExpression(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions
 
ConstantExpression() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression
 
ConstantExpressions - Class in com.google.errorprone.bugpatterns.threadsafety
Helper for establishing whether expressions correspond to a constant expression.
ConstantExpressions.ConstantEquals - Class in com.google.errorprone.bugpatterns.threadsafety
Represents a binary equals call on two constant expressions.
ConstantExpressions.ConstantExpression - Class in com.google.errorprone.bugpatterns.threadsafety
Represents a constant expression.
ConstantExpressions.ConstantExpression.ConstantExpressionKind - Enum in com.google.errorprone.bugpatterns.threadsafety
The kind of a constant expression.
ConstantExpressions.ConstantExpressionVisitor - Interface in com.google.errorprone.bugpatterns.threadsafety
Visitor for scanning over the components of a constant expression.
ConstantExpressions.PureMethodInvocation - Class in com.google.errorprone.bugpatterns.threadsafety
Represents both a constant method call or a constant field/local access, depending on the actual type of symbol.
ConstantExpressions.Truthiness - Class in com.google.errorprone.bugpatterns.threadsafety
Represents sets of things known to be true and false if a boolean statement evaluated true.
ConstantField - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
ConstantField() - Constructor for class com.google.errorprone.bugpatterns.ConstantField
 
ConstantOverflow - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
ConstantOverflow() - Constructor for class com.google.errorprone.bugpatterns.ConstantOverflow
 
ConstantPatternCompile - Class in com.google.errorprone.bugpatterns
Flags variables initialized with Pattern.compile(String) calls that could be constants.
ConstantPatternCompile() - Constructor for class com.google.errorprone.bugpatterns.ConstantPatternCompile
 
ConstantPropagationAnalysis - Class in com.google.errorprone.dataflow
An interface to the constant propagation analysis.
constructor() - Static method in class com.google.errorprone.matchers.Matchers
Matches a constructor.
constructor() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
 
constructor(ChildMultiMatcher.MatchType, Matcher<MethodTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a class in which any of/all of its constructors match the given constructorMatcher.
CONSTRUCTOR - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.MethodInfo.MethodKind
A constructor.
CONSTRUCTOR - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.MethodKind
 
ConstructorMatchState - Class in com.google.errorprone.matchers.method
The state that is propagated across a match operation for constructors.
ConstructorMatchState() - Constructor for class com.google.errorprone.matchers.method.ConstructorMatchState
 
constructorOfClass(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches a constructor declaration in a specific enclosing class.
ConstructorOfClass - Class in com.google.errorprone.matchers
Applies the given matcher to the constructor(s) of the given class.
ConstructorOfClass(ChildMultiMatcher.MatchType, Matcher<MethodTree>) - Constructor for class com.google.errorprone.matchers.ConstructorOfClass
 
constValue(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the compile-time constant value of a tree if it has one, or null.
constValue(Tree, Class<? extends T>) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the compile-time constant value of a tree if it is of type clazz, or null.
containerOf() - Element in annotation type com.google.errorprone.annotations.Immutable
When annotating a generic type as immutable, containerOf specifies which type parameters must be instantiated with immutable types for the container to be deeply immutable.
containerOf() - Method in class com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
 
containerOfAnnotation(Class<? extends Annotation>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
An annotation which marks a generic parameter as a container type.
containerOfAnnotation(Iterable<String>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
An annotation which marks a generic parameter as a container type.
ContainmentMatchers - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
Matchers for methods which express containment, like Collection.contains(java.lang.Object).
contains(Matcher<Tree>) - Static method in class com.google.errorprone.matchers.Matchers
Applies the given matcher recursively to all descendants of an AST node, and matches if any matching descendant node is found.
contains(Class<? extends V>, Matcher<? super V>) - Static method in class com.google.errorprone.matchers.Matchers
Applies the given matcher recursively to all descendants of an AST node, and matches if any matching descendant node is found.
Contains - Class in com.google.errorprone.matchers
A matcher that recursively inspects a tree, applying the given matcher to all levels of each tree and returning true if any match is found.
Contains(Matcher<Tree>) - Constructor for class com.google.errorprone.matchers.Contains
 
containsAnonymousClassUsingState - Variable in class com.google.errorprone.bugpatterns.CollectorShouldNotUseState
 
containsComments(Tree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether the given tree contains any comments in its source.
containsSyntheticParameterName(Symbol.MethodSymbol) - Static method in class com.google.errorprone.bugpatterns.argumentselectiondefects.NamedParameterComment
Returns true if the method has synthetic parameter names, indicating the real names are not available.
containsTestMethod(Tree) - Static method in class com.google.errorprone.matchers.JUnitMatchers
Returns true if the tree contains a method invocation that looks like a test assertion.
contentEquals(CharSequence) - Method in class com.google.errorprone.refaster.StringName
 
context - Variable in class com.google.errorprone.VisitorState
 
context() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
continueStatement() - Static method in class com.google.errorprone.matchers.Matchers
Matches a continue statement.
ControlFlowVisitor - Class in com.google.errorprone.refaster
Analyzes a series of statements to determine whether they don't, sometimes, or never return.
ControlFlowVisitor.Result - Enum in com.google.errorprone.refaster
The state of whether a sequence of statements may return, break out of the visited statements, or neither.
convert(String) - Method in class com.google.errorprone.DocGenTool.TargetEnumConverter
 
CONVERT_TO_IDENT - Static variable in class com.google.errorprone.refaster.UMemberSelect
Use of this string as an expression in a member select will cause this method select to be inlined as an identifier.
convertRegexToLiteral(String) - Static method in class com.google.errorprone.util.Regexes
If the given regexes matches exactly one string, returns that string.
convertToLowerUnderscore(String) - Static method in class com.google.errorprone.names.NamingConventions
 
copy() - Method in class com.google.errorprone.dataflow.AccessPathStore
 
correctAnnotation() - Method in class com.google.errorprone.bugpatterns.JUnit4SetUpNotRun
 
correctAnnotation() - Method in class com.google.errorprone.bugpatterns.JUnit4TearDownNotRun
 
CouldNotResolveImportException - Exception Class in com.google.errorprone.refaster
Exception thrown when a class symbol could not be resolved by the compiler.
CouldNotResolveImportException(CharSequence) - Constructor for exception class com.google.errorprone.refaster.CouldNotResolveImportException
 
counters() - Method in interface com.google.errorprone.StatisticsCollector
Returns a copy of the counters in this statistics collector.
counters() - Method in class com.google.errorprone.VisitorState
Returns a copy of all of the counters previously added to this VisitorState with VisitorState.incrementCounter(com.google.errorprone.bugpatterns.BugChecker, java.lang.String).
create() - Static method in class com.google.errorprone.refaster.Bindings
 
create() - Static method in class com.google.errorprone.scanner.ErrorProneInjector
 
create(int, int, String) - Static method in class com.google.errorprone.fixes.Replacement
Creates a Replacement.
create(ImmutableClassToInstanceMap<Annotation>, Iterable<UTypeVar>, Map<String, ? extends UType>, UExpression, UType) - Static method in class com.google.errorprone.refaster.ExpressionTemplate
 
create(ImmutableClassToInstanceMap<Annotation>, Iterable<UTypeVar>, Map<String, ? extends UType>, Iterable<? extends UStatement>) - Static method in class com.google.errorprone.refaster.BlockTemplate
 
create(ImmutableList<String>) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
 
create(ImmutableMap<MethodInvocationMatcher.TokenType, ? extends Set<MethodInvocationMatcher.Token>>) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Rule
Builds a Rule object from a map.
create(ResultUseRule<?, S>, ResultUseRule.RuleScope, S, ResultUsePolicy) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.Evaluation
create(GuardedByExpression, Symbol, Type) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Select
 
create(Fix, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler
 
create(MethodInvocationMatcher.MethodKind) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
 
create(Bindings) - Static method in class com.google.errorprone.refaster.Bindings
 
create(Bindings.Key<V>, V) - Static method in class com.google.errorprone.refaster.Bindings
 
create(Bindings.Key<V1>, V1, Bindings.Key<V2>, V2) - Static method in class com.google.errorprone.refaster.Bindings
 
create(UClassIdent, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UMethodIdent
 
create(UClassIdent, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UStaticIdent
 
create(UExpression) - Static method in class com.google.errorprone.refaster.UReturn
 
create(UExpression...) - Static method in class com.google.errorprone.refaster.UAnyOf
 
create(UExpression, UExpression...) - Static method in class com.google.errorprone.refaster.UMethodInvocation
 
create(UExpression, UType) - Static method in class com.google.errorprone.refaster.ExpressionTemplate
 
create(UExpression, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UMemberSelect
 
create(Unifier, List<? extends StatementTree>) - Static method in class com.google.errorprone.refaster.UStatement.UnifierWithUnconsumedStatements
 
create(UStatement...) - Static method in class com.google.errorprone.refaster.BlockTemplate
 
create(UType, UType...) - Static method in class com.google.errorprone.refaster.UMethodType
 
create(UType, List<UType>) - Static method in class com.google.errorprone.refaster.UMethodType
 
create(Scanner) - Static method in class com.google.errorprone.scanner.ErrorProneScannerTransformer
 
create(ExpressionTree, Type, Type, AbstractCollectionIncompatibleTypeMatcher) - Static method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher.MatchResult
 
create(Tree.Kind, Object) - Static method in class com.google.errorprone.refaster.ULiteral
 
create(Symbol) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.ClassLiteral
 
create(Symbol) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.LocalVariable
 
create(Symbol) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.TypeLiteral
 
create(Symbol.ClassSymbol, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UMethodIdent
 
create(Symbol.ClassSymbol, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UStaticIdent
 
create(Symbol.VarSymbol, ModifiersTree) - Static method in class com.google.errorprone.refaster.LocalVarBinding
 
create(Type) - Static method in class com.google.errorprone.refaster.UTypeVar.TypeWithExpression
 
create(Type, JCTree.JCExpression) - Static method in class com.google.errorprone.refaster.UTypeVar.TypeWithExpression
 
create(JCTree.JCCompilationUnit) - Static method in class com.google.errorprone.apply.ImportStatements
 
create(JCTree.JCCompilationUnit, ImportOrganizer) - Static method in class com.google.errorprone.apply.DescriptionBasedDiff
 
create(JCTree.JCCompilationUnit, ImportOrganizer) - Static method in class com.google.errorprone.apply.ImportStatements
 
create(CharSequence) - Static method in class com.google.errorprone.refaster.UFreeIdent
 
create(CharSequence, UExpression) - Static method in class com.google.errorprone.refaster.UVariableDecl
 
create(CharSequence, UExpression, UExpression) - Static method in class com.google.errorprone.refaster.UVariableDecl
 
create(CharSequence, List<UType>) - Static method in class com.google.errorprone.refaster.UClassType
 
create(Class<? extends BugChecker>) - Static method in class com.google.errorprone.BugCheckerInfo
 
create(Iterable<? extends UExpression>) - Static method in class com.google.errorprone.refaster.UAnyOf
 
create(Iterable<UTypeVar>, Map<String, ? extends UType>, UStatement...) - Static method in class com.google.errorprone.refaster.BlockTemplate
 
create(String) - Static method in class com.google.errorprone.bugpatterns.formatstring.FormatStringValidation.ValidationResult
 
create(String) - Static method in class com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
 
create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
 
create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
 
create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
 
create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
 
create(String) - Static method in class com.google.errorprone.refaster.UTypeVar
 
create(String, UType) - Static method in class com.google.errorprone.refaster.UTypeVar
 
create(String, UType...) - Static method in class com.google.errorprone.refaster.UClassType
 
create(String, UType, UType) - Static method in class com.google.errorprone.refaster.UTypeVar
 
create(String, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UStaticIdent
 
create(String, Iterable<UTypeVar>, Collection<? extends Template<?>>, Collection<? extends Template<?>>, ImmutableClassToInstanceMap<Annotation>) - Static method in class com.google.errorprone.refaster.RefasterRule
 
create(String, Iterable<String>) - Static method in class com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
 
create(String, String) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff.ClassMemberKey
 
create(String, Collection<? extends Template<?>>, Collection<? extends Template<?>>) - Static method in class com.google.errorprone.refaster.RefasterRule
 
create(List<? extends UExpression>, UExpression, UExpression...) - Static method in class com.google.errorprone.refaster.UMethodInvocation
 
create(List<? extends UExpression>, UExpression, List<UExpression>) - Static method in class com.google.errorprone.refaster.UMethodInvocation
 
create(List<UTypeVar>, UType) - Static method in class com.google.errorprone.refaster.UForAll
 
create(Map<String, ? extends UType>, UExpression, UType) - Static method in class com.google.errorprone.refaster.ExpressionTemplate
 
create(Map<String, ? extends UType>, UStatement...) - Static method in class com.google.errorprone.refaster.BlockTemplate
 
create(JavaFileObject) - Static method in class com.google.errorprone.apply.SourceFile
 
create(ConsPStack<String>) - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
 
createAnalyzer(ScannerSupplier, ErrorProneOptions, Context, RefactoringCollection[]) - Static method in class com.google.errorprone.ErrorProneAnalyzer
 
createByScanningForPlugins(ScannerSupplier, ErrorProneOptions, Context) - Static method in class com.google.errorprone.ErrorProneAnalyzer
 
createCollector() - Static method in interface com.google.errorprone.StatisticsCollector
Returns a new statistics collector that will successfully count keys added to it.
createConfiguredForCompilation(Context, DescriptionListener, Map<String, BugPattern.SeverityLevel>, ErrorProneOptions) - Static method in class com.google.errorprone.VisitorState
Return a VisitorState configured for a new compilation, including Error Prone configuration.
createForCustomFindingCollection(Context, DescriptionListener) - Static method in class com.google.errorprone.VisitorState
Return a VisitorState that has no Error Prone configuration, but can report findings to listener.
createForUtilityPurposes(Context) - Static method in class com.google.errorprone.VisitorState
Return a VisitorState that has no Error Prone configuration, and can't report results.
createIgnoringOverlaps(JCTree.JCCompilationUnit, ImportOrganizer) - Static method in class com.google.errorprone.apply.DescriptionBasedDiff
 
createInliner() - Method in class com.google.errorprone.refaster.TemplateMatch
 
createInliner() - Method in class com.google.errorprone.refaster.Unifier
 
createNoOpCollector() - Static method in interface com.google.errorprone.StatisticsCollector
Returns a statistics collector that will ignore any statistics added to it, always returning an empty result for StatisticsCollector.counters().
createPrivateConstructor(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns a no arg private constructor for the ClassTree.
createTemplate(Context, MethodTree) - Static method in class com.google.errorprone.refaster.UTemplater
Returns a template based on a method.
CUSTOM - Enum constant in enum com.google.errorprone.BugPattern.LinkType
Custom string.
customSuppressionAnnotations() - Method in class com.google.errorprone.BugCheckerInfo
 
customSuppressionAnnotations() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
customSuppressionAnnotations() - Method in interface com.google.errorprone.matchers.Suppressible
Returns the custom suppression annotations for this checker, if custom suppression is used.

D

@DoNotCall and deprecation - Search tag in annotation type com.google.errorprone.annotations.DoNotCall
Section
DAGGER_MAP_KEY_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
DAGGER_PROVIDES_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
DaggerAnnotations - Class in com.google.errorprone.bugpatterns.inject.dagger
A utility class for static analysis having to do with Dagger annotations.
DaggerRules - Class in com.google.errorprone.bugpatterns.checkreturnvalue
Rules for methods on Dagger Component.Builder and Subcomponent.Builder types.
DangerousLiteralNullChecker - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
DangerousLiteralNullChecker() - Constructor for class com.google.errorprone.bugpatterns.DangerousLiteralNullChecker
 
DataFlow - Class in com.google.errorprone.dataflow
Provides a wrapper around Analysis.
DataFlow.Result<A,S,T> - Interface in com.google.errorprone.dataflow
A pair of Analysis and ControlFlowGraph.
DATE - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
 
DateChecker - Class in com.google.errorprone.bugpatterns.time
Warns against suspect looking calls to Date APIs.
DateChecker() - Constructor for class com.google.errorprone.bugpatterns.time.DateChecker
 
DateFormatConstant - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
DateFormatConstant() - Constructor for class com.google.errorprone.bugpatterns.DateFormatConstant
 
DeadException - Class in com.google.errorprone.bugpatterns
 
DeadException() - Constructor for class com.google.errorprone.bugpatterns.DeadException
 
DeadThread - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
DeadThread() - Constructor for class com.google.errorprone.bugpatterns.DeadThread
 
debugPrint() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression
 
deducedValueWhenNotEqual() - Method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
Returns the Nullness that corresponds to what you can deduce by knowing that some expression is not equal to another expression with this Nullness.
DeduplicateConstants - Class in com.google.errorprone.bugpatterns
A checker that suggests deduplicating literals with existing constant variables.
DeduplicateConstants() - Constructor for class com.google.errorprone.bugpatterns.DeduplicateConstants
 
DeeplyNested - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
DEFAULT - Enum constant in enum com.google.errorprone.annotations.Modifier
 
DEFAULT - Enum constant in enum com.google.errorprone.ErrorProneOptions.Severity
 
DEFAULT - Enum constant in enum com.google.errorprone.matchers.MethodVisibility.Visibility
 
defaultAction(Tree, ControlFlowVisitor.BreakContext) - Method in class com.google.errorprone.refaster.ControlFlowVisitor
 
defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UAnyOf
 
defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UFreeIdent
 
defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UMethodIdent
 
defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UPlaceholderExpression
 
defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UStaticIdent
 
defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UTree
 
defaultAction(Tree, Void) - Method in class com.google.errorprone.refaster.UTemplater
 
DefaultCharset - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
defaultChecks() - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
Returns a ScannerSupplier with the BugCheckers that are in the ENABLED lists.
DefaultLocale - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
DefaultLocale() - Constructor for class com.google.errorprone.bugpatterns.DefaultLocale
 
DefaultPackage - Class in com.google.errorprone.bugpatterns
Java classes shouldn't use default package.
DefaultPackage() - Constructor for class com.google.errorprone.bugpatterns.DefaultPackage
 
defaultSeverity() - Method in class com.google.errorprone.BugCheckerInfo
 
defaultSeverity() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
DEFINED_IN - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.TokenType
 
DefinedIn() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
 
delegate() - Method in class com.google.errorprone.refaster.Bindings
 
delete(Tree) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
delete(Tree) - Static method in class com.google.errorprone.fixes.SuggestedFix
deleteExceptions(MethodTree, VisitorState, List<ExpressionTree>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Deletes the given exceptions from a method's throws clause.
DepAnn - Class in com.google.errorprone.bugpatterns
Matches the behaviour of the javac dep-ann Xlint warning.
DepAnn() - Constructor for class com.google.errorprone.bugpatterns.DepAnn
 
DeprecatedVariable - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
DeprecatedVariable() - Constructor for class com.google.errorprone.bugpatterns.DeprecatedVariable
 
DereferenceWithNullBranch - Class in com.google.errorprone.bugpatterns.nullness
A BugChecker; see the associated BugPattern annotation for details.
DereferenceWithNullBranch() - Constructor for class com.google.errorprone.bugpatterns.nullness.DereferenceWithNullBranch
 
DescendantOf - Class in com.google.errorprone.predicates.type
Matches sub-types of the given type.
DescendantOf(Supplier<Type>) - Constructor for class com.google.errorprone.predicates.type.DescendantOf
 
DescendantOfAny - Class in com.google.errorprone.predicates.type
Matches types that are a sub-type of one of the given types.
DescendantOfAny(Iterable<Supplier<Type>>) - Constructor for class com.google.errorprone.predicates.type.DescendantOfAny
 
descending() - Method in class com.google.errorprone.fixes.Replacements
Deprecated.
describe() - Method in class com.google.errorprone.DiagnosticTestHelper
 
describe(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PreconditionsInvalidPlaceholder
 
describe(Tree, ThreadSafety.Violation) - Method in interface com.google.errorprone.bugpatterns.threadsafety.ImmutableAnalysis.ViolationReporter
 
describeForAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfAssignment
We expect that the lhs is a field and the rhs is an identifier, specifically a parameter to the method.
describeForVarDecl(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfAssignment
 
describeMatch(Tree) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is no fix.
describeMatch(Tree, Fix) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is a fix.
describeMatch(JCTree) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is no fix.
describeMatch(JCTree, Fix) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is a fix.
describeMatch(JCDiagnostic.DiagnosticPosition) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is no fix.
describeMatch(JCDiagnostic.DiagnosticPosition, Fix) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is a fix.
describeReturnValueIgnored(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
Uses the default description for results ignored via a method reference.
describeReturnValueIgnored(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
 
describeReturnValueIgnored(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
Fixes the error by assigning the result of the call to the receiver reference, or deleting the method call.
describeReturnValueIgnored(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.RectIntersectReturnValueIgnored
 
describeReturnValueIgnored(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
 
describeReturnValueIgnored(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IgnoredPureGetter
 
describeReturnValueIgnored(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
Uses the default description for results ignored via a constructor call.
describeReturnValueIgnored(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
 
description() - Method in enum com.google.errorprone.util.Visibility
A fragment describing this visibility, to fit in a phrase like "restricted to [...]".
Description - Class in com.google.errorprone.matchers
Simple data object containing the information captured about an AST match.
Description.Builder - Class in com.google.errorprone.matchers
Builder for Descriptions.
DescriptionBasedDiff - Class in com.google.errorprone.apply
Implementation of a Diff that performs the modifications that are passed to its DescriptionBasedDiff.onDescribed(com.google.errorprone.matchers.Description) method, with no formatting.
DescriptionListener - Interface in com.google.errorprone
Strategies for reporting results.
DescriptionListener.Factory - Interface in com.google.errorprone
Factory for creating DescriptionListeners while compiling each file.
descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractToString
Adds the description message for match on the type without fixes.
descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.LiteProtoToString
 
descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.ObjectToString
 
descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.SymbolToString
 
descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.TreeToString
 
descriptionMessageForDefaultMatch(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeToString
 
descriptor() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff.ClassMemberKey
The JVMS 4.3 member descriptor.
descriptor(Type, VisitorState) - Static method in class com.google.errorprone.util.Signatures
Returns a JVMS 4.3.3 method descriptor.
DIAGNOSTIC_CONTAINING - Static variable in class com.google.errorprone.DiagnosticTestHelper
 
diagnosticOnLine(URI, long) - Static method in class com.google.errorprone.DiagnosticTestHelper
 
diagnosticOnLine(URI, long, Predicate<? super String>) - Static method in class com.google.errorprone.DiagnosticTestHelper
 
diagnostics() - Method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler.Result
 
DiagnosticTestHelper - Class in com.google.errorprone
Utility class for tests which need to assert on the diagnostics produced during compilation.
DiagnosticTestHelper() - Constructor for class com.google.errorprone.DiagnosticTestHelper
Construct a DiagnosticTestHelper not associated with a specific check.
DiagnosticTestHelper(String) - Constructor for class com.google.errorprone.DiagnosticTestHelper
Construct a DiagnosticTestHelper for a check with the given name.
Diff - Interface in com.google.errorprone.apply
All the differences to be applied to a source file to be applied in a refactoring.
DIFF_NOT_SET - Enum constant in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
 
DiffApplier - Class in com.google.errorprone.apply
Applier of diffs to Java source code
DiffApplier(int, FileSource, FileDestination) - Constructor for class com.google.errorprone.apply.DiffApplier
 
DifferentNameButSame - Class in com.google.errorprone.bugpatterns
Discourages using multiple names to refer to the same type within a file (e.g.
DifferentNameButSame() - Constructor for class com.google.errorprone.bugpatterns.DifferentNameButSame
 
DiffSupplier - Interface in com.google.errorprone.apply
Supplier of file differences.
DirectInvocationOnMock - Class in com.google.errorprone.bugpatterns
A bugpattern; see the description.
DirectInvocationOnMock() - Constructor for class com.google.errorprone.bugpatterns.DirectInvocationOnMock
 
disableable() - Method in class com.google.errorprone.BugCheckerInfo
 
disableable() - Element in annotation type com.google.errorprone.BugPattern
True if the check can be disabled using command-line flags.
disableable() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
disabled() - Method in class com.google.errorprone.scanner.ScannerSupplier
 
DISABLED_CHECKS - Static variable in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
A list of all checks that are off by default.
disableWarningsInGeneratedCode() - Method in class com.google.errorprone.ErrorProneOptions
 
DiscardedPostfixExpression - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
DiscardedPostfixExpression() - Constructor for class com.google.errorprone.bugpatterns.DiscardedPostfixExpression
 
DiscardingFileDestination - Class in com.google.errorprone.apply
File destination which simply throws away the generated file.
DiscardingFileDestination() - Constructor for class com.google.errorprone.apply.DiscardingFileDestination
 
DistinctVarargsChecker - Class in com.google.errorprone.bugpatterns
ErrorProne checker to generate warning when method expecting distinct varargs is invoked with same variable argument.
DistinctVarargsChecker() - Constructor for class com.google.errorprone.bugpatterns.DistinctVarargsChecker
 
DocGenProcessor - Class in com.google.errorprone
Annotation processor which visits all classes that have a BugPattern annotation, and writes a tab-delimited text file dumping the data found.
DocGenProcessor() - Constructor for class com.google.errorprone.DocGenProcessor
 
DocGenTool - Class in com.google.errorprone
Utility main which consumes the same tab-delimited text file and generates GitHub pages for the BugPatterns.
DocGenTool.TargetEnumConverter - Class in com.google.errorprone
 
documentSuppression - Variable in class com.google.errorprone.BugPatternInstance
 
documentSuppression() - Element in annotation type com.google.errorprone.BugPattern
Generate an explanation of how to suppress the check.
doesNotHaveArgument(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches an Annotation AST node if an argument to the annotation does not exist.
doesNotHaveRuntimeRetention(Element) - Static method in class com.google.errorprone.bugpatterns.inject.ElementPredicates
 
DoNotCall - Annotation Type in com.google.errorprone.annotations
Indicates that the annotated method should not be called under any normal circumstances, yet is either impossible to remove, or should not ever be removed.
DoNotCallChecker - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
DoNotCallChecker() - Constructor for class com.google.errorprone.bugpatterns.DoNotCallChecker
 
DoNotCallSuggester - Class in com.google.errorprone.bugpatterns
If a method always throws an exception, consider annotating it with @DoNotCall to prevent calls at compile-time instead failing at runtime.
DoNotCallSuggester() - Constructor for class com.google.errorprone.bugpatterns.DoNotCallSuggester
 
DoNotClaimAnnotations - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
DoNotClaimAnnotations() - Constructor for class com.google.errorprone.bugpatterns.DoNotClaimAnnotations
 
DoNotMock - Annotation Type in com.google.errorprone.annotations
Annotation representing a type that should not be mocked.
DoNotMockAutoValue - Class in com.google.errorprone.bugpatterns
Suggests not mocking AutoValue classes.
DoNotMockAutoValue() - Constructor for class com.google.errorprone.bugpatterns.DoNotMockAutoValue
 
DoNotMockChecker - Class in com.google.errorprone.bugpatterns
Points out if a Mockito or EasyMock mock is mocking an object that would be better off being tested using an alternative instance.
DoNotMockChecker() - Constructor for class com.google.errorprone.bugpatterns.DoNotMockChecker
 
doStart() - Method in class com.google.errorprone.apply.DiffApplier
 
doStop() - Method in class com.google.errorprone.apply.DiffApplier
 
doTest() - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
 
doTest() - Method in class com.google.errorprone.CompilationTestHelper
Performs a compilation and checks that the diagnostics and result match the expectations.
doTest(BugCheckerRefactoringTestHelper.TestMode) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
 
DOUBLE_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
DoubleBraceInitialization - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
DoubleBraceInitialization() - Constructor for class com.google.errorprone.bugpatterns.DoubleBraceInitialization
 
DoubleCheckedLocking - Class in com.google.errorprone.bugpatterns.threadsafety
A BugChecker; see the associated BugPattern annotation for details.
DoubleCheckedLocking() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.DoubleCheckedLocking
 
doubleLit(double) - Static method in class com.google.errorprone.refaster.ULiteral
 
DuplicateBranches - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
DuplicateBranches() - Constructor for class com.google.errorprone.bugpatterns.DuplicateBranches
 
DuplicateDateFormatField - Class in com.google.errorprone.bugpatterns
Flag DateFormats which use the same field more than once.
DuplicateDateFormatField() - Constructor for class com.google.errorprone.bugpatterns.DuplicateDateFormatField
 
DuplicateMapKeys - Class in com.google.errorprone.bugpatterns
Flags duplicate keys used in ImmutableMap construction.
DuplicateMapKeys() - Constructor for class com.google.errorprone.bugpatterns.DuplicateMapKeys
 
DurationFrom - Class in com.google.errorprone.bugpatterns.time
Bans calls to Duration.from(temporalAmount) where temporalAmount is a Period.
DurationFrom() - Constructor for class com.google.errorprone.bugpatterns.time.DurationFrom
 
DurationGetTemporalUnit - Class in com.google.errorprone.bugpatterns.time
Bans calls to Duration.get(temporalUnit) where temporalUnit is not SECONDS or NANOS.
DurationGetTemporalUnit() - Constructor for class com.google.errorprone.bugpatterns.time.DurationGetTemporalUnit
 
DurationTemporalUnit - Class in com.google.errorprone.bugpatterns.time
Bans calls to Duration APIs where the TemporalUnit is not ChronoUnit.DAYS or it has an estimated duration (which is guaranteed to throw an DateTimeException).
DurationTemporalUnit() - Constructor for class com.google.errorprone.bugpatterns.time.DurationTemporalUnit
 
DurationToLongTimeUnit - Class in com.google.errorprone.bugpatterns.time
Reports an error when a Duration or Instant is incorrectly decomposed in order to call an API which accepts a <long, TimeUnit> pair.
DurationToLongTimeUnit() - Constructor for class com.google.errorprone.bugpatterns.time.DurationToLongTimeUnit
 

E

element() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.Evaluation
The specific element in the scope for which the evaluation was made.
ElementPredicates - Class in com.google.errorprone.bugpatterns.inject
Predicates for Element objects related to dependency injection.
emitComment(String) - Static method in class com.google.errorprone.refaster.Refaster
This is a special method to emit a one-line comment.
emitCommentBefore(String, T) - Static method in class com.google.errorprone.refaster.Refaster
This is a special method to emit a comment before an expression.
empty() - Static method in class com.google.errorprone.dataflow.AccessPathStore
 
empty() - Static method in class com.google.errorprone.ErrorProneFlags
 
empty() - Static method in class com.google.errorprone.ErrorProneOptions
 
EMPTY - Static variable in class com.google.errorprone.SuppressionInfo
 
EmptyBlockTag - Class in com.google.errorprone.bugpatterns.javadoc
Matches block tags (@param, @return, @throws, @deprecated) with an empty description.
EmptyBlockTag() - Constructor for class com.google.errorprone.bugpatterns.javadoc.EmptyBlockTag
 
EmptyCatch - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
EmptyCatch() - Constructor for class com.google.errorprone.bugpatterns.EmptyCatch
 
emptyFix() - Static method in class com.google.errorprone.fixes.SuggestedFix
Creates an empty SuggestedFix.
EmptyIfStatement - Class in com.google.errorprone.bugpatterns
This checker finds and fixes empty statements after an if, with no else part.
EmptyIfStatement() - Constructor for class com.google.errorprone.bugpatterns.EmptyIfStatement
 
EmptySetMultibindingContributions - Class in com.google.errorprone.bugpatterns.inject.dagger
 
EmptySetMultibindingContributions() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.EmptySetMultibindingContributions
 
EmptyTopLevelDeclaration - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
EmptyTopLevelDeclaration() - Constructor for class com.google.errorprone.bugpatterns.EmptyTopLevelDeclaration
 
enabled() - Method in class com.google.errorprone.scanner.ScannerSupplier
 
ENABLED_ERRORS - Static variable in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
A list of all checks with severity ERROR that are on by default.
ENABLED_WARNINGS - Static variable in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
A list of all checks with severity WARNING that are on by default.
Enclosing - Class in com.google.errorprone.matchers
Adapt matchers to match against a parent node of a given type.
ENCLOSING_CLASS - Static variable in class com.google.errorprone.suppliers.Suppliers
 
ENCLOSING_ELEMENTS - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.RuleScope
Classes and package that enclose a method for which a ResultUsePolicy is being chosen.
Enclosing.Block<T> - Class in com.google.errorprone.matchers
 
Enclosing.BlockOrCase<T> - Class in com.google.errorprone.matchers
 
Enclosing.Class<T> - Class in com.google.errorprone.matchers
 
Enclosing.Method<T> - Class in com.google.errorprone.matchers
 
enclosingBlock(Matcher<BlockTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node which is enclosed by a block node that matches the given matcher.
enclosingClass() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
enclosingClass(Matcher<ClassTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node which is enclosed by a class node that matches the given matcher.
enclosingClass(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Return the enclosing ClassSymbol of the given symbol, or null.
enclosingElements(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns a stream of the owner hierarchy starting from sym, as described by Symbol.owner.
enclosingMethod(Matcher<MethodTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node which is enclosed by a method node that matches the given matcher.
enclosingNode(Matcher<Tree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node that is enclosed by some node that matches the given matcher.
enclosingPackage(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Return the enclosing PackageSymbol of the given symbol, or null.
endPos() - Method in class com.google.errorprone.util.ErrorProneToken
 
endPosition() - Method in class com.google.errorprone.fixes.Replacement
The end of the replacement range, exclusive.
endPositionAdjustment - Variable in class com.google.errorprone.fixes.AdjustedPosition
 
enhancedForLoop(Matcher<VariableTree>, Matcher<ExpressionTree>, Matcher<StatementTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an enhanced for loop if all the given matchers match.
enter() - Method in class com.google.errorprone.refaster.Inliner
 
EnumOrdinal - Class in com.google.errorprone.bugpatterns
Discourages the use of Enum.ordinal() and other ways to access enum values by index.
EnumOrdinal() - Constructor for class com.google.errorprone.bugpatterns.EnumOrdinal
 
enumValueOf(String) - Static method in class com.google.errorprone.refaster.Refaster
This is a placeholder for the expression E.valueOf(string).
enumValues(Symbol.TypeSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
 
EQUALITY - Enum constant in enum com.google.errorprone.util.OperatorPrecedence
 
equals(Object) - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantEquals
 
equals(Object) - Method in class com.google.errorprone.refaster.Bindings.Key
 
equals(Object) - Method in class com.google.errorprone.refaster.UTypeVar
 
equals(Object) - Method in class com.google.errorprone.BugCheckerInfo
 
equals(Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
 
equals(Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
 
equals(Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
 
equals(Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
 
equals(Object) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
 
equals(Object) - Method in class com.google.errorprone.bugpatterns.BugChecker
 
EqualsBrokenForNull - Class in com.google.errorprone.bugpatterns.nullness
BugChecker adds a null check to equals() method implementations which don't satisfy the null contract of Object.equals(java.lang.Object) i.e.
EqualsBrokenForNull() - Constructor for class com.google.errorprone.bugpatterns.nullness.EqualsBrokenForNull
 
EqualsGetClass - Class in com.google.errorprone.bugpatterns
Discourages the use of Object.getClass() when implementing Object.equals(Object) for non-final classes.
EqualsGetClass() - Constructor for class com.google.errorprone.bugpatterns.EqualsGetClass
 
EqualsHashCode - Class in com.google.errorprone.bugpatterns
Classes that override Object.equals(java.lang.Object) should also override Object.hashCode().
EqualsHashCode() - Constructor for class com.google.errorprone.bugpatterns.EqualsHashCode
 
EqualsIncompatibleType - Class in com.google.errorprone.bugpatterns
 
equalsMethodDeclaration() - Static method in class com.google.errorprone.matchers.Matchers
Matches Object.equals(java.lang.Object) method declaration.
EqualsMissingNullable - Class in com.google.errorprone.bugpatterns.nullness
A BugChecker; see the associated BugPattern annotation for details.
EqualsNaN - Class in com.google.errorprone.bugpatterns
 
EqualsNaN() - Constructor for class com.google.errorprone.bugpatterns.EqualsNaN
 
EqualsNull - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
EqualsNull() - Constructor for class com.google.errorprone.bugpatterns.EqualsNull
 
EqualsReference - Class in com.google.errorprone.bugpatterns
 
EqualsReference() - Constructor for class com.google.errorprone.bugpatterns.EqualsReference
 
EqualsUnsafeCast - Class in com.google.errorprone.bugpatterns
Checks for equals implementations making unsafe casts.
EqualsUnsafeCast() - Constructor for class com.google.errorprone.bugpatterns.EqualsUnsafeCast
 
EqualsUsingHashCode - Class in com.google.errorprone.bugpatterns
Discourages implementing equals using hashCode.
EqualsUsingHashCode() - Constructor for class com.google.errorprone.bugpatterns.EqualsUsingHashCode
 
EqualsWrongThing - Class in com.google.errorprone.bugpatterns
Checks for equals implementations comparing non-corresponding fields.
EqualsWrongThing() - Constructor for class com.google.errorprone.bugpatterns.EqualsWrongThing
 
ErroneousBitwiseExpression - Class in com.google.errorprone.bugpatterns
A BugPattern; see the summary.
ErroneousBitwiseExpression() - Constructor for class com.google.errorprone.bugpatterns.ErroneousBitwiseExpression
 
ErroneousThreadPoolConstructorChecker - Class in com.google.errorprone.bugpatterns
ErrorProne checker to generate warning whenever ThreadPoolExecutor is constructed with different corePoolSize and maximumPoolSize using an unbounded workQueue
ErroneousThreadPoolConstructorChecker() - Constructor for class com.google.errorprone.bugpatterns.ErroneousThreadPoolConstructorChecker
 
ERROR - Enum constant in enum com.google.errorprone.BugPattern.SeverityLevel
 
ERROR - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Kind
 
ERROR - Enum constant in enum com.google.errorprone.ErrorProneOptions.Severity
 
errorChecks() - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
Returns a ScannerSupplier with the BugCheckers that are in the ENABLED_ERRORS list.
ErrorMessages - Class in com.google.errorprone.bugpatterns.checkreturnvalue
Error messages used by CheckReturnValue.
ErrorProneAnalyzer - Class in com.google.errorprone
A TaskListener that runs Error Prone over attributed compilation units.
ErrorProneAnalyzer.RefactoringTask - Class in com.google.errorprone
A TaskListener that performs refactorings.
ErrorProneComment - Class in com.google.errorprone.util
Wraps a Tokens.Comment to allow an offset source position to be reported.
ErrorProneComment.ErrorProneCommentStyle - Enum in com.google.errorprone.util
A compatibility wrapper for Tokens.Comment.CommentStyle.
ErrorProneError - Exception Class in com.google.errorprone
Wraps an unrecoverable error that occurs during analysis with the source position that triggered the crash.
ErrorProneError(String, Throwable, JCDiagnostic.DiagnosticPosition, JavaFileObject) - Constructor for exception class com.google.errorprone.ErrorProneError
 
ErrorProneFlags - Class in com.google.errorprone
Represents an immutable map of Error Prone flags to their set values.
ErrorProneFlags.Builder - Class in com.google.errorprone
Builder for Error Prone command-line flags object.
ErrorProneInjector - Class in com.google.errorprone.scanner
An injector for ErrorProne.
ErrorProneInjector() - Constructor for class com.google.errorprone.scanner.ErrorProneInjector
 
ErrorProneInjector.ProvisionException - Exception Class in com.google.errorprone.scanner
Indicates that there was a runtime failure while providing an instance.
ErrorProneJavaCompiler - Class in com.google.errorprone
An Error Prone compiler that implements JavaCompiler.
ErrorProneJavaCompiler() - Constructor for class com.google.errorprone.ErrorProneJavaCompiler
 
ErrorProneJavaCompiler(ScannerSupplier) - Constructor for class com.google.errorprone.ErrorProneJavaCompiler
 
ErrorProneJavacPlugin - Class in com.google.errorprone
A javac Plugin that runs Error Prone.
ErrorProneJavacPlugin() - Constructor for class com.google.errorprone.ErrorProneJavacPlugin
 
errorProneOptions() - Method in class com.google.errorprone.VisitorState
 
ErrorProneOptions - Class in com.google.errorprone
Processes command-line options specific to error-prone.
ErrorProneOptions.Severity - Enum in com.google.errorprone
Severity levels for an error-prone check that define how the check results should be presented.
ErrorPronePlugins - Class in com.google.errorprone
Loads custom Error Prone checks from the annotation processor classpath.
ErrorProneScanner - Class in com.google.errorprone.scanner
Scans the parsed AST, looking for violations of any of the enabled checks.
ErrorProneScanner(BugChecker...) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
Create an error-prone scanner for the given checkers.
ErrorProneScanner(Iterable<BugChecker>) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
Create an error-prone scanner for a non-hardcoded set of checkers.
ErrorProneScanner(Iterable<BugChecker>, Map<String, BugPattern.SeverityLevel>) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
Create an error-prone scanner for a non-hardcoded set of checkers.
ErrorProneScannerTransformer - Class in com.google.errorprone.scanner
Adapter from an ErrorProneScanner to a CodeTransformer.
ErrorProneScannerTransformer() - Constructor for class com.google.errorprone.scanner.ErrorProneScannerTransformer
 
ErrorProneScope - Class in com.google.errorprone.util
A compatibility wrapper around com.sun.tools.javac.util.Filter
ErrorProneTimings - Class in com.google.errorprone
A collection of timing data for the runtime of individual checks.
ErrorProneToken - Class in com.google.errorprone.util
Wraps a javac Tokens.Token to return comments in declaration order.
ErrorProneTokens - Class in com.google.errorprone.util
A utility for tokenizing and preserving comments.
ErrorProneTokens(String, int, Context) - Constructor for class com.google.errorprone.util.ErrorProneTokens
 
ErrorProneTokens(String, Context) - Constructor for class com.google.errorprone.util.ErrorProneTokens
 
ErrorProneVersion - Class in com.google.errorprone
The Error Prone version.
EscapedEntity - Class in com.google.errorprone.bugpatterns.javadoc
Finds unescaped entities in Javadocs.
EscapedEntity() - Constructor for class com.google.errorprone.bugpatterns.javadoc.EscapedEntity
 
evaluate(ResultUseRule.RuleScope, S, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
Evaluates the given symbol and optionally returns an ResultUseRule.Evaluation of it.
evaluate(Symbol, VisitorState) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.PackagesRule
 
evaluate(M, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator
Evaluates the given method and returns a single ResultUsePolicy that should apply to it.
evaluate(S, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
Evaluates the given symbol and optionally returns a ResultUsePolicy for it.
evaluate(S, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.MethodRule
 
evaluateMethod(Symbol.MethodSymbol, VisitorState) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ExternalCanIgnoreReturnValue
 
evaluateMethod(M, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.MethodRule
Evaluates the given method and optionally returns a ResultUsePolicy for it.
Evaluation() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.Evaluation
 
evaluations(M, C) - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator
Returns a stream of ResultUseRule.Evaluations made by rules starting from the given method.
EVERYTHING_DIFF - Enum constant in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
 
EVERYTHING_DIFF_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
 
Exact - Class in com.google.errorprone.predicates.type
Matches types that exactly match the given type.
Exact(Supplier<Type>) - Constructor for class com.google.errorprone.predicates.type.Exact
 
ExactAny - Class in com.google.errorprone.predicates.type
Matches types that exactly match one of the given types.
ExactAny(Iterable<Supplier<Type>>) - Constructor for class com.google.errorprone.predicates.type.ExactAny
 
EXCEPTION_TESTING - Enum constant in enum com.google.errorprone.matchers.UnusedReturnValueMatcher.AllowReason
The context is one in which the method is probably being called to test for an exception it throws.
EXCEPTION_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
exemptChange(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker
 
EXISTING_FIRST - Enum constant in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
Accept overlapping insertions, with the existing insertion before the new one.
expected - Variable in class com.google.errorprone.predicates.type.DescendantOf
 
EXPECTED - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicy
Use of the result is expected except in certain contexts where the method is being used in a way such that not using the result is likely correct.
ExpectedExceptionChecker - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
ExpectedExceptionChecker() - Constructor for class com.google.errorprone.bugpatterns.ExpectedExceptionChecker
 
expectedExceptionTest(VisitorState) - Static method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
Allow return values to be ignored in tests that expect an exception to be thrown.
expectedTypes(Inliner) - Method in class com.google.errorprone.refaster.Template
Returns a list of the expected types to be matched.
expectErrorMessage(String, Predicate<? super String>) - Method in class com.google.errorprone.CompilationTestHelper
Expects an error message matching matcher at the line below a comment matching the key.
expectErrorMessage(String, Predicate<? super String>) - Method in class com.google.errorprone.DiagnosticTestHelper
Expects an error message matching matcher at the line below a comment matching the key.
expectNoDiagnostics() - Method in class com.google.errorprone.CompilationTestHelper
Tells the compilation helper to expect that no diagnostics will be generated, even if the source file contains bug markers.
expectResult(Main.Result) - Method in class com.google.errorprone.CompilationTestHelper
Tells the compilation helper to expect a specific result from the compilation, e.g.
expectUnchanged() - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper.ExpectOutput
 
explanation - Variable in class com.google.errorprone.BugPatternInstance
 
explanation() - Element in annotation type com.google.errorprone.annotations.RestrictedApi
Explanation why the API is restricted, to be inserted into the compiler output.
explanation() - Element in annotation type com.google.errorprone.BugPattern
A longer explanation of the problem that this checker detects.
expressionArgumentTypes() - Method in class com.google.errorprone.refaster.Template
 
expressionDataflow(TreePath, Context, T) - Static method in class com.google.errorprone.dataflow.DataFlow
Runs the transfer dataflow analysis to compute the abstract value of the expression which is the leaf of exprPath.
expressionStatement(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an ExpressionStatementTree based on its ExpressionTree.
ExpressionTemplate - Class in com.google.errorprone.refaster
Implementation of a template to match and replace an expression anywhere in an AST.
ExpressionTemplate() - Constructor for class com.google.errorprone.refaster.ExpressionTemplate
 
ExtendingJUnitAssert - Class in com.google.errorprone.bugpatterns
 
ExtendingJUnitAssert() - Constructor for class com.google.errorprone.bugpatterns.ExtendingJUnitAssert
 
ExtendsAutoValue - Class in com.google.errorprone.bugpatterns
Makes sure that you are not extending a class that has @AutoValue as an annotation.
ExtendsObject - Class in com.google.errorprone.bugpatterns.nullness
A bugpattern: see the summary.
ExtendsObject() - Constructor for class com.google.errorprone.bugpatterns.nullness.ExtendsObject
 
ExternalCanIgnoreReturnValue - Class in com.google.errorprone.bugpatterns.checkreturnvalue
External source of information about @CanIgnoreReturnValue-equivalent API's.
externalIgnoreList() - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ExternalCanIgnoreReturnValue
Returns a rule using an external list of APIs to ignore.
extract(T, VisitorState) - Method in interface com.google.errorprone.bugpatterns.AbstractMockChecker.TypeExtractor
Investigate the provided Tree, and return type information about it if it matches.
extractClassArg(Matcher<MethodInvocationTree>) - Static method in class com.google.errorprone.bugpatterns.AbstractMockChecker
Produces an extractor which, if the tree matches, extracts the type of the first argument whose type is Class (preserving its <T> type parameter, if it has one}.
extractFirstArg(Matcher<MethodInvocationTree>) - Static method in class com.google.errorprone.bugpatterns.AbstractMockChecker
Produces an extractor which, if the tree matches, extracts the type of the first argument to the method invocation.
extractRules(ClassTree, Context) - Static method in class com.google.errorprone.refaster.RefasterRuleBuilderScanner
 
extractType(Matcher<T>) - Static method in class com.google.errorprone.bugpatterns.AbstractMockChecker
Produces an extractor which, if the tree matches, extracts the type of that tree, as given by ASTHelpers.getType(Tree).
extractTypeArgAsMemberOfSupertype(Type, Symbol, int, Types) - Static method in class com.google.errorprone.bugpatterns.collectionincompatibletype.AbstractCollectionIncompatibleTypeMatcher
Extracts the appropriate type argument from a specific supertype of the given type.
extraReason() - Method in class com.google.errorprone.bugpatterns.TypeCompatibility.TypeCompatibilityReport
 

F

Factory() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Factory
 
FallThrough - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
FallThrough() - Constructor for class com.google.errorprone.bugpatterns.FallThrough
 
fieldAnnotatedWithOneOf(Stream<String>) - Static method in class com.google.errorprone.bugpatterns.AbstractMockChecker
Creates a TypeExtractor that extracts the type of a class field if that field is annotated with any one of the given annotations.
FieldCanBeFinal - Class in com.google.errorprone.bugpatterns
 
FieldCanBeFinal() - Constructor for class com.google.errorprone.bugpatterns.FieldCanBeFinal
 
FieldCanBeLocal - Class in com.google.errorprone.bugpatterns
Flags fields which can be replaced with local variables.
FieldCanBeLocal() - Constructor for class com.google.errorprone.bugpatterns.FieldCanBeLocal
 
FieldCanBeStatic - Class in com.google.errorprone.bugpatterns
Finds fields which can be safely made static.
fieldFix(Tree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.SelfEquals
 
FieldMatchers - Class in com.google.errorprone.matchers
Static utility methods for creating Matchers for detecting references to fields.
FieldMissingNullable - Class in com.google.errorprone.bugpatterns.nullness
A BugChecker; see the associated BugPattern annotation for details.
FileDestination - Interface in com.google.errorprone.apply
 
FileManagers - Class in com.google.errorprone
Manages JavacFileManagers for use in Error Prone's test.
FileObjects - Class in com.google.errorprone
Factories for in-memory JavaFileObjects, for testing.
FileSource - Interface in com.google.errorprone.apply
 
filter(Predicate<? super BugCheckerInfo>) - Method in class com.google.errorprone.scanner.ScannerSupplier
Filters this ScannerSupplier based on the provided predicate.
FINAL - Enum constant in enum com.google.errorprone.annotations.Modifier
 
Finalize - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
Finalize() - Constructor for class com.google.errorprone.bugpatterns.Finalize
 
Finally - Class in com.google.errorprone.bugpatterns
Matches the behaviour of javac's finally Xlint warning.
Finally() - Constructor for class com.google.errorprone.bugpatterns.Finally
 
findAllFields(Type, VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds all the visible fields declared or inherited in the target class
findAllIdents(VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds the set of all bare variable identifiers in scope at the current location.
findClass(Symbol.ClassSymbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the class tree that matches the given symbol within the compilation unit, or null if none was found.
findClass(String) - Method in class com.google.errorprone.MaskedClassLoader
 
findCommentsForArguments(MethodInvocationTree, VisitorState) - Static method in class com.google.errorprone.util.Comments
Attach comments to nodes on arguments of method calls.
findCommentsForArguments(NewClassTree, VisitorState) - Static method in class com.google.errorprone.util.Comments
Attach comments to nodes on arguments of constructor calls.
findConstructor(Class<T>) - Static method in class com.google.errorprone.scanner.ErrorProneInjector
 
findEnclosing(Class<? extends T>...) - Method in class com.google.errorprone.VisitorState
Find the first enclosing tree node of one of the given types.
findEnclosingMethod(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Finds the enclosing MethodTree.
findEnclosingNode(TreePath, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Given a TreePath, walks up the tree until it finds a node of the given type.
findIdent(String, VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds a variable declaration with the given name that is in scope at the current location.
findIdent(String, VisitorState, Kinds.KindSelector) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds a declaration with the given name and type that is in scope at the current location.
FindIdentifiers - Class in com.google.errorprone.util
A helper class to find all identifiers in scope at a given program point.
FINDING_TAG - Static variable in class com.google.errorprone.bugpatterns.inlineme.Inliner
 
findMatchingMethods(Name, Predicate<Symbol.MethodSymbol>, Type, Types) - Static method in class com.google.errorprone.util.ASTHelpers
Finds all methods in any superclass of startClass with a certain name that match the given predicate.
findMethod(Symbol.MethodSymbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the method tree that matches the given symbol within the compilation unit, or null if none was found.
findPathFromEnclosingNodeToTopLevel(TreePath, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Given a TreePath, finds the first enclosing node of the given type and returns the path from the enclosing node to the top-level CompilationUnitTree.
findPathToEnclosing(Class<? extends Tree>...) - Method in class com.google.errorprone.VisitorState
Returns the TreePath to the nearest tree node of one of the given types.
findReferencedIdentifiers(Tree) - Static method in class com.google.errorprone.util.FindIdentifiers
Find the set of all identifiers referenced within this Tree
findSuperMethod(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.util.ASTHelpers
Finds (if it exists) first (in the class hierarchy) non-interface super method of given method.
findSuperMethodInType(Symbol.MethodSymbol, Type, Types) - Static method in class com.google.errorprone.util.ASTHelpers
 
findSuperMethods(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.util.ASTHelpers
Finds supermethods of methodSymbol, not including methodSymbol itself, and including interfaces.
findUnusedIdentifiers(VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds all variable declarations which are unused at this point in the AST (i.e.
finished(TaskEvent) - Method in class com.google.errorprone.ErrorProneAnalyzer
 
finished(TaskEvent) - Method in class com.google.errorprone.ErrorProneAnalyzer.RefactoringTask
 
finished(TaskEvent) - Method in class com.google.errorprone.refaster.RefasterRuleCompilerAnalyzer
 
first() - Method in class com.google.errorprone.refaster.Choice
Returns the first valid option from this Choice.
FIRST - Enum constant in enum com.google.errorprone.BugCheckerRefactoringTestHelper.FixChoosers
 
FIRST - Enum constant in enum com.google.errorprone.fixes.SuggestedFixes.AdditionPosition
 
firstNonNullMatchResult(ExpressionTree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.collectionincompatibletype.ContainmentMatchers
 
fix(ExpressionTree, VisitorState, AbstractMustBeClosedChecker.NameSuggester) - Method in class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker
 
fix(ExpressionTree, VisitorState, AbstractMustBeClosedChecker.NameSuggester) - Method in class com.google.errorprone.bugpatterns.StreamResourceLeak
 
Fix - Interface in com.google.errorprone.fixes
Represents a source code transformation, usually used to fix a bug detected by error-prone.
FixedPosition - Class in com.google.errorprone.fixes
A JCDiagnostic.DiagnosticPosition with a fixed position.
FixedPosition(Tree, int) - Constructor for class com.google.errorprone.fixes.FixedPosition
 
fixes - Variable in class com.google.errorprone.matchers.Description
A list of fixes to suggest in an error message or use in automated refactoring.
fixesByReplacingExpressionWithLocallyDeclaredField(ExpressionTree, Predicate<JCTree.JCVariableDecl>, VisitorState) - Static method in class com.google.errorprone.bugpatterns.ReplacementVariableFinder
Suggest replacing input with a qualified reference to a locally declared field with a similar or the same name as the input expression.
fixesByReplacingExpressionWithMethodParameter(ExpressionTree, Predicate<JCTree.JCVariableDecl>, VisitorState) - Static method in class com.google.errorprone.bugpatterns.ReplacementVariableFinder
Suggest replacing input with a reference to a method parameter in the nearest enclosing method declaration with a similar or the same name as the input expression.
FloatCast - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
FloatCast() - Constructor for class com.google.errorprone.bugpatterns.FloatCast
 
FloatingPointAssertionWithinEpsilon - Class in com.google.errorprone.bugpatterns
Detects usages of Float,DoubleSubject.isWithin(TOLERANCE).of(EXPECTED) where there are no other floating point values other than EXPECTED with satisfy the assertion, but TOLERANCE is not zero.
FloatingPointAssertionWithinEpsilon() - Constructor for class com.google.errorprone.bugpatterns.FloatingPointAssertionWithinEpsilon
 
FloatingPointLiteralPrecision - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
FloatingPointLiteralPrecision() - Constructor for class com.google.errorprone.bugpatterns.FloatingPointLiteralPrecision
 
floatLit(float) - Static method in class com.google.errorprone.refaster.ULiteral
 
FloggerArgumentToString - Class in com.google.errorprone.bugpatterns.flogger
A BugChecker; see the associated BugPattern annotation for details.
FloggerArgumentToString() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerArgumentToString
 
FloggerFormatString - Class in com.google.errorprone.bugpatterns.flogger
 
FloggerFormatString() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerFormatString
 
FloggerLogString - Class in com.google.errorprone.bugpatterns.flogger
Detects invocations of LoggingApi.log(String) for which the argument is not a compile-time constant and provides suggested alternatives.
FloggerLogString() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerLogString
 
FloggerLogVarargs - Class in com.google.errorprone.bugpatterns.flogger
 
FloggerLogVarargs() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerLogVarargs
 
FloggerLogWithCause - Class in com.google.errorprone.bugpatterns.flogger
Flags cases where there is an exception available that could be set as the cause in a log message.
FloggerLogWithCause() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerLogWithCause
 
FloggerMessageFormat - Class in com.google.errorprone.bugpatterns.flogger
 
FloggerMessageFormat() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerMessageFormat
 
FloggerRedundantIsEnabled - Class in com.google.errorprone.bugpatterns.flogger
 
FloggerRedundantIsEnabled() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerRedundantIsEnabled
 
FloggerRequiredModifiers - Class in com.google.errorprone.bugpatterns.flogger
Ensures that class-level FluentLogger objects are private static final.
FloggerSplitLogStatement - Class in com.google.errorprone.bugpatterns.flogger
Bugpattern to prevent splitting flogger log invocations into multiple statements.
FloggerSplitLogStatement() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerSplitLogStatement
 
FloggerStringConcatenation - Class in com.google.errorprone.bugpatterns.flogger
A BugChecker; see the associated BugPattern annotation for details.
FloggerStringConcatenation() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerStringConcatenation
 
FloggerWithCause - Class in com.google.errorprone.bugpatterns.flogger
Flogger's withCause(Throwable) method checks
FloggerWithCause() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerWithCause
 
FloggerWithoutCause - Class in com.google.errorprone.bugpatterns.flogger
Detects Flogger log statements that pass Exceptions to the log method instead of using withCause.
FloggerWithoutCause() - Constructor for class com.google.errorprone.bugpatterns.flogger.FloggerWithoutCause
 
flush() - Method in class com.google.errorprone.apply.DiscardingFileDestination
 
flush() - Method in interface com.google.errorprone.apply.FileDestination
 
flush() - Method in class com.google.errorprone.apply.FsFileDestination
 
flush() - Method in class com.google.errorprone.apply.PatchFileDestination
 
FOR_IMMUTABLE_CHECKER - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Purpose
This is being used by the immutability bug checker
FOR_THREAD_SAFE_CHECKER - Enum constant in enum com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Purpose
This is being used by the thread-safety bug checker
forbidder() - Method in class com.google.errorprone.bugpatterns.AbstractMockChecker
Produce a MockForbidder to use when looking for disallowed mocks, in addition to the built-in checks for Annotations of type T.
forbidReason(Type, VisitorState) - Method in interface com.google.errorprone.bugpatterns.AbstractMockChecker.MockForbidder
If the given type should not be mocked, provide an explanation why.
forCheck(BugChecker) - Static method in class com.google.errorprone.bugpatterns.StronglyType
 
forClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
Deprecated.
Match on types that satisfy the given predicate.
forClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
Deprecated.
Match on the given type exactly.
forClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
Deprecated.
Match on the given type exactly.
forCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.SuppressionInfo
Generates the SuppressionInfo for a CompilationUnitTree.
ForEachIterable - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
ForEachIterable() - Constructor for class com.google.errorprone.bugpatterns.ForEachIterable
 
fork() - Method in class com.google.errorprone.refaster.Unifier
Returns a Unifier containing all the bindings from this Unifier, but which can succeed or fail independently of this Unifier.
FormatMethod - Annotation Type in com.google.errorprone.annotations
Annotation for a method that takes a printf-style format string as an argument followed by arguments for that format string.
formatMethodArguments(MethodInvocationTree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.formatstring.FormatStringUtils
 
FormatString - Class in com.google.errorprone.bugpatterns.formatstring
A BugChecker; see the associated BugPattern annotation for details.
FormatString - Annotation Type in com.google.errorprone.annotations
Annotation for method parameter declarations which denotes that actual parameters will be used as a format string in printf-style formatting.
FormatString() - Constructor for class com.google.errorprone.bugpatterns.formatstring.FormatString
 
FormatStringAnnotationChecker - Class in com.google.errorprone.bugpatterns.formatstring
BugChecker to assert validity of methods calls with FormatString annotations.
FormatStringAnnotationChecker() - Constructor for class com.google.errorprone.bugpatterns.formatstring.FormatStringAnnotationChecker
 
FormatStringUtils - Class in com.google.errorprone.bugpatterns.formatstring
Format string utilities.
FormatStringValidation - Class in com.google.errorprone.bugpatterns.formatstring
Utilities for validating format strings.
FormatStringValidation.ValidationResult - Class in com.google.errorprone.bugpatterns.formatstring
Description of an incorrect format method call.
forNumber(int) - Static method in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
 
ForOverride - Annotation Type in com.google.errorprone.annotations
Indicates that the annotated method is provided only to be overridden: it should not be invoked from outside its declaring source file (as if it is private), and overriding methods should not be directly invoked at all.
ForOverrideChecker - Class in com.google.errorprone.bugpatterns
Verifies that methods marked ForOverride are only called from the defining class.
ForOverrideChecker() - Constructor for class com.google.errorprone.bugpatterns.ForOverrideChecker
 
forResource(Class<?>, String) - Static method in class com.google.errorprone.FileObjects
Loads a resource of the provided class into a JavaFileObject.
forResources(Class<?>, String...) - Static method in class com.google.errorprone.FileObjects
Loads resources of the provided class into JavaFileObjects.
forSourceLines(String, String...) - Static method in class com.google.errorprone.FileObjects
Creates a JavaFileObject with the given name and content.
FOURTH - Enum constant in enum com.google.errorprone.BugCheckerRefactoringTestHelper.FixChoosers
 
FRAGILE_CODE - Static variable in class com.google.errorprone.BugPattern.StandardTags
This check detects code that may technically be working within a limited domain, but is fragile, or violates generally-accepted assumptions of behavior.
FragmentInjection - Class in com.google.errorprone.bugpatterns.android
 
FragmentInjection() - Constructor for class com.google.errorprone.bugpatterns.android.FragmentInjection
 
FragmentNotInstantiable - Class in com.google.errorprone.bugpatterns.android
 
FragmentNotInstantiable() - Constructor for class com.google.errorprone.bugpatterns.android.FragmentNotInstantiable
 
FragmentNotInstantiable(Iterable<String>) - Constructor for class com.google.errorprone.bugpatterns.android.FragmentNotInstantiable
 
freeExpressionVariables(MethodTree) - Static method in class com.google.errorprone.refaster.UTemplater
 
from(Tree.Kind) - Static method in enum com.google.errorprone.util.OperatorPrecedence
 
from(Tree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
from(Symbol.ClassSymbol, GuardedBySymbolResolver.MethodInfo, CompilationUnitTree, Context, Tree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
from(JCTree.JCExpression, GuardedByExpression, VisitorState, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.HeldLockAnalyzer.ExpectedLockCalculator
Determine the lock expression that needs to be held when accessing a specific guarded member.
from(Collection<T>) - Static method in class com.google.errorprone.refaster.Choice
 
fromAnnotationMirrors(List<? extends AnnotationMirror>) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
 
fromAnnotationsOn(Symbol) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
 
fromAnnotationsOn(TypeMirror) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
 
fromAnnotationTrees(List<? extends AnnotationTree>) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
 
fromBugCheckerClasses(Class<? extends BugChecker>...) - Static method in class com.google.errorprone.scanner.ScannerSupplier
Returns a ScannerSupplier with a specific list of BugChecker classes.
fromBugCheckerClasses(Iterable<Class<? extends BugChecker>>) - Static method in class com.google.errorprone.scanner.ScannerSupplier
Returns a ScannerSupplier with a specific list of BugChecker classes.
fromBugCheckerInfos(Iterable<BugCheckerInfo>) - Static method in class com.google.errorprone.scanner.ScannerSupplier
Returns a ScannerSupplier built from a list of BugCheckerInfos.
fromDefaultAnnotations(Element) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
Walks the syntactically enclosing elements of the given element until it finds a defaulting annotation.
fromElement(Element) - Static method in class com.google.errorprone.BugPatternInstance
 
fromFieldAccess(FieldAccessNode) - Static method in class com.google.errorprone.dataflow.AccessPath
Creates an AccessPath from field reads / AutoValue accessor we can track and returns null otherwise (for example, when the receiver of the field access contains an array access or non-AutoValue method call.
fromFlags(ErrorProneFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions
 
fromFlags(ErrorProneFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
 
fromFlags(ErrorProneFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownThreadSafety
 
fromLocalVariable(LocalVariableNode) - Static method in class com.google.errorprone.dataflow.AccessPath
 
fromMap(Map<String, String>) - Static method in class com.google.errorprone.ErrorProneFlags
 
fromMembers(Set<String>, Multimap<String, ApiDiff.ClassMemberKey>) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff
 
fromModifiers(Set<Modifier>) - Static method in enum com.google.errorprone.util.Visibility
 
fromNodeIfTrackable(Node) - Static method in class com.google.errorprone.dataflow.AccessPath
Returns an AccessPath representing node if node is representable as an access path and null otherwise
fromOptional(Optional<T>) - Static method in class com.google.errorprone.refaster.Choice
Returns a choice of the optional value, if it is present, or the empty choice if it is absent.
fromPatterns(Iterable<String>) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.PackagesRule
Returns a new rule using the given package patterns.
fromProto(ApiDiffProto.Diff) - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff
Converts a ApiDiffProto.Diff to a ApiDiff.
fromScanner(Scanner) - Static method in class com.google.errorprone.scanner.ScannerSupplier
Returns a ScannerSupplier that just returns the Scanner that was passed in.
fromSource(CharSequence, EndPosTable) - Static method in class com.google.errorprone.fixes.AppliedFix
 
fromStrings(Iterable<String>) - Static method in class com.google.errorprone.suppliers.Suppliers
 
fromSymbol(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ApiFactory
Returns the Api representation of the given symbol.
FromTemporalAccessor - Class in com.google.errorprone.bugpatterns.time
Bans calls to javaTimeType.from(temporalAmount) where the call is guaranteed to either: throw a DateTimeException at runtime (e.g., LocalDate.from(month)) return the same parameter (e.g., Instant.from(instant))
FromTemporalAccessor() - Constructor for class com.google.errorprone.bugpatterns.time.FromTemporalAccessor
 
fromVariableDecl(VariableDeclarationNode) - Static method in class com.google.errorprone.dataflow.AccessPath
 
FsFileDestination - Class in com.google.errorprone.apply
A FileDestination that writes content to a destination on the local filesystem.
FsFileDestination(Path) - Constructor for class com.google.errorprone.apply.FsFileDestination
 
FsFileSource - Class in com.google.errorprone.apply
A FileSource that reads source files from the local filesystem.
FsFileSource(Path) - Constructor for class com.google.errorprone.apply.FsFileSource
 
FunctionalInterfaceClash - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
FunctionalInterfaceClash() - Constructor for class com.google.errorprone.bugpatterns.FunctionalInterfaceClash
 
FunctionalInterfaceMethodChanged - Class in com.google.errorprone.bugpatterns
 
FunctionalInterfaceMethodChanged() - Constructor for class com.google.errorprone.bugpatterns.FunctionalInterfaceMethodChanged
 
FutureReturnValueIgnored - Class in com.google.errorprone.bugpatterns
See BugPattern annotation.
FuturesGetCheckedIllegalExceptionType - Class in com.google.errorprone.bugpatterns
Checks for calls to Guava's Futures.getChecked method that will always fail because they pass an incompatible exception type.
FuturesGetCheckedIllegalExceptionType() - Constructor for class com.google.errorprone.bugpatterns.FuturesGetCheckedIllegalExceptionType
 
FutureTransformAsync - Class in com.google.errorprone.bugpatterns
See summary for details.
FutureTransformAsync() - Constructor for class com.google.errorprone.bugpatterns.FutureTransformAsync
 
FuzzyEqualsShouldNotBeUsedInEqualsMethod - Class in com.google.errorprone.bugpatterns
 
FuzzyEqualsShouldNotBeUsedInEqualsMethod() - Constructor for class com.google.errorprone.bugpatterns.FuzzyEqualsShouldNotBeUsedInEqualsMethod
 

G

generateExamplesFromTestCases() - Element in annotation type com.google.errorprone.BugPattern
Deprecated.
this is a no-op that will be removed in the future
generateNegation() - Method in class com.google.errorprone.refaster.ExpressionTemplate
 
genericTypeOf(Supplier<ExpressionTree>, int) - Static method in class com.google.errorprone.suppliers.Suppliers
Supplies the n'th generic type of the given expression.
genericTypeOfType(Supplier<Type>, int) - Static method in class com.google.errorprone.suppliers.Suppliers
Supplies the n'th generic type of the given expression.
get(boolean) - Static method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
Gets an instance of this matcher.
get(VisitorState) - Method in interface com.google.errorprone.suppliers.Supplier
 
get(Context.Key<T>) - Method in class com.google.errorprone.SubContext
 
get(Class<T>) - Method in class com.google.errorprone.SubContext
 
get(String) - Method in class com.google.errorprone.ErrorProneFlags
Gets flag value for the given key as a String, wrapped in an Optional, which is empty if the flag is unset.
getAllChecks() - Method in class com.google.errorprone.scanner.ScannerSupplier
Returns a map of check name to BugCheckerInfo for all BugCheckerInfos in this ScannerSupplier, including disabled ones.
getAllowReasons(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
Returns a stream of reasons the given expression is allowed to have an unused return value based on its context.
getAnalysis() - Method in interface com.google.errorprone.dataflow.DataFlow.Result
 
getAnnotation(Tree, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Deprecated.
If annotationClass contains a member that is a Class or an array of them, attempting to access that member from the Error Prone checker code will result in a runtime exception. Instead, operate on getSymbol(tree).getAnnotationMirrors() to meta-syntactically inspect the annotation. Note that this method (and the getSymbol-based replacement suggested above) looks for annotations not just on the given tree (such as a MethodTree) but also on the symbol referred to by the given tree (such as on the Symbol.MethodSymbol that is being called by the given MethodInvocationTree). If you want to examine annotations only on the given tree, then use ASTHelpers.getAnnotations(com.sun.source.tree.Tree) (or a direct call to a getAnnotations method declared on a specific Tree subclass) instead.
getAnnotation(Symbol, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Deprecated.
If annotationClass contains a member that is a Class or an array of them, attempting to access that member from the Error Prone checker code will result in a runtime exception. Instead, operate on sym.getAnnotationMirrors() to meta-syntactically inspect the annotation.
getAnnotationMirror(AnnotationTree) - Static method in class com.google.errorprone.util.ASTHelpers
Return a mirror of this annotation.
getAnnotationName(AnnotationTree) - Static method in class com.google.errorprone.util.ASTHelpers
 
getAnnotations(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the annotations of the given tree, or an empty list.
getAnnotationsWithSimpleName(List<? extends AnnotationTree>, String) - Static method in class com.google.errorprone.util.ASTHelpers
Returns a list of AnnotationTree with the given simple name.
getAnnotationType(AnnotationTree, Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether anno corresponds to a type annotation, or null if it could not be determined.
getAnnotationValue(Attribute.Compound, String) - Static method in class com.google.errorprone.util.MoreAnnotations
Returns the value of the annotation element-value pair with the given name if it is explicitly set.
getAnnotationWithSimpleName(List<? extends AnnotationTree>, String) - Static method in class com.google.errorprone.util.ASTHelpers
Returns an AnnotationTree with the given simple name, or null.
getArgument(AnnotationTree, String) - Static method in class com.google.errorprone.matchers.AnnotationMatcherUtils
Gets the value for an argument, or null if the argument does not exist.
getArguments() - Method in class com.google.errorprone.refaster.UMethodInvocation
 
getAsSequence() - Method in class com.google.errorprone.apply.SourceFile
 
getBinding(Bindings.Key<V>) - Method in class com.google.errorprone.refaster.Bindings
 
getBinding(Bindings.Key<V>) - Method in class com.google.errorprone.refaster.Inliner
 
getBinding(Bindings.Key<V>) - Method in class com.google.errorprone.refaster.Unifier
 
getBindings() - Method in class com.google.errorprone.refaster.Unifier
 
getBoolean(String) - Method in class com.google.errorprone.ErrorProneFlags
Gets the flag value for the given key as a Boolean, wrapped in an Optional, which is empty if the flag is unset.
getBugCheckers() - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
getCaseExpressions(CaseTree) - Static method in class com.google.errorprone.util.ASTHelpers
Retrieves a stream containing all case expressions, in order, for a given CaseTree.
getCaseTreeBody(CaseTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the statement or expression after the arrow for a CaseTree of the form: case <expression> -> <body>.
getChildNodes(ClassTree, VisitorState) - Method in class com.google.errorprone.matchers.ConstructorOfClass
 
getChildNodes(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.matchers.HasArguments
 
getChildNodes(MethodTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodHasParameters
 
getChildNodes(T, VisitorState) - Method in class com.google.errorprone.matchers.AnnotationMatcher
 
getChildNodes(T, VisitorState) - Method in class com.google.errorprone.matchers.ChildMultiMatcher
Returns the set of child nodes to match.
getClassDiff(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiff(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiff(int) - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.DiffOrBuilder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffCount() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffCount() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffCount() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.DiffOrBuilder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffList() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.DiffOrBuilder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffOrBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffOrBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffOrBuilder(int) - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.DiffOrBuilder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffOrBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffOrBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassDiffOrBuilderList() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.DiffOrBuilder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassDiff class_diff = 1;
getClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
string class_name = 1;
getClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
string class_name = 1;
getClassName() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiffOrBuilder
string class_name = 1;
getClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
string class_name = 1;
getClassName() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
string class_name = 1;
getClassName() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
string class_name = 1;
getClassNameBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
string class_name = 1;
getClassNameBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
string class_name = 1;
getClassNameBytes() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiffOrBuilder
string class_name = 1;
getClassNameBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
string class_name = 1;
getClassNameBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
string class_name = 1;
getClassNameBytes() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
string class_name = 1;
GetClassOnAnnotation - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
GetClassOnAnnotation() - Constructor for class com.google.errorprone.bugpatterns.GetClassOnAnnotation
 
GetClassOnClass - Class in com.google.errorprone.bugpatterns
 
GetClassOnClass() - Constructor for class com.google.errorprone.bugpatterns.GetClassOnClass
 
GetClassOnEnum - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
GetClassOnEnum() - Constructor for class com.google.errorprone.bugpatterns.GetClassOnEnum
 
getCoalescePolicy() - Method in interface com.google.errorprone.fixes.Fix
 
getConstantExpression(Object) - Method in class com.google.errorprone.VisitorState
Returns the Java source code for a constant expression representing the given constant value.
getConstructors(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the list of all constructors defined in the class (including generated ones).
getConstructors(Symbol.ClassSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the list of all constructors defined in the class.
getContext() - Method in class com.google.errorprone.refaster.Inliner
 
getContext() - Method in class com.google.errorprone.refaster.Unifier
 
getControlFlowGraph() - Method in interface com.google.errorprone.dataflow.DataFlow.Result
 
getCustomSuppressionAnnotations(VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
getCustomSuppressionAnnotations(VisitorState) - Method in class com.google.errorprone.scanner.Scanner
Returns a set of all the custom suppression annotation types used by the BugCheckers in thisScanner.
getDeclarationAndTypeAttributes(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns declaration annotations of the given symbol, as well as 'top-level' type annotations, including : Type annotations of the return type of a method.
getDeclarationAndTypeAttributes(Symbol) - Static method in class com.google.errorprone.util.MoreAnnotations
Returns declaration annotations of the given symbol, as well as 'top-level' type annotations, including : Type annotations of the return type of a method.
getDeclaredSymbol(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol declared by a tree.
getDefaultInstance() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
 
getDefaultInstance() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
 
getDefaultInstance() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
 
getDefaultInstance() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
 
getDefaultInstance() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
 
getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
 
getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
 
getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
 
getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
 
getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
getDefaultInstanceForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
 
getDescription(Symbol.MethodSymbol) - Method in class com.google.errorprone.bugpatterns.OverridingMethodInconsistentArgumentNamesChecker
Provides a violation description with suggested parameter ordering.
getDescriptionListener(Log, JCTree.JCCompilationUnit) - Method in interface com.google.errorprone.DescriptionListener.Factory
 
getDescriptionListener(Log, JCTree.JCCompilationUnit) - Method in class com.google.errorprone.RefactoringCollection
 
getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
 
getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
 
getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
 
getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
 
getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto
 
getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
getDescriptor() - Static method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
 
getDescriptorForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
getDescriptorForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
getDescriptorForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
getDescriptorForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
getDescriptorForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
getDiagnostics() - Method in class com.google.errorprone.DiagnosticTestHelper
 
getDiffCase() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
getDiffCase() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
 
getDiffCase() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
 
getDiffs(FileSource, String[]) - Method in interface com.google.errorprone.apply.DiffSupplier
Gets the list of differences
getEditDistance(String, String) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
Returns the edit distance between two strings.
getEditDistance(String, String, boolean) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
Returns the edit distance between two strings.
getEditDistance(String, String, boolean, int, int, int) - Static method in class com.google.errorprone.names.NeedlemanWunschEditDistance
Returns the edit distance between two strings.
getElements() - Method in class com.google.errorprone.VisitorState
 
getEnabledChecks() - Method in class com.google.errorprone.scanner.ScannerSupplier
Returns the set of BugCheckerInfos that are enabled in this ScannerSupplier.
getEnclosedElements(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
A wrapper for Symbol.getEnclosedElements() to avoid binary compatibility issues for covariant overrides in subtypes of Symbol.
getEndPos() - Method in class com.google.errorprone.apply.ImportStatements
Return the end position of the import statements.
getEndPos() - Method in class com.google.errorprone.util.ErrorProneComment
 
getEndPosition(Tree) - Method in class com.google.errorprone.VisitorState
Returns the end position of the node, or -1 if it is not available.
getEndPosition(EndPosTable) - Method in class com.google.errorprone.fixes.AdjustedPosition
 
getEndPosition(EndPosTable) - Method in class com.google.errorprone.fixes.FixedPosition
 
getEndPosition(EndPosTable) - Method in class com.google.errorprone.fixes.IndexedPosition
 
getEnum(String, Class<T>) - Method in class com.google.errorprone.ErrorProneFlags
Gets the flag value for an enum of the given type, wrapped in an Optional, which is empty if the flag is unset.
getEnumSet(String, Class<T>) - Method in class com.google.errorprone.ErrorProneFlags
Gets the flag value for a comma-separated set of enums of the given type, wrapped in an Optional, which is empty if the flag is unset.
getErasedTypeTree(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the erasure of the given type tree, i.e.
getEverythingDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
getEverythingDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
getEverythingDiff() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
getEverythingDiffBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
getEverythingDiffOrBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
getEverythingDiffOrBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
getEverythingDiffOrBuilder() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
getExcludedPattern() - Method in class com.google.errorprone.ErrorProneOptions
 
getExpression() - Method in class com.google.errorprone.refaster.UMemberSelect
 
getExpression() - Method in class com.google.errorprone.refaster.UReturn
 
getExpressionForCase(VisitorState, ExpressionTree) - Method in class com.google.errorprone.bugpatterns.AbstractUseSwitch
Returns the source text that should appear in a case statement in the fix.
getExpressionForCase(VisitorState, ExpressionTree) - Method in class com.google.errorprone.bugpatterns.UseEnumSwitch
 
getExprNullness(ExpressionTree) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.InferredNullability
Get inferred nullness qualifier for an expression, if possible.
getFieldInitializerNullness(TreePath, Context) - Method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
Returns Nullness of the initializer of the VariableTree at the leaf of the given fieldDeclPath.
getFileName(CompilationUnitTree) - Static method in class com.google.errorprone.util.ASTHelpers
Extract the filename from a CompilationUnitTree, with special handling for jar files.
getFileNameFromUri(URI) - Static method in class com.google.errorprone.util.ASTHelpers
Extract the filename from the URI, with special handling for jar files.
getFixes() - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes
 
getFlags() - Method in class com.google.errorprone.ErrorProneOptions
 
getFlags() - Method in class com.google.errorprone.scanner.ScannerSupplier
 
getFlagsMap() - Method in class com.google.errorprone.ErrorProneFlags
 
getFragmentByChars(int, int) - Method in class com.google.errorprone.apply.SourceFile
Returns a fragment of the source code as a string.
getFragmentByLines(int, int) - Method in class com.google.errorprone.apply.SourceFile
Returns a fragment of the source code between the two stated line numbers.
getGeneratedBy(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the value of the @Generated annotation on enclosing classes, if present.
getGeneratedBy(Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the values of the given symbol's Generated annotations, if present.
getGuardValues(Symbol) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils
 
getIdentifier() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
string identifier = 1;
getIdentifier() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
string identifier = 1;
getIdentifier() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMemberOrBuilder
string identifier = 1;
getIdentifier() - Method in class com.google.errorprone.refaster.Bindings.Key
 
getIdentifier() - Method in class com.google.errorprone.refaster.UMemberSelect
 
getIdentifierBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
string identifier = 1;
getIdentifierBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
string identifier = 1;
getIdentifierBytes() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMemberOrBuilder
string identifier = 1;
getImportOrganizer(String) - Static method in class com.google.errorprone.ImportOrderParser
Parse import order string and create appropriate ImportOrganizer.
getImportsToAdd() - Method in interface com.google.errorprone.fixes.Fix
 
getImportsToAdd() - Method in class com.google.errorprone.fixes.SuggestedFix
 
getImportsToAdd() - Method in class com.google.errorprone.refaster.Inliner
 
getImportsToRemove() - Method in interface com.google.errorprone.fixes.Fix
 
getImportsToRemove() - Method in class com.google.errorprone.fixes.SuggestedFix
 
getInferredNullability(Tree) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
 
getInheritedAnnotation(Symbol, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Gets the possibly inherited marker annotation on the given symbol, and reverse-propagates containerOf spec's from super-classes.
getInitializer() - Method in class com.google.errorprone.refaster.UVariableDecl
 
getInstance(Class<T>) - Method in class com.google.errorprone.scanner.ErrorProneInjector
 
getInteger(String) - Method in class com.google.errorprone.ErrorProneFlags
Gets the flag value for the given key as an Integer, wrapped in an Optional, which is empty if the flag is unset.
getKind() - Method in class com.google.errorprone.refaster.UAnyOf
 
getKind() - Method in class com.google.errorprone.refaster.UFreeIdent
 
getKind() - Method in class com.google.errorprone.refaster.UMethodIdent
 
getKind() - Method in class com.google.errorprone.refaster.UStaticIdent
 
getKind() - Method in class com.google.errorprone.refaster.ULiteral
 
getKind() - Method in class com.google.errorprone.refaster.UMemberSelect
 
getKind() - Method in class com.google.errorprone.refaster.UMethodInvocation
 
getKind() - Method in class com.google.errorprone.refaster.UPlaceholderExpression
 
getKind() - Method in class com.google.errorprone.refaster.UReturn
 
getKind() - Method in class com.google.errorprone.refaster.UVariableDecl
 
getKnownImmutableClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
 
getKnownMutableClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
 
getKnownSafeClasses() - Method in interface com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes
Types that are known to be safe even if they're not annotated with an expected annotation.
getKnownSafeClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
Deprecated.
WellKnownMutability.getKnownImmutableClasses() is clearer if you're dealing with this specific class.
getKnownSafeClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownThreadSafety
 
getKnownThreadSafeClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownThreadSafety
 
getKnownUnsafeClasses() - Method in interface com.google.errorprone.bugpatterns.threadsafety.ThreadSafetyKnownTypes
Types that are known to be unsafe and don't need testing.
getKnownUnsafeClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
Deprecated.
WellKnownMutability.getKnownMutableClasses() is clearer if you're dealing with this specific class.
getKnownUnsafeClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownThreadSafety
 
getLineMap() - Method in class com.google.errorprone.util.ErrorProneTokens
 
getLines() - Method in class com.google.errorprone.apply.SourceFile
Returns a copy of code as a list of lines.
getLink() - Method in class com.google.errorprone.matchers.Description
Returns a link associated with this finding or null if there is no link.
getListOrEmpty(String) - Method in class com.google.errorprone.ErrorProneFlags
Gets the flag value for the given key as a comma-separated ImmutableList of Strings, or an empty list if the flag is unset.
getLocation() - Method in class com.google.errorprone.refaster.TemplateMatch
 
getLowerBound() - Method in class com.google.errorprone.refaster.UTypeVar
 
getMarkerOrAcceptedAnnotation(Symbol, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Gets the Symbol's annotation info, either from a marker annotation on the symbol, from an accepted annotation on the symbol, or from the list of well-known types.
getMatcherWithFlags() - Method in class com.google.errorprone.bugpatterns.AbstractPatternSyntaxChecker
 
getMatcherWithoutFlags() - Method in class com.google.errorprone.bugpatterns.AbstractPatternSyntaxChecker
 
getMatchMetadata(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
 
getMatchMetadata(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IgnoredPureGetter
 
getMatchMetadata(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ReturnValueIgnored
 
getMatchMetadata(E, C) - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyAnalyzer
Returns a map of optional metadata about why this check matched the given expression.
getMember(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMember(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMember(int) - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberCount() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberCount() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberCount() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberDescriptor() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
a JVMS 4.3 member descriptor
getMemberDescriptor() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
a JVMS 4.3 member descriptor
getMemberDescriptor() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMemberOrBuilder
a JVMS 4.3 member descriptor
getMemberDescriptorBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
a JVMS 4.3 member descriptor
getMemberDescriptorBytes() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
a JVMS 4.3 member descriptor
getMemberDescriptorBytes() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMemberOrBuilder
a JVMS 4.3 member descriptor
getMemberDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
getMemberDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
getMemberDiff() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
getMemberDiffBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
getMemberDiffOrBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
getMemberDiffOrBuilder() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
getMemberDiffOrBuilder() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
getMemberList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberList() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberOrBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberOrBuilder(int) - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberOrBuilder(int) - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberOrBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberOrBuilderList() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMemberOrBuilderList() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiffOrBuilder
repeated .devtools.staticanalysis.errorprone.apidiff.ClassMember member = 2;
getMessage() - Method in class com.google.errorprone.matchers.Description
Returns the message to be printed by the compiler when a match is found in interactive use.
getMessage(Name) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
Returns the diagnostic message.
getMessage(Name) - Method in class com.google.errorprone.bugpatterns.ReturnValueIgnored
 
getMessageWithoutCheckName() - Method in class com.google.errorprone.matchers.Description
Returns the message, not including the check name but including the link.
getMethodKind(M) - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyEvaluator.MethodInfo
Returns the kind of the given method.
getMethodPolicy(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
 
getMethodPolicy(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
 
getMethodPolicy(E, C) - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyAnalyzer
Returns the ResultUsePolicy for the method used in the given expression.
getMethodSelect() - Method in class com.google.errorprone.refaster.UMethodInvocation
 
getModifiedFileUri(VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler
 
getModifiers() - Method in class com.google.errorprone.refaster.LocalVarBinding
 
getModifiers() - Method in class com.google.errorprone.refaster.UVariableDecl
 
getModifiers(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the modifiers tree of the given class, method, or variable declaration.
getName() - Method in class com.google.errorprone.ErrorProneJavacPlugin
 
getName() - Method in class com.google.errorprone.refaster.LocalVarBinding
 
getName() - Method in class com.google.errorprone.refaster.RefasterRuleCompiler
 
getName() - Method in class com.google.errorprone.refaster.UFreeIdent
 
getName() - Method in class com.google.errorprone.refaster.UMethodIdent
 
getName() - Method in class com.google.errorprone.refaster.UStaticIdent
 
getName() - Method in class com.google.errorprone.refaster.UTypeVar
 
getName() - Method in class com.google.errorprone.refaster.UVariableDecl
 
getName(String) - Method in class com.google.errorprone.VisitorState
 
getNameExpression() - Method in class com.google.errorprone.refaster.UVariableDecl
 
getNames() - Method in class com.google.errorprone.VisitorState
 
getNewCodeSnippet() - Method in class com.google.errorprone.fixes.AppliedFix
 
getNormalizedEditDistance(String, String) - Method in class com.google.errorprone.names.TermEditDistance
 
getNormalizedEditDistance(String, String, boolean, int, int, int) - Static method in class com.google.errorprone.names.NeedlemanWunschEditDistance
Returns a normalized edit distance between 0 and 1.
getNullness(TreePath, Context) - Method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnalysis
Returns the Nullness of the leaf of exprPath.
getNullness(TreePath, Context) - Method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
Returns the Nullness of the leaf of exprPath.
getNullnessAnalysis() - Method in class com.google.errorprone.VisitorState
 
getNullnessGenerics(MethodInvocationTree) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.InferredNullability
Get inferred nullness qualifiers for method-generic type variables at a callsite.
getNullnessValue(ExpressionTree, VisitorState, NullnessAnalysis) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the Nullness for an expression as determined by the nullness dataflow analysis.
getNumber() - Method in enum com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.DiffCase
 
getOffsetTokens(int, int) - Method in class com.google.errorprone.VisitorState
Returns the list of Tokens.Tokens for source code between the given positions, offset by the start position.
getOffsetTokensForNode(Tree) - Method in class com.google.errorprone.VisitorState
Returns the list of Tokens.Tokens for the given JCTree, offset by the start position of the tree within the overall source.
getOptionalBinding(Bindings.Key<V>) - Method in class com.google.errorprone.refaster.Inliner
 
getParameterTypes() - Method in class com.google.errorprone.refaster.UMethodType
 
getParserForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
 
getParserForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
 
getParserForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
 
getParserForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
 
getParserForType() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
 
getPath() - Method in class com.google.errorprone.apply.SourceFile
Returns the path for this source file
getPath() - Method in class com.google.errorprone.VisitorState
 
getPos() - Method in class com.google.errorprone.util.ErrorProneComment
 
getPreferredPosition() - Method in class com.google.errorprone.fixes.AdjustedPosition
 
getPreferredPosition() - Method in class com.google.errorprone.fixes.FixedPosition
 
getPreferredPosition() - Method in class com.google.errorprone.fixes.IndexedPosition
 
getPrettyName(Symbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Gets a human-friendly name for the given Symbol to use in diagnostics.
getQuantifiedType() - Method in class com.google.errorprone.refaster.UForAll
 
getRange(JCTree.JCCompilationUnit) - Method in class com.google.errorprone.refaster.TemplateMatch
 
getRawMessage() - Method in class com.google.errorprone.matchers.Description
Returns the raw message, not including a link or check name.
getReceiver(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the receiver of an expression.
getReceiverType(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the type of a receiver of a method call expression.
getRelevantFileName() - Method in class com.google.errorprone.apply.DescriptionBasedDiff
 
getRelevantFileName() - Method in interface com.google.errorprone.apply.Diff
Gets the name of the file this difference applies to
getRemainingArgs() - Method in class com.google.errorprone.ErrorProneOptions
 
getReplacements(EndPosTable) - Method in interface com.google.errorprone.fixes.Fix
 
getReplacements(EndPosTable) - Method in class com.google.errorprone.fixes.SuggestedFix
 
getResultType(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the type that this expression tree will evaluate to.
getReturnType() - Method in class com.google.errorprone.refaster.UMethodType
 
getReturnType(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gives the return type of an ExpressionTree that represents a method select.
getRootAssignable(MethodInvocationTree) - Static method in class com.google.errorprone.util.ASTHelpers
Find the root assignable expression of a chain of field accesses.
getSerializedSize() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
 
getSerializedSize() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
 
getSerializedSize() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
 
getSerializedSize() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
 
getSerializedSize() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
 
getSetOrEmpty(String) - Method in class com.google.errorprone.ErrorProneFlags
Gets the flag value for the given key as a comma-separated Set of Strings, or an empty set if unset.
getSeverityMap() - Method in class com.google.errorprone.ErrorProneOptions
 
getShortDescription() - Method in interface com.google.errorprone.fixes.Fix
A short description which can be attached to the Fix to differentiate multiple fixes provided to the user.
getShortDescription() - Method in class com.google.errorprone.fixes.SuggestedFix
 
getSourceCode() - Method in class com.google.errorprone.VisitorState
Gets the current source file.
getSourceForNode(Tree) - Method in class com.google.errorprone.VisitorState
Gets the original source code that represents the given node.
getSourcePos(int) - Method in class com.google.errorprone.util.ErrorProneComment
Returns the source position of the character at index index in the comment text.
getSourceText() - Method in class com.google.errorprone.apply.SourceFile
Returns a copy of the code as a string.
getSourceVersions() - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
getStandardFileManager(DiagnosticListener<? super JavaFileObject>, Locale, Charset) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
getStartPos() - Method in class com.google.errorprone.apply.ImportStatements
Return the start position of the import statements.
getStartPosition() - Method in class com.google.errorprone.fixes.AdjustedPosition
 
getStartPosition() - Method in class com.google.errorprone.fixes.FixedPosition
 
getStartPosition() - Method in class com.google.errorprone.fixes.IndexedPosition
 
getStartPosition(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the start position of the node.
getStaticImportsToAdd() - Method in class com.google.errorprone.refaster.Inliner
 
getStyle() - Method in class com.google.errorprone.util.ErrorProneComment
 
getSuppliers(Class<? extends BugChecker>...) - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
 
getSuppliers(Iterable<Class<? extends BugChecker>>) - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
 
getSupportedSourceVersion() - Method in class com.google.errorprone.DocGenProcessor
 
getSupportedSourceVersion() - Method in class com.google.errorprone.refaster.annotation.RequiredAnnotationProcessor
 
getSwitchDefault(SwitchTree) - Static method in class com.google.errorprone.util.ASTHelpers
 
getSymbol() - Method in class com.google.errorprone.refaster.LocalVarBinding
 
getSymbol(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a class.
getSymbol(MemberReferenceTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a member reference.
getSymbol(MethodInvocationTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a method invocation.
getSymbol(MethodTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a method.
getSymbol(NewClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the method symbol for a new class.
getSymbol(PackageTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a package.
getSymbol(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a tree.
getSymbol(VariableTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a variable.
getSymbolFromName(Name) - Method in class com.google.errorprone.VisitorState
Look up the class symbol for a given Name.
getSymbolFromString(Symbol.ModuleSymbol, Name) - Method in class com.google.errorprone.VisitorState
 
getSymbolFromString(String) - Method in class com.google.errorprone.VisitorState
 
getSymbols(Predicate<Symbol>) - Method in class com.google.errorprone.util.ErrorProneScope
 
getSymbols(Predicate<Symbol>, Scope.LookupKind) - Method in class com.google.errorprone.util.ErrorProneScope
 
getSymbolsByName(Name, Predicate<Symbol>) - Method in class com.google.errorprone.util.ErrorProneScope
 
getSymbolsByName(Name, Predicate<Symbol>, Scope.LookupKind) - Method in class com.google.errorprone.util.ErrorProneScope
 
getSymtab() - Method in class com.google.errorprone.VisitorState
 
getTags() - Method in class com.google.errorprone.BugCheckerInfo
 
getTask(Writer, JavaFileManager, DiagnosticListener<? super JavaFileObject>, Iterable<String>, Iterable<String>, Iterable<? extends JavaFileObject>) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
getText() - Method in class com.google.errorprone.util.ErrorProneComment
 
getTextFromComment(ErrorProneComment) - Static method in class com.google.errorprone.util.Comments
Extract the text body from a comment.
getThrownExceptions(Tree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the exceptions thrown by tree.
getThrownTypes() - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
getTokens() - Method in class com.google.errorprone.util.ErrorProneTokens
 
getTokens(String, int, Context) - Static method in class com.google.errorprone.util.ErrorProneTokens
Returns the tokens for the given source text, including comments, indicating the offset of the source within the overall file.
getTokens(String, Context) - Static method in class com.google.errorprone.util.ErrorProneTokens
Returns the tokens for the given source text, including comments.
getTokensForNode(Tree) - Method in class com.google.errorprone.VisitorState
Returns the list of Tokens.Tokens for the given JCTree.
getTopLevelTypeAttributes(Symbol) - Static method in class com.google.errorprone.util.MoreAnnotations
Returns "top-level" type annotations of the given symbol, including: Type annotations of the return type of a method.
getTree() - Method in class com.google.errorprone.fixes.AdjustedPosition
 
getTree() - Method in class com.google.errorprone.fixes.FixedPosition
 
getTree() - Method in class com.google.errorprone.fixes.IndexedPosition
 
getTreeMaker() - Method in class com.google.errorprone.VisitorState
 
getType() - Method in class com.google.errorprone.apply.ImportOrganizer.Import
Return the type to import.
getType() - Method in class com.google.errorprone.refaster.UVariableDecl
 
getType(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the ClassType for the given type ClassTree or null if the type could not be determined.
getType(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the Type of the given tree, or null if the type could not be determined.
getType(Type, boolean, List<Type>) - Method in class com.google.errorprone.VisitorState
Build an instance of a Type.
getTypeArguments() - Method in class com.google.errorprone.refaster.UMethodInvocation
 
getTypeFromString(String) - Method in class com.google.errorprone.VisitorState
Given the binary name of a class, returns the Type.
getTypes() - Method in class com.google.errorprone.VisitorState
 
getTypeSubstitution(Type, Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the mapping between type variables and their instantiations in the given type.
getTypeVars() - Method in class com.google.errorprone.refaster.UForAll
 
getUnifier() - Method in class com.google.errorprone.refaster.TemplateMatch
 
getUnusedLookupKeys() - Method in class com.google.errorprone.DiagnosticTestHelper
Returns the lookup keys that weren't used.
getUpperBound() - Method in class com.google.errorprone.refaster.UTypeVar
 
getUpperBound(Type, Types) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the upper bound of a type if it has one, or the type itself if not.
getUpperBound(TypeVariable) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
Returns any declared or implied bound for the given type variable, meaning this returns any annotation on the given type variable and otherwise returns NullnessAnnotations.fromDefaultAnnotations(javax.lang.model.element.Element) to find any default in scope of the given type variable.
getValue() - Method in class com.google.errorprone.refaster.ULiteral
 
getValue(Attribute.Compound, String) - Static method in class com.google.errorprone.util.MoreAnnotations
Returns the value of the annotation element-value pair with the given name if it is explicitly set.
getWorstCaseEditDistance(int, int) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
Calculate the worst case distance between two strings with the given lengths
getWorstCaseEditDistance(int, int, int, int, int) - Static method in class com.google.errorprone.names.NeedlemanWunschEditDistance
Return the worst case edit distance between strings of this length
GLOBAL - Enum constant in enum com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.RuleScope
The global scope.
globalDefault(Optional<ResultUsePolicy>, Optional<ResultUsePolicy>) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.Rules
Returns a simple global rule that always returns the given defaults for methods and constructors.
GlobalRule() - Constructor for class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.GlobalRule
 
greatestLowerBound(Nullness) - Method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
 
GuardedBy - Annotation Type in com.google.errorprone.annotations.concurrent
Indicates that the annotated element should be used only while holding the specified lock.
GuardedByBinder - Class in com.google.errorprone.bugpatterns.threadsafety
A binder from @GuardedBy annotations to GuardedByExpressions.
GuardedByBinder.Resolver - Interface in com.google.errorprone.bugpatterns.threadsafety
A context containing the information necessary to resolve a Symbol from an AST node.
GuardedByChecker - Class in com.google.errorprone.bugpatterns.threadsafety
A BugChecker; see the associated BugPattern annotation for details.
GuardedByChecker() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
 
GuardedByExpression - Class in com.google.errorprone.bugpatterns.threadsafety
The lock expression of an @GuardedBy annotation.
GuardedByExpression() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression
 
GuardedByExpression.ClassLiteral - Class in com.google.errorprone.bugpatterns.threadsafety
A 'class' literal: ClassName.class
GuardedByExpression.Erroneous - Class in com.google.errorprone.bugpatterns.threadsafety
A guarded by expression that could not be resolved.
GuardedByExpression.Factory - Class in com.google.errorprone.bugpatterns.threadsafety
GuardedByExpression.Kind - Enum in com.google.errorprone.bugpatterns.threadsafety
GuardedByExpression.LocalVariable - Class in com.google.errorprone.bugpatterns.threadsafety
A local variable (or parameter), resolved as part of a lock access expression.
GuardedByExpression.Select - Class in com.google.errorprone.bugpatterns.threadsafety
The member access expression for a field or method.
GuardedByExpression.ThisLiteral - Class in com.google.errorprone.bugpatterns.threadsafety
A simple 'this literal.
GuardedByExpression.TypeLiteral - Class in com.google.errorprone.bugpatterns.threadsafety
The base expression for a static member select on a class literal (e.g.
GuardedByFlags - Class in com.google.errorprone.bugpatterns.threadsafety
Flags that control the behavior of threadsafety utils to facilitate rolling out new functionality.
GuardedByFlags() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByFlags
 
GuardedBySymbolResolver - Class in com.google.errorprone.bugpatterns.threadsafety
A symbol resolver used while binding guardedby expressions from string literals.
GuardedByUtils - Class in com.google.errorprone.bugpatterns.threadsafety
 
guardString() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Erroneous
 
GUICE_BINDING_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
GUICE_INJECT_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
GUICE_MAP_KEY_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
GUICE_PROVIDES_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
GUICE_SCOPE_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
GuiceNestedCombine - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
GuiceNestedCombine() - Constructor for class com.google.errorprone.bugpatterns.GuiceNestedCombine
 

H

handleError(Suppressible, Throwable) - Method in class com.google.errorprone.scanner.ErrorProneScanner
Handles an exception thrown by an individual BugPattern.
handleError(Suppressible, Throwable) - Method in class com.google.errorprone.scanner.Scanner
Handles an exception thrown by an individual check.
handleFix(Fix) - Method in class com.google.errorprone.apply.DescriptionBasedDiff
 
handleGuardedAccess(ExpressionTree, GuardedByExpression, HeldLockSet) - Method in interface com.google.errorprone.bugpatterns.threadsafety.HeldLockAnalyzer.LockEventListener
Handles a guarded member access.
HardCodedSdCardPath - Class in com.google.errorprone.bugpatterns.android
 
HardCodedSdCardPath() - Constructor for class com.google.errorprone.bugpatterns.android.HardCodedSdCardPath
 
HAS_INJECT_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
HAS_MUST_BE_CLOSED_ANNOTATION - Static variable in class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker
Matches trees annotated with MustBeClosed.
hasAnnotation(Tree, Class<? extends Annotation>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Deprecated.
prefer ASTHelpers.hasAnnotation(Symbol, String, VisitorState) to avoid needing a runtime dependency on the annotation class, and to prevent issues if there is skew between the definition of the annotation on the runtime and compile-time classpaths
hasAnnotation(Tree, String, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Check for the presence of an annotation, considering annotation inheritance.
hasAnnotation(Symbol, Class<? extends Annotation>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Deprecated.
prefer ASTHelpers.hasAnnotation(Symbol, String, VisitorState) to avoid needing a runtime dependency on the annotation class, and to prevent issues if there is skew between the definition of the annotation on the runtime and compile-time classpaths
hasAnnotation(Symbol, String, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Determines whether a symbol has an annotation of the given type.
hasAnnotation(Class<? extends Annotation>) - Static method in class com.google.errorprone.matchers.Matchers
Determines whether an expression has an annotation of the given class.
hasAnnotation(String) - Static method in class com.google.errorprone.matchers.Matchers
Determines whether an expression has an annotation of the given type.
hasAnnotation(TypeMirror) - Static method in class com.google.errorprone.matchers.Matchers
Determines if an expression has an annotation referred to by the given mirror.
hasAnnotationOnAnyOverriddenMethod(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches if a method or any method it overrides has an annotation of the given type.
hasAnnotationWithSimpleName(String) - Static method in class com.google.errorprone.matchers.Matchers
Determines whether an expression has an annotation with the given simple name.
hasAnyAnnotation(Class<? extends Annotation>...) - Static method in class com.google.errorprone.matchers.Matchers
 
hasAnyAnnotation(List<? extends TypeMirror>) - Static method in class com.google.errorprone.matchers.Matchers
 
hasArguments(ChildMultiMatcher.MatchType, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches if the given matcher matches all of/any of the arguments to this method invocation.
HasArguments - Class in com.google.errorprone.matchers
Matches if the given matcher matches all of/any of the parameters to this method.
HasArguments(ChildMultiMatcher.MatchType, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.HasArguments
 
hasArgumentWithValue(String, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an Annotation AST node if the argument to the annotation with the given name has a value which matches the given matcher.
hasCompileTimeConstantAnnotation(VisitorState, Symbol) - Static method in class com.google.errorprone.matchers.CompileTimeConstantExpressionMatcher
 
hasDirectAnnotationWithSimpleName(Tree, String) - Static method in class com.google.errorprone.util.ASTHelpers
Check for the presence of an annotation with a specific simple name directly on this symbol.
hasDirectAnnotationWithSimpleName(Symbol.MethodSymbol, String) - Static method in class com.google.errorprone.util.ASTHelpers
 
hasDirectAnnotationWithSimpleName(Symbol.VarSymbol, String) - Static method in class com.google.errorprone.util.ASTHelpers
 
hasDirectAnnotationWithSimpleName(Symbol, String) - Static method in class com.google.errorprone.util.ASTHelpers
Check for the presence of an annotation with the given simple name directly on this symbol or its type.
hasEverythingDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
hasEverythingDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
hasEverythingDiff() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
.devtools.staticanalysis.errorprone.apidiff.EverythingDiff everything_diff = 1;
hasExplicitSource(Tree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether the given tree has an explicit source code representation.
hashCode() - Method in class com.google.errorprone.BugCheckerInfo
 
hashCode() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
 
hashCode() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
 
hashCode() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
 
hashCode() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
 
hashCode() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
 
hashCode() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
hashCode() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantEquals
 
hashCode() - Method in class com.google.errorprone.fixes.SuggestedFix
 
hashCode() - Method in class com.google.errorprone.refaster.Bindings.Key
 
hashCode() - Method in class com.google.errorprone.refaster.UTypeVar
 
hashCodeMethodDeclaration() - Static method in class com.google.errorprone.matchers.Matchers
Matches hashCode method declaration.
HashtableContains - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
HashtableContains() - Constructor for class com.google.errorprone.bugpatterns.HashtableContains
 
hasIdentifier(Matcher<IdentifierTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches any AST that contains an identifier with a certain property.
HasIdentifier - Class in com.google.errorprone.matchers
Matches if the given matcher matches all of the identifiers under this syntax tree.
HasIdentifier(Matcher<IdentifierTree>) - Constructor for class com.google.errorprone.matchers.HasIdentifier
 
hasImplicitType(VariableTree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether this is a var or a lambda parameter that has no explicit type.
hasInjectAnnotation() - Static method in class com.google.errorprone.matchers.InjectMatchers
 
hasJUnit4AfterAnnotations - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
hasJUnit4BeforeAnnotations - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
hasJUnit4TestCases - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Match a class which has one or more methods with a JUnit 4 @Test annotation.
hasJUnit4TestRunner - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
hasJUnitAnnotation(MethodTree, VisitorState) - Static method in class com.google.errorprone.matchers.JUnitMatchers
Checks if a method, or any overridden method, is annotated with any annotation from the org.junit package.
hasMemberDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
hasMemberDiff() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
hasMemberDiff() - Method in interface com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiffOrBuilder
.devtools.staticanalysis.errorprone.apidiff.MemberDiff member_diff = 2;
hasMethod(Matcher<MethodTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a class in which at least one method matches the given methodMatcher.
hasModifier(Modifier) - Static method in class com.google.errorprone.matchers.Matchers
Returns true if the Tree node has the expected Modifier.
hasName() - Method in class com.google.errorprone.util.ErrorProneToken
 
hasNoExplicitType(VariableTree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
hasNullableAnnotation(Symbol) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
 
hasOverloadWithOnlyOneParameter(Symbol.MethodSymbol, Name, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether existingMethod has an overload (or "nearly" an overload) with the given targetMethodName, and only a single parameter of type onlyParameterType.
hasProvidesAnnotation() - Static method in class com.google.errorprone.matchers.InjectMatchers
 
hasRadix() - Method in class com.google.errorprone.util.ErrorProneToken
 
hasSideEffect(ExpressionTree) - Static method in class com.google.errorprone.util.SideEffectAnalysis
Tries to establish whether expression is side-effect free.
hasSourceRetention(Element) - Static method in class com.google.errorprone.bugpatterns.inject.ElementPredicates
 
hasStringVal() - Method in class com.google.errorprone.util.ErrorProneToken
 
hasTestNgAnnotation(ClassTree) - Static method in class com.google.errorprone.matchers.TestNgMatchers
Checks if a class is annotated with any annotation from the org.testng package.
hasTestNgAnnotation(MethodTree, VisitorState) - Static method in class com.google.errorprone.matchers.TestNgMatchers
Checks if a method, or any overridden method, is annotated with any annotation from the org.testng package.
hasThreadSafeElementAnnotation(Symbol.TypeVariableSymbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Returns whether the given type parameter's declaration is annotated with ThreadSafety.containerOfAnnotation indicating its type-safety determines the type-safety of the outer class.
hasThreadSafeTypeParameterAnnotation(Symbol.TypeVariableSymbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Returns whether the given type parameter's declaration is annotated with ThreadSafety.typeParameterAnnotation indicating it will only ever be instantiated with thread-safe types.
heap() - Method in class com.google.errorprone.dataflow.AccessPathStore
 
HeldLockAnalyzer - Class in com.google.errorprone.bugpatterns.threadsafety
A method body analyzer.
HeldLockAnalyzer.ExpectedLockCalculator - Class in com.google.errorprone.bugpatterns.threadsafety
Utility for discovering the lock expressions that needs to be held when accessing specific guarded members.
HeldLockAnalyzer.LockEventListener - Interface in com.google.errorprone.bugpatterns.threadsafety
Listener interface for accesses to guarded members.
HidingField - Class in com.google.errorprone.bugpatterns
 
HidingField() - Constructor for class com.google.errorprone.bugpatterns.HidingField
 

I

ICCProfileGetInstance - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
ICCProfileGetInstance() - Constructor for class com.google.errorprone.bugpatterns.ICCProfileGetInstance
 
id() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ExternalCanIgnoreReturnValue
 
id() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.PackagesRule
 
id() - Method in class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
An ID for uniquely identifying this rule.
IDEA_ORGANIZER - Static variable in interface com.google.errorprone.apply.ImportOrganizer
An ImportOrganizer that organizes imports based on the default format provided by IntelliJ IDEA.
IdeaImportOrganizer - Class in com.google.errorprone.apply
Organizes imports based on the default format provided by IntelliJ IDEA.
IdeaImportOrganizer() - Constructor for class com.google.errorprone.apply.IdeaImportOrganizer
 
identifier() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiff.ClassMemberKey
The simple name of the member.
IDENTIFIER_FIELD_NUMBER - Static variable in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
 
IdentifierName - Class in com.google.errorprone.bugpatterns
Flags a few ways in which member names may violate the style guide.
IdentityBinaryExpression - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
IdentityBinaryExpression() - Constructor for class com.google.errorprone.bugpatterns.IdentityBinaryExpression
 
IdentityHashMapBoxing - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
IdentityHashMapBoxing() - Constructor for class com.google.errorprone.bugpatterns.IdentityHashMapBoxing
 
IdentityHashMapUsage - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
IdentityHashMapUsage() - Constructor for class com.google.errorprone.bugpatterns.IdentityHashMapUsage
 
identitySupplier(T) - Static method in class com.google.errorprone.suppliers.Suppliers
Supplies what was given.
IgnoredPureGetter - Class in com.google.errorprone.bugpatterns
Flags ignored return values from pure getters.
ignoreLargeCodeGenerators() - Method in class com.google.errorprone.ErrorProneOptions
 
ignoreParens(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Ignores any number of parenthesis wrapping an expression and then applies the passed matcher to that expression.
ignoreUnknownChecks() - Method in class com.google.errorprone.ErrorProneOptions
 
IllegalGuardedBy - Exception Class in com.google.errorprone.bugpatterns.threadsafety
An error that occurred during the parsing or binding of a GuardedBy expression.
IllegalGuardedBy(String) - Constructor for exception class com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
 
Immutable - Annotation Type in com.google.errorprone.annotations
The class to which this annotation is applied is immutable.
IMMUTABLE_COLLECTION - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
 
IMMUTABLE_MULTIMAP - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
 
ImmutableAnalysis - Class in com.google.errorprone.bugpatterns.threadsafety
Analyzes types for deep immutability.
ImmutableAnalysis.ViolationReporter - Interface in com.google.errorprone.bugpatterns.threadsafety
Accepts violations that are found during the analysis.
ImmutableAnnotationChecker - Class in com.google.errorprone.bugpatterns.threadsafety
A BugChecker; see the associated BugPattern annotation for details.
ImmutableChecker - Class in com.google.errorprone.bugpatterns.threadsafety
A BugChecker; see the associated BugPattern annotation for details.
ImmutableCollections - Class in com.google.errorprone.bugpatterns
Common utility functions for immutable collections.
ImmutableEnumChecker - Class in com.google.errorprone.bugpatterns.threadsafety
A BugChecker; see the associated BugPattern annotation for details.
ImmutableMemberCollection - Class in com.google.errorprone.bugpatterns
Refactoring to suggest Immutable types for member collection that are not mutated.
ImmutableMemberCollection() - Constructor for class com.google.errorprone.bugpatterns.ImmutableMemberCollection
 
ImmutableRefactoring - Class in com.google.errorprone.bugpatterns.threadsafety
A BugChecker; see the associated BugPattern annotation for details.
ImmutableSetForContains - Class in com.google.errorprone.bugpatterns
Refactoring to suggest using private static final ImmutableSet over ImmutableList when using only contains, containsAll and isEmpty.
ImmutableSetForContains() - Constructor for class com.google.errorprone.bugpatterns.ImmutableSetForContains
 
ImmutableTypeParameter - Annotation Type in com.google.errorprone.annotations
The type parameter to which this annotation is applied should only be instantiated with immutable types.
ImplementAssertionWithChaining - Class in com.google.errorprone.bugpatterns
Migrates Truth subjects from a manual "test and fail" approach to one using Subject.check(...).
ImplementAssertionWithChaining() - Constructor for class com.google.errorprone.bugpatterns.ImplementAssertionWithChaining
 
implementsEquals(Type, VisitorState) - Static method in class com.google.errorprone.bugpatterns.ReferenceEquality
Check if the method declares or inherits an implementation of .equals()
implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractToString
Constructs a fix for an implicit toString call, e.g.
implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AnnotationMirrorToString
 
implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AnnotationValueToString
 
implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayToString
 
implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LiteProtoToString
 
implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ObjectToString
 
implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StreamToString
 
implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SymbolToString
 
implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TreeToString
 
implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeToString
 
Import() - Constructor for class com.google.errorprone.apply.ImportOrganizer.Import
 
IMPORT_CLASS_DIRECTLY - Enum constant in enum com.google.errorprone.refaster.ImportPolicy
Import nested classes directly, and qualify static references from the class level.
IMPORT_TOP_LEVEL - Enum constant in enum com.google.errorprone.refaster.ImportPolicy
Import the outermost class and explicitly qualify references below that.
importedName() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
The fully qualified name used to import the type (possibly non-canonical).
ImportOrderParser - Class in com.google.errorprone
Parse import order strings.
ImportOrganizer - Interface in com.google.errorprone.apply
Organizes import statements when patching files.
ImportOrganizer.Import - Class in com.google.errorprone.apply
Represents an import.
ImportOrganizer.OrganizedImports - Class in com.google.errorprone.apply
Provides support for building a list of imports from groups and formatting it as a block of imports.
importPolicy() - Method in class com.google.errorprone.refaster.Inliner
 
ImportPolicy - Enum in com.google.errorprone.refaster
Policy specifying when and how to import classes when inlining types.
imports() - Element in annotation type com.google.errorprone.annotations.InlineMe
The new imports to (optionally) add to the caller.
importsHaveChanged() - Method in class com.google.errorprone.apply.ImportStatements
 
importStatement() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
Builds the canonical import statement for the type.
ImportStatements - Class in com.google.errorprone.apply
Represents a list of import statements.
ImpossibleNullComparison - Class in com.google.errorprone.bugpatterns
Matches comparison of proto fields to null.
Incomparable - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
Incomparable() - Constructor for class com.google.errorprone.bugpatterns.Incomparable
 
IncompatibleArgumentType - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
 
IncompatibleModifiers - Annotation Type in com.google.errorprone.annotations
Annotation declaring that the target annotation is incompatible with any one of the provided modifiers.
IncompatibleModifiersChecker - Class in com.google.errorprone.bugpatterns
 
IncompatibleModifiersChecker() - Constructor for class com.google.errorprone.bugpatterns.IncompatibleModifiersChecker
 
InconsistentCapitalization - Class in com.google.errorprone.bugpatterns
Checker for variables under the same scope that only differ in capitalization.
InconsistentCapitalization() - Constructor for class com.google.errorprone.bugpatterns.InconsistentCapitalization
 
InconsistentHashCode - Class in com.google.errorprone.bugpatterns
Looks for hashCode implementations which are inconsistent with equals.
InconsistentHashCode() - Constructor for class com.google.errorprone.bugpatterns.InconsistentHashCode
 
InconsistentOverloads - Class in com.google.errorprone.bugpatterns.overloading
A BugChecker that detects inconsistently overloaded methods in Java classes.
InconsistentOverloads() - Constructor for class com.google.errorprone.bugpatterns.overloading.InconsistentOverloads
 
IncorrectMainMethod - Class in com.google.errorprone.bugpatterns
Bugpattern for incorrect overloads of main.
IncorrectMainMethod() - Constructor for class com.google.errorprone.bugpatterns.IncorrectMainMethod
 
incrementCounter(BugChecker, String) - Method in class com.google.errorprone.VisitorState
Increment the counter for a combination of bugChecker's canonical name and key by 1.
incrementCounter(BugChecker, String, int) - Method in class com.google.errorprone.VisitorState
Increment the counter for a combination of bugChecker's canonical name and key by count.
incrementCounter(String) - Method in interface com.google.errorprone.StatisticsCollector
Adds 1 to the counter for key.
incrementCounter(String, int) - Method in interface com.google.errorprone.StatisticsCollector
Adds count to the counter for key.
IncrementInForLoopAndHeader - Class in com.google.errorprone.bugpatterns
 
IncrementInForLoopAndHeader() - Constructor for class com.google.errorprone.bugpatterns.IncrementInForLoopAndHeader
 
IndexedPosition - Class in com.google.errorprone.fixes
Describes a position that only has a start and end index.
IndexedPosition(int, int) - Constructor for class com.google.errorprone.fixes.IndexedPosition
 
IndexOfChar - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
IndexOfChar() - Constructor for class com.google.errorprone.bugpatterns.IndexOfChar
 
InexactVarargsConditional - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
InexactVarargsConditional() - Constructor for class com.google.errorprone.bugpatterns.InexactVarargsConditional
 
infer() - Method in class com.google.errorprone.refaster.Inliner
 
InferredNullability - Class in com.google.errorprone.dataflow.nullnesspropagation.inference
Results of running NullnessQualifierInference over a method.
InfiniteRecursion - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
InfiniteRecursion() - Constructor for class com.google.errorprone.bugpatterns.InfiniteRecursion
 
InheritDoc - Class in com.google.errorprone.bugpatterns.javadoc
Matches invalid usage of @inheritDoc.
InheritDoc() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InheritDoc
 
init(JavacTask, String...) - Method in class com.google.errorprone.ErrorProneJavacPlugin
 
init(JavacTask, String...) - Method in class com.google.errorprone.refaster.RefasterRuleCompiler
 
init(ProcessingEnvironment) - Method in class com.google.errorprone.DocGenProcessor
initializationTime() - Method in class com.google.errorprone.ErrorProneTimings
Returns the elapsed initialization time.
initializationTimeSpan() - Method in class com.google.errorprone.ErrorProneTimings
Creates a timing span for initialization.
InitializeInline - Class in com.google.errorprone.bugpatterns
Bugpattern to encourage initializing effectively final variables inline with their declaration, if possible.
InitializeInline() - Constructor for class com.google.errorprone.bugpatterns.InitializeInline
 
InjectedConstructorAnnotations - Class in com.google.errorprone.bugpatterns.inject
A checker for injected constructors with @Inject(optional=true) or binding annotations.
InjectedConstructorAnnotations() - Constructor for class com.google.errorprone.bugpatterns.inject.InjectedConstructorAnnotations
 
InjectMatchers - Class in com.google.errorprone.matchers
Utility constants and matchers related to dependency injection.
InjectOnBugCheckers - Class in com.google.errorprone.bugpatterns
A BugPattern; see the summary.
InjectOnBugCheckers() - Constructor for class com.google.errorprone.bugpatterns.InjectOnBugCheckers
 
InjectOnConstructorOfAbstractClass - Class in com.google.errorprone.bugpatterns.inject
 
InjectOnConstructorOfAbstractClass() - Constructor for class com.google.errorprone.bugpatterns.inject.InjectOnConstructorOfAbstractClass
 
InjectOnFinalField - Class in com.google.errorprone.bugpatterns.inject.guice
 
InjectOnFinalField() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.InjectOnFinalField
 
InjectOnMemberAndConstructor - Class in com.google.errorprone.bugpatterns.inject
Checks if class constructor and members are both annotated as @Inject.
InjectOnMemberAndConstructor() - Constructor for class com.google.errorprone.bugpatterns.inject.InjectOnMemberAndConstructor
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UExpression
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UTree
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UType
 
inline(Inliner) - Method in class com.google.errorprone.refaster.StringName
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UAnyOf
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UClassType
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UForAll
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UFreeIdent
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UIntersectionClassType
 
inline(Inliner) - Method in class com.google.errorprone.refaster.ULiteral
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UMemberSelect
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UMethodIdent
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UMethodInvocation
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UMethodType
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UPlaceholderExpression
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UReturn
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UStaticIdent
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UTypeVar
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UTypeVar.TypeWithExpression
 
inline(Inliner) - Method in class com.google.errorprone.refaster.UVariableDecl
 
inlineAsTree(Type) - Method in class com.google.errorprone.refaster.Inliner
Inlines the syntax tree representing the specified type.
inlineAsVar(UTypeVar) - Method in class com.google.errorprone.refaster.Inliner
 
InlineFormatString - Class in com.google.errorprone.bugpatterns.formatstring
A BugChecker; see the associated BugPattern annotation for details.
InlineFormatString() - Constructor for class com.google.errorprone.bugpatterns.formatstring.InlineFormatString
 
inlineImplicitType(Inliner) - Method in class com.google.errorprone.refaster.UVariableDecl
 
inlineList(Iterable<? extends Inlineable<? extends R>>) - Method in class com.google.errorprone.refaster.Inliner
 
InlineMe - Annotation Type in com.google.errorprone.annotations
Indicates that callers of this API should be inlined.
InlineMeValidationDisabled - Annotation Type in com.google.errorprone.annotations
An annotation that disables validation of the InlineMe annotation's correctness (i.e.: that it accurately represents an inlining of the annotated method).
Inliner - Class in com.google.errorprone.bugpatterns.inlineme
Checker that performs the inlining at call-sites (where the invoked APIs are annotated as @InlineMe).
Inliner - Class in com.google.errorprone.refaster
A context representing all the dependencies necessary to reconstruct a pretty-printable source tree from a UTree based on a set of substitutions.
Inliner(Context, Bindings) - Constructor for class com.google.errorprone.refaster.Inliner
 
inlineStatements(Inliner) - Method in class com.google.errorprone.refaster.UReturn
 
inlineStatements(Inliner) - Method in class com.google.errorprone.refaster.UVariableDecl
 
inlineStatements(Inliner) - Method in interface com.google.errorprone.refaster.UStatement
 
InlineTrivialConstant - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
InlineTrivialConstant() - Constructor for class com.google.errorprone.bugpatterns.InlineTrivialConstant
 
inLoop() - Static method in class com.google.errorprone.matchers.Matchers
Matches if the given tree is inside a loop.
InputStreamSlowMultibyteRead - Class in com.google.errorprone.bugpatterns
Checks that InputStreams should override int read(byte[], int, int);
InputStreamSlowMultibyteRead() - Constructor for class com.google.errorprone.bugpatterns.InputStreamSlowMultibyteRead
 
inSamePackage(Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Return true if the given symbol is defined in the current package.
InsecureCipherMode - Class in com.google.errorprone.bugpatterns
 
InsecureCipherMode() - Constructor for class com.google.errorprone.bugpatterns.InsecureCipherMode
 
INSIDE_GUICE_MODULE - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
instance() - Static method in class com.google.errorprone.matchers.CompileTimeConstantExpressionMatcher
 
instance(Context) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnalysis
Retrieve an instance of NullnessAnalysis from the context.
instance(Context) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
Retrieve an instance of TrustingNullnessAnalysis from the context.
instance(Context) - Static method in class com.google.errorprone.ErrorProneTimings
 
instance(Context) - Static method in class com.google.errorprone.JavacInvocationInstance
 
instance(Context) - Static method in enum com.google.errorprone.refaster.ImportPolicy
 
INSTANCE - Enum constant in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.MethodKind
 
INSTANCE - Enum constant in enum com.google.errorprone.predicates.type.Array
 
INSTANCE - Static variable in class com.google.errorprone.refaster.ControlFlowVisitor
 
instanceEqualsInvocation() - Static method in class com.google.errorprone.matchers.Matchers
Matches calls to the method Object.equals(Object) or any override of that method.
instanceField(String, String) - Static method in class com.google.errorprone.matchers.FieldMatchers
 
instanceHashCodeInvocation() - Static method in class com.google.errorprone.matchers.Matchers
Matches calls to the method Object.hashCode() or any override of that method.
instanceMethod() - Static method in class com.google.errorprone.matchers.Matchers
Matches an instance method.
instanceMethod() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
 
InstanceOfAndCastMatchWrongType - Class in com.google.errorprone.bugpatterns
 
InstanceOfAndCastMatchWrongType() - Constructor for class com.google.errorprone.bugpatterns.InstanceOfAndCastMatchWrongType
 
InstantTemporalUnit - Class in com.google.errorprone.bugpatterns.time
Bans calls to Instant APIs where the TemporalUnit is not one of: NANOS, MICROS, MILLIS, SECONDS, MINUTES, HOURS, HALF_DAYS, or DAYS.
InstantTemporalUnit() - Constructor for class com.google.errorprone.bugpatterns.time.InstantTemporalUnit
 
inSynchronized() - Static method in class com.google.errorprone.matchers.Matchers
Matches if this Tree is enclosed by either a synchronized block or a synchronized method.
INT_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
InterfaceWithOnlyStatics - Class in com.google.errorprone.bugpatterns
Bugpattern to detect interfaces used only to store static fields/methods.
InterfaceWithOnlyStatics() - Constructor for class com.google.errorprone.bugpatterns.InterfaceWithOnlyStatics
 
internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
 
internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
 
internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
 
internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
 
internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
internalGetFieldAccessorTable() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
 
InterruptedExceptionSwallowed - Class in com.google.errorprone.bugpatterns
Checks for cases where an InterruptedException is caught as part of a catch block catching a supertype, and not specially handled.
InterruptedExceptionSwallowed() - Constructor for class com.google.errorprone.bugpatterns.InterruptedExceptionSwallowed
 
Interruption - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
Interruption() - Constructor for class com.google.errorprone.bugpatterns.Interruption
 
intLit(int) - Static method in class com.google.errorprone.refaster.ULiteral
 
intLiteral(int) - Static method in class com.google.errorprone.matchers.Matchers
 
IntLongMath - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
IntLongMath() - Constructor for class com.google.errorprone.bugpatterns.IntLongMath
 
InvalidBlockTag - Class in com.google.errorprone.bugpatterns.javadoc
Matches invalid Javadoc tags, and tries to suggest fixes.
InvalidBlockTag() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidBlockTag
 
InvalidCommandLineOptionException - Exception Class in com.google.errorprone
 
InvalidCommandLineOptionException(String) - Constructor for exception class com.google.errorprone.InvalidCommandLineOptionException
 
InvalidInlineTag - Class in com.google.errorprone.bugpatterns.javadoc
Matches invalid Javadoc tags, and tries to suggest fixes.
InvalidInlineTag() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidInlineTag
 
InvalidJavaTimeConstant - Class in com.google.errorprone.bugpatterns.time
This checker errors on calls to java.time methods using values that are guaranteed to throw a DateTimeException.
InvalidJavaTimeConstant() - Constructor for class com.google.errorprone.bugpatterns.time.InvalidJavaTimeConstant
 
InvalidLink - Class in com.google.errorprone.bugpatterns.javadoc
Finds some common errors in @link tags.
InvalidLink() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidLink
 
InvalidParam - Class in com.google.errorprone.bugpatterns.javadoc
Matches incorrect Javadoc @param tags.
InvalidParam() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidParam
 
InvalidPatternSyntax - Class in com.google.errorprone.bugpatterns
 
InvalidPatternSyntax() - Constructor for class com.google.errorprone.bugpatterns.InvalidPatternSyntax
 
InvalidTargetingOnScopingAnnotation - Class in com.google.errorprone.bugpatterns.inject
 
InvalidTargetingOnScopingAnnotation() - Constructor for class com.google.errorprone.bugpatterns.inject.InvalidTargetingOnScopingAnnotation
 
InvalidThrows - Class in com.google.errorprone.bugpatterns.javadoc
Matches errors in Javadoc @throws tags.
InvalidThrows() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidThrows
 
InvalidThrowsLink - Class in com.google.errorprone.bugpatterns.javadoc
Matches misuse of link tags within throws tags.
InvalidThrowsLink() - Constructor for class com.google.errorprone.bugpatterns.javadoc.InvalidThrowsLink
 
InvalidTimeZoneID - Class in com.google.errorprone.bugpatterns
 
InvalidTimeZoneID() - Constructor for class com.google.errorprone.bugpatterns.InvalidTimeZoneID
 
InvalidZoneId - Class in com.google.errorprone.bugpatterns
Validates ZoneId.
InvalidZoneId() - Constructor for class com.google.errorprone.bugpatterns.InvalidZoneId
 
invocationResultIgnored(String, String, String) - Static method in class com.google.errorprone.bugpatterns.checkreturnvalue.ErrorMessages
Error message for when the result of a method or constructor invocation is ignored, and the ResultUsePolicy of the invoked method or constructor evaluates to ResultUsePolicy.EXPECTED.
IS_APPLICATION_OF_AT_INJECT - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_APPLICATION_OF_GUICE_INJECT - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_APPLICATION_OF_JAVAX_INJECT - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_BINDING_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_DAGGER_COMPONENT - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_DAGGER_COMPONENT_OR_MODULE - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_INTERFACE - Static variable in class com.google.errorprone.matchers.Matchers
 
IS_SCOPING_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
isAbstract(Symbol.MethodSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the given method symbol is abstract.
isAllowed(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
Returns true if the given expression is allowed to have an unused return value based on its context.
isAmbiguousJUnitVersion - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Matches classes which have attributes of both JUnit 3 and 4 classes.
isAndroidCompatible() - Method in class com.google.errorprone.VisitorState
Returns true if the compilation is targeting Android.
isAnnotation(VisitorState, Type) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
Returns true if the type is an annotation.
isAnyModule() - Static method in class com.google.errorprone.bugpatterns.inject.dagger.DaggerAnnotations
 
isArray() - Static method in class com.google.errorprone.predicates.TypePredicates
Match arrays.
isArrayType() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its type is an array type.
isAtLeastAsRestrictiveAs(Visibility) - Method in enum com.google.errorprone.util.Visibility
 
isAutoValueAccessor(Tree) - Static method in class com.google.errorprone.dataflow.AccessPath
Check whether tree is an AutoValue accessor.
isBadType(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractAsKeyOfSetOrMap
 
isBadType(Type, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayAsKeyOfSetOrMap
 
isBoxedPrimitiveType() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its type is a boxed primitive type.
isBugCheckerCode(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the code is in a BugChecker class.
isCanonical() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
Returns whether the import is canonical, i.e.
isCastable(Type, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if erasure(s) is castable to erasure(t).
isCheckedExceptionType(Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if t is a subtype of Throwable but not a subtype of RuntimeException or Error.
isCompatible() - Method in class com.google.errorprone.bugpatterns.TypeCompatibility.TypeCompatibilityReport
 
isConcreteClassWithoutRunWith - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Match a class which appears to be missing a @RunWith annotation.
isConsideredFinal(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether symbol is final or effectively final.
isCovered(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
 
isCovered(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
 
isCovered(E, C) - Method in interface com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicyAnalyzer
Returns whether this checker makes any determination about whether the given expression's return value should be used or not.
isDeprecated() - Method in class com.google.errorprone.util.ErrorProneComment
We don't care about @deprecated javadoc tags (see the DepAnn check).
isDescendantOf(Supplier<Type>) - Static method in class com.google.errorprone.predicates.TypePredicates
Match sub-types of the given type.
isDescendantOf(String) - Static method in class com.google.errorprone.predicates.TypePredicates
Match sub-types of the given type.
isDescendantOfAny(Iterable<String>) - Static method in class com.google.errorprone.predicates.TypePredicates
Match types that are a sub-type of one of the given types.
isDirectImplementationOf(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches any node that is directly an implementation, but not extension, of the given Class.
isDisableAllChecks() - Method in class com.google.errorprone.ErrorProneOptions
 
isDisableAllWarnings() - Method in class com.google.errorprone.ErrorProneOptions
 
isDropErrorsToWarnings() - Method in class com.google.errorprone.ErrorProneOptions
 
isEffectivelyPrivate(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether this symbol or any of its owners are private.
isEmpty() - Method in class com.google.errorprone.apply.DescriptionBasedDiff
 
isEmpty() - Method in class com.google.errorprone.ErrorProneFlags
Whether this Flags object is empty, i.e.
isEmpty() - Method in interface com.google.errorprone.fixes.Fix
 
isEmpty() - Method in class com.google.errorprone.fixes.Replacements
 
isEmpty() - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
isEmpty() - Method in class com.google.errorprone.fixes.SuggestedFix
 
isEnableAllChecksAsWarnings() - Method in class com.google.errorprone.ErrorProneOptions
 
isEnum() - Static method in class com.google.errorprone.matchers.Matchers
Matches if a ClassTree is an enum declaration.
isExactType(Supplier<Type>) - Static method in class com.google.errorprone.predicates.TypePredicates
Match types that are exactly equal.
isExactType(String) - Static method in class com.google.errorprone.predicates.TypePredicates
Match types that are exactly equal.
isExactTypeAny(Iterable<String>) - Static method in class com.google.errorprone.predicates.TypePredicates
Match types that are exactly equal to any of the given types.
isExtensionOf(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches any node that is a direct extension of the given class.
isField() - Static method in class com.google.errorprone.matchers.Matchers
Matches if a VariableTree is a field declaration, as opposed to a local variable, enum constant, parameter to a method, etc.
isFinal(Symbol) - Static method in class com.google.errorprone.bugpatterns.BoxedPrimitiveEquality
 
isFinalField(Element) - Static method in class com.google.errorprone.bugpatterns.inject.ElementPredicates
 
isFirstConstructorOfMultiInjectedClass(Element) - Static method in class com.google.errorprone.bugpatterns.inject.ElementPredicates
 
isGeneratedConstructor(MethodTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the given tree is a generated constructor.
isGuardedByValid(Tree, VisitorState, GuardedByFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils
 
isHigher(OperatorPrecedence) - Method in enum com.google.errorprone.util.OperatorPrecedence
 
isIgnoreSuppressionAnnotations() - Method in class com.google.errorprone.ErrorProneOptions
 
isImmutableType(Type) - Static method in class com.google.errorprone.bugpatterns.ImmutableCollections
 
isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff.Builder
 
isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassDiff
 
isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember.Builder
 
isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.ClassMember
 
isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff.Builder
 
isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.Diff
 
isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff.Builder
 
isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.EverythingDiff
 
isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff.Builder
 
isInitialized() - Method in class com.google.errorprone.bugpatterns.apidiff.ApiDiffProto.MemberDiff
 
isInstance(Class<?>) - Static method in class com.google.errorprone.matchers.Matchers
Matches if an AST node is an instance of the given class.
isInstance(Object) - Static method in class com.google.errorprone.refaster.Refaster
This is a placeholder for the Java instanceof operator that can be used with Refaster type variables.
isInstanceField() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node that represents a non-static field.
IsInstanceIncompatibleType - Class in com.google.errorprone.bugpatterns
 
IsInstanceIncompatibleType() - Constructor for class com.google.errorprone.bugpatterns.IsInstanceIncompatibleType
 
IsInstanceOfClass - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
IsInstanceOfClass() - Constructor for class com.google.errorprone.bugpatterns.IsInstanceOfClass
 
isInStaticInitializer(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Attempts to detect whether we're in a static-initializer-like context: that includes direct assignments to static fields, assignments to enum fields, being contained within an expression which is ultimately assigned to a static field.
isJunit3TestCase - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Match a method which appears to be a JUnit 3 test case.
isJUnit3TestClass - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Match a class which appears to be a JUnit 3 test class.
isJUnit4TestClass - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Matches classes which have attributes of only JUnit4 test classes.
isJUnit4TestRunnerOfType(Iterable<String>) - Static method in class com.google.errorprone.matchers.JUnitMatchers
Matches an argument of type Class<T>, where T is a subtype of one of the test runners listed in the TEST_RUNNERS field.
isJUnitTestCode(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the leaf node in the TreePath from state sits somewhere underneath a class or method that is marked as JUnit 3 or 4 test code.
isKnownNonNullReturning() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
isKotlin(Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if this symbol was declared in Kotlin source.
isLastStatementInBlock() - Static method in class com.google.errorprone.matchers.Matchers
Matches a statement AST node if the statement is the last statement in the block.
isLocal(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the symbol is directly or indirectly local to a method or variable initializer; see Symbol#isLocal or Symbol#isDirectlyOrIndirectlyLocal.
IsLoggableTagLength - Class in com.google.errorprone.bugpatterns.android
 
IsLoggableTagLength() - Constructor for class com.google.errorprone.bugpatterns.android.IsLoggableTagLength
 
isMoreVisibleThan(Visibility) - Method in enum com.google.errorprone.util.Visibility
 
isNonNull() - Static method in class com.google.errorprone.matchers.Matchers
Deprecated.
IsNonNullMatcher - Class in com.google.errorprone.matchers
Matches expressions that can be statically determined to be non-null.
IsNonNullMatcher() - Constructor for class com.google.errorprone.matchers.IsNonNullMatcher
 
isNonNullUsingDataflow() - Static method in class com.google.errorprone.matchers.Matchers
Matches if the expression is provably non-null.
isNull() - Static method in class com.google.errorprone.matchers.Matchers
Deprecated.
isNullUsingDataflow() - Static method in class com.google.errorprone.matchers.Matchers
Matches if the expression is provably null.
isPresent() - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
Returns true if a violation was found.
isPrimitive() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
isPrimitiveArrayType() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its type is a primitive array type.
isPrimitiveOrBoxedPrimitiveType() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its type is a primitive type, or a boxed version of a primitive type.
isPrimitiveOrVoidType() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its type is either a primitive type or a void type.
isPrimitiveType() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its type is a primitive type.
isProto2MessageClass(VisitorState, Type) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
Compile-time equivalent of com.google.io.protocol.ProtocolSupport#isProto2MessageClass.
isProto2MutableMessageClass(VisitorState, Type) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
Compile-time equivalent of com.google.io.protocol.ProtocolSupport#isProto2MutableMessageClass.
isProtoEnum(VisitorState, Type) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
 
isPubliclyVisibleTarget() - Method in class com.google.errorprone.ErrorProneOptions
 
isRecord(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether the given Symbol is a record, a record's canonical constructor or a member that is part of a record's state vector.
isRemoveLine() - Method in class com.google.errorprone.fixes.AppliedFix
 
isReturnValueUnused(ExpressionTree, VisitorState) - Static method in class com.google.errorprone.matchers.UnusedReturnValueMatcher
Returns true if and only if the given tree is an invocation of or reference to a constructor or non-void method for which the return value is considered unused.
isRuleKind(CaseTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the given CaseTree is in the form: case <expression> -> <expression>.
isSame(Tree) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node which is the same object reference as the given node.
isSameType(Supplier<Type>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if it has the same erased type as the given type.
isSameType(Type, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if erasure(s) == erasure(t).
isSameType(Class<?>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if it has the same erased type as the given class.
isSameType(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if it has the same erased type as the given type.
IsSameType<T> - Class in com.google.errorprone.matchers
Matches an AST node if its erased type is the same as the given type, e.g.
IsSameType(Supplier<Type>) - Constructor for class com.google.errorprone.matchers.IsSameType
 
IsSameType(String) - Constructor for class com.google.errorprone.matchers.IsSameType
 
isStatic() - Method in class com.google.errorprone.apply.ImportOrganizer.Import
True if the import is static, false otherwise.
isStatic() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
isStatic() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node that is static.
isStatic(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the symbol is static.
isSubtype(Type, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if erasure(s) <: erasure(t).
isSubtypeOf(Supplier<Type>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its type is a subtype of the given type.
isSubtypeOf(Class<?>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its type is a subtype of the given type.
isSubtypeOf(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its type is a subtype of the given type.
IsSubtypeOf<T> - Class in com.google.errorprone.matchers
 
IsSubtypeOf(Supplier<Type>) - Constructor for class com.google.errorprone.matchers.IsSubtypeOf
 
IsSubtypeOf(String) - Constructor for class com.google.errorprone.matchers.IsSubtypeOf
 
isSuggestionsAsWarnings() - Method in class com.google.errorprone.ErrorProneOptions
 
isSuper(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
 
isSupportedOption(String) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
isSupportedOption(String) - Static method in class com.google.errorprone.ErrorProneOptions
isSuppressed(Suppressible, ErrorProneOptions, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
Returns if this checker should be suppressed on the current tree path.
isSuppressed(Tree) - Method in class com.google.errorprone.bugpatterns.BugChecker
isSuppressed(Tree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BugChecker
Returns true if the given tree is annotated with a @SuppressWarnings that disables this bug checker.
isSuppressed(Symbol) - Method in class com.google.errorprone.bugpatterns.BugChecker
isSuppressed(Symbol, VisitorState) - Method in class com.google.errorprone.bugpatterns.BugChecker
Returns true if the given symbol is annotated with a @SuppressWarnings or other annotation that disables this bug checker.
isTestCaseDescendant - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Matches a class that inherits from TestCase.
isTestNgTestCode(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the leaf node in the TreePath from state sits somewhere underneath a class or method that is marked as TestNG test code.
isTestOnlyTarget() - Method in class com.google.errorprone.ErrorProneOptions
 
isThreadSafeType(boolean, Set<String>, Type) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Returns an ThreadSafety.Violation explaining whether the type is threadsafe.
isThrowingFunctionalInterface(Type, VisitorState) - Static method in class com.google.errorprone.matchers.Matchers
 
isTransient() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node that is transient.
isType(String) - Static method in class com.google.errorprone.matchers.Matchers
 
isValidName() - Method in enum com.google.errorprone.bugpatterns.TypeParameterNaming.TypeParameterNamingClassification
 
isVariable() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node that represents a local variable or parameter.
isVoidType() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its type is a void type.
isVoidType(Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Return true if the given type is 'void' or 'Void'.
ITERABLE - Enum constant in enum com.google.errorprone.bugpatterns.TypesWithUndefinedEquality
 
IterableAndIterator - Class in com.google.errorprone.bugpatterns
 
IterableAndIterator() - Constructor for class com.google.errorprone.bugpatterns.IterableAndIterator
 
IterablePathParameter - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
IterablePathParameter() - Constructor for class com.google.errorprone.bugpatterns.IterablePathParameter
 
iterator() - Method in class com.google.errorprone.refaster.Choice
 

J

JAVA_LANG_BOOLEAN_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
JAVA_LANG_INTEGER_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
JAVA_LANG_LONG_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
JAVA_LANG_VOID_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
Java7ApiChecker - Class in com.google.errorprone.bugpatterns.apidiff
Checks for uses of classes, fields, or methods that are not compatible with JDK 7
Java7ApiChecker() - Constructor for class com.google.errorprone.bugpatterns.apidiff.Java7ApiChecker
 
Java8ApiChecker - Class in com.google.errorprone.bugpatterns.apidiff
Checks for uses of classes, fields, or methods that are not compatible with JDK 8
JavacErrorDescriptionListener - Class in com.google.errorprone
Making our errors appear to the user and break their build.
javaCharEscaper() - Static method in class com.google.errorprone.util.SourceCodeEscapers
Returns an Escaper instance that escapes special characters in a string so it can safely be included in either a Java character literal or string literal.
JavacInvocationInstance - Class in com.google.errorprone
A token uniquely identifying a single invocation of javac.
JAVADOC_BLOCK - Enum constant in enum com.google.errorprone.util.ErrorProneComment.ErrorProneCommentStyle
 
JAVADOC_LINE - Enum constant in enum com.google.errorprone.util.ErrorProneComment.ErrorProneCommentStyle
 
JavaDurationGetSecondsGetNano - Class in com.google.errorprone.bugpatterns.time
This checker warns about calls to duration.getNano() without a corresponding "nearby" call to duration.getSeconds().
JavaDurationGetSecondsGetNano() - Constructor for class com.google.errorprone.bugpatterns.time.JavaDurationGetSecondsGetNano
 
JavaDurationGetSecondsToToSeconds - Class in com.google.errorprone.bugpatterns.time
Error prone checking for Duration.getSeconds() without Duration.getNano().
JavaDurationGetSecondsToToSeconds() - Constructor for class com.google.errorprone.bugpatterns.time.JavaDurationGetSecondsToToSeconds
 
JavaDurationWithNanos - Class in com.google.errorprone.bugpatterns.time
Check for calls to duration.withNanos(int).
JavaDurationWithNanos() - Constructor for class com.google.errorprone.bugpatterns.time.JavaDurationWithNanos
 
JavaDurationWithSeconds - Class in com.google.errorprone.bugpatterns.time
Check for calls to duration.withSeconds(long).
JavaDurationWithSeconds() - Constructor for class com.google.errorprone.bugpatterns.time.JavaDurationWithSeconds
 
JavaInstantGetSecondsGetNano - Class in com.google.errorprone.bugpatterns.time
This checker warns about calls to instant.getNano() without a corresponding "nearby" call to instant.getEpochSecond().
JavaInstantGetSecondsGetNano() - Constructor for class com.google.errorprone.bugpatterns.time.JavaInstantGetSecondsGetNano
 
JavaLangClash - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
JavaLangClash() - Constructor for class com.google.errorprone.bugpatterns.JavaLangClash
 
JavaLocalDateTimeGetNano - Class in com.google.errorprone.bugpatterns.time
This checker warns about calls to LocalDateTime.getNano() without a corresponding "nearby" call to LocalDateTime.getSecond().
JavaLocalDateTimeGetNano() - Constructor for class com.google.errorprone.bugpatterns.time.JavaLocalDateTimeGetNano
 
JavaLocalTimeGetNano - Class in com.google.errorprone.bugpatterns.time
This checker warns about calls to LocalTime.getNano() without a corresponding "nearby" call to LocalTime.getSecond().
JavaLocalTimeGetNano() - Constructor for class com.google.errorprone.bugpatterns.time.JavaLocalTimeGetNano
 
JavaPeriodGetDays - Class in com.google.errorprone.bugpatterns.time
This checker warns about calls to period.getDays() without a corresponding "nearby" call to period.getYears(), period.getMonths(), or period.getTotalMonths().
JavaPeriodGetDays() - Constructor for class com.google.errorprone.bugpatterns.time.JavaPeriodGetDays
 
JavaTimeDefaultTimeZone - Class in com.google.errorprone.bugpatterns.time
Check for calls to java.time APIs that silently use the default system time-zone.
JavaTimeDefaultTimeZone() - Constructor for class com.google.errorprone.bugpatterns.time.JavaTimeDefaultTimeZone
 
JavaUtilDateChecker - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
JavaUtilDateChecker() - Constructor for class com.google.errorprone.bugpatterns.JavaUtilDateChecker
 
JAVAX_INJECT_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
JAVAX_QUALIFIER_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
JAVAX_SCOPE_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
JavaxInjectOnAbstractMethod - Class in com.google.errorprone.bugpatterns.inject
 
JavaxInjectOnAbstractMethod() - Constructor for class com.google.errorprone.bugpatterns.inject.JavaxInjectOnAbstractMethod
 
JavaxInjectOnFinalField - Class in com.google.errorprone.bugpatterns.inject
 
JavaxInjectOnFinalField() - Constructor for class com.google.errorprone.bugpatterns.inject.JavaxInjectOnFinalField
 
JdkObsolete - Class in com.google.errorprone.bugpatterns
A BugChecker; see the associated BugPattern annotation for details.
JdkObsolete() - Constructor for class com.google.errorprone.bugpatterns.JdkObsolete
 
JodaConstructors - Class in com.google.errorprone.bugpatterns.time
Check for calls to bad JodaTime constructors.
JodaConstructors() - Constructor for class com.google.errorprone.bugpatterns.time.JodaConstructors
 
JodaDateTimeConstants - Class in com.google.errorprone.bugpatterns.time
Checks for usages of dangerous DateTimeConstants constants.
JodaDateTimeConstants() - Constructor for class com.google.errorprone.bugpatterns.time.JodaDateTimeConstants
 
JodaDurationWithMillis - Class in com.google.errorprone.bugpatterns.time
Check for calls to duration.withMillis(long).
JodaDurationWithMillis() - Constructor for class com.google.errorprone.bugpatterns.time.JodaDurationWithMillis
 
JodaInstantWithMillis - Class in com.google.errorprone.bugpatterns.time
Check for calls to instant.withMillis(long).
JodaInstantWithMillis() - Constructor for class com.google.errorprone.bugpatterns.time.JodaInstantWithMillis
 
JodaNewPeriod - Class in com.google.errorprone.bugpatterns.time
Match possibly incorrect use of Period to obtain a number of (e.g.) days between two dates.
JodaNewPeriod() - Constructor for class com.google.errorprone.bugpatterns.time.JodaNewPeriod
 
JodaPlusMinusLong - Class in com.google.errorprone.bugpatterns.time
Check for calls to JodaTime's type.plus(long) and type.minus(long) where <type> = {Duration,Instant,DateTime,DateMidnight}.
JodaPlusMinusLong() - Constructor for class com.google.errorprone.bugpatterns.time.JodaPlusMinusLong
 
JodaTimeConverterManager - Class in com.google.errorprone.bugpatterns.time
Ban usage of Joda's ConverterManager.
JodaTimeConverterManager() - Constructor for class com.google.errorprone.bugpatterns.time.JodaTimeConverterManager
 
JodaToSelf - Class in com.google.errorprone.bugpatterns.time
Check for calls to Joda-Time's foo.toFoo() and new Foo(foo).
JodaToSelf() - Constructor for class com.google.errorprone.bugpatterns.time.JodaToSelf
 
JodaWithDurationAddedLong - Class in com.google.errorprone.bugpatterns.time
Check for calls to JodaTime's type.withDurationAdded(long, int) where <type> = {Duration,Instant,DateTime}.
JodaWithDurationAddedLong() - Constructor for class com.google.errorprone.bugpatterns.time.JodaWithDurationAddedLong
 
JUNIT_AFTER_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
JUNIT_AFTER_CLASS_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
JUNIT_BEFORE_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
JUNIT_BEFORE_CLASS_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
JUnit3FloatingPointComparisonWithoutDelta - Class in com.google.errorprone.bugpatterns
Detects floating-point assertEquals() calls that will not work in JUnit 4.
JUnit3FloatingPointComparisonWithoutDelta() - Constructor for class com.google.errorprone.bugpatterns.JUnit3FloatingPointComparisonWithoutDelta
 
JUnit3TestNotRun - Class in com.google.errorprone.bugpatterns
A bugpattern; see the associated summary.
JUnit3TestNotRun() - Constructor for class com.google.errorprone.bugpatterns.JUnit3TestNotRun
 
JUNIT4_RUN_WITH_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
JUNIT4_TEST_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
JUNIT4_THEORY_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
JUnit4ClassAnnotationNonStatic - Class in com.google.errorprone.bugpatterns
@BeforeClass or @AfterClass should be applied to static methods.
JUnit4ClassAnnotationNonStatic() - Constructor for class com.google.errorprone.bugpatterns.JUnit4ClassAnnotationNonStatic
 
JUnit4ClassUsedInJUnit3 - Class in com.google.errorprone.bugpatterns
 
JUnit4ClassUsedInJUnit3() - Constructor for class com.google.errorprone.bugpatterns.JUnit4ClassUsedInJUnit3
 
JUnit4SetUpNotRun - Class in com.google.errorprone.bugpatterns
Checks for the existence of a JUnit3 style setUp() method in a JUnit4 test class or methods annotated with a non-JUnit4 @Before annotation.
JUnit4SetUpNotRun() - Constructor for class com.google.errorprone.bugpatterns.JUnit4SetUpNotRun
 
JUnit4TearDownNotRun - Class in com.google.errorprone.bugpatterns
Checks for the existence of a JUnit3 style tearDown() method in a JUnit4 test class or methods annotated with a non-JUnit4 @After annotation.
JUnit4TearDownNotRun() - Constructor for class com.google.errorprone.bugpatterns.JUnit4TearDownNotRun
 
JUnit4TestNotRun - Class in com.google.errorprone.bugpatterns
 
JUnit4TestNotRun() - Constructor for class com.google.errorprone.bugpatterns.JUnit4TestNotRun
 
JUnit4TestsNotRunWithinEnclosed - Class in com.google.errorprone.bugpatterns
Finds tests that won't run due to the enclosing runner.
JUnit4TestsNotRunWithinEnclosed() - Constructor for class com.google.errorprone.bugpatterns.JUnit4TestsNotRunWithinEnclosed
 
JUnitAmbiguousTestClass - Class in com.google.errorprone.bugpatterns
 
JUnitAmbiguousTestClass() - Constructor for class com.google.errorprone.bugpatterns.JUnitAmbiguousTestClass
 
JUnitAssertSameCheck - Class in com.google.errorprone.bugpatterns
Points out if an object is tested for reference equality to itself using JUnit library.
JUnitAssertSameCheck() - Constructor for class com.google.errorprone.bugpatterns.JUnitAssertSameCheck
 
JUnitIncompatibleType - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
A BugChecker; see the associated BugPattern annotation for details.
JUnitMatchers - Class in com.google.errorprone.matchers
Matchers for code patterns which appear to be JUnit-based tests.
JUnitParameterMethodNotFound - Class in com.google.errorprone.bugpatterns
Checks if the methods specified in junitparams.Parameters annotation to provide parameters exists.
JUnitParameterMethodNotFound() - Constructor for class com.google.errorprone.bugpatterns.JUnitParameterMethodNotFound
 

K

Keep - Annotation Type in com.google.errorprone.annotations
Indicates that the annotated element should not be removed, and that its visibility, modifiers, type, and name should not be modified.
KEEP_ONLY_IDENTICAL_INSERTS - Enum constant in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
Reject overlapping inserts, but treat duplicate inserts (same text at same position) specially.
key() - Method in class com.google.errorprone.refaster.UFreeIdent
 
key() - Method in class com.google.errorprone.refaster.UTypeVar
 
Key(CharSequence) - Constructor for class com.google.errorprone.refaster.UTypeVar.Key
 
Key(String) - Constructor for class com.google.errorprone.refaster.Bindings.Key
 
kind() - Method in class com.google.errorprone.bugpatterns.threadsafety.ConstantExpressions.ConstantExpression
 
kind() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Erroneous
 
kind() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression
 
kind() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.ThisLiteral
 
kind() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
 
kind() - Method in class com.google.errorprone.util.ErrorProneToken
 
Kind() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
 
KIND - Enum constant in enum com.google.e