Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W 

A

absent() - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
An empty explanation.
AbstractExpectedExceptionChecker - Class in com.google.errorprone.bugpatterns
 
AbstractExpectedExceptionChecker() - Constructor for class com.google.errorprone.bugpatterns.AbstractExpectedExceptionChecker
 
AbstractExpectedExceptionChecker.BaseFix - Class in com.google.errorprone.bugpatterns
A partially assembled fix.
AbstractLockMethodChecker - Class in com.google.errorprone.bugpatterns.threadsafety
Abstract implementation of checkers for @LockMethod and@UnlockMethod.
AbstractLockMethodChecker() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.AbstractLockMethodChecker
 
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
 
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 method invocations in which the return value is not used.
AbstractReturnValueIgnored() - Constructor for class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
 
AbstractTestExceptionChecker - Class in com.google.errorprone.bugpatterns
 
AbstractTestExceptionChecker() - Constructor for class com.google.errorprone.bugpatterns.AbstractTestExceptionChecker
 
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() - Constructor for class com.google.errorprone.bugpatterns.AbstractToString
 
AbstractTypeMatcher<T extends com.sun.source.tree.Tree> - 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
 
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.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(ImmutableSet<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.
actualTypes(Inliner) - Method in class com.google.errorprone.refaster.Template
Returns a list of the actual types to be matched.
add(String) - Method in class com.google.errorprone.apply.ImportStatements
Add an import to the list of imports.
add(Replacement) - Method in class com.google.errorprone.fixes.Replacements
 
addAll(Collection<String>) - Method in class com.google.errorprone.apply.ImportStatements
Add all imports in a collection to this list of imports.
addAllFixes(List<? extends Fix>) - Method in class com.google.errorprone.matchers.Description.Builder
Add each fix in order.
addFix(Description.Builder, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker
 
addFix(Description.Builder, ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StreamResourceLeak
 
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
Adds a suggested fix for this Description if fix is present.
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
 
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.
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
 
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
 
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.
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.
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
 
afterComments() - Method in class com.google.errorprone.util.Commented
 
AfterTemplate - Annotation Type in com.google.errorprone.refaster.annotation
Desired "after" version of a refactoring.
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.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.
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.
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
 
AmbiguousMethodReference - Class in com.google.errorprone.bugpatterns
 
AmbiguousMethodReference() - Constructor for class com.google.errorprone.bugpatterns.AmbiguousMethodReference
 
analyze(VisitorState, HeldLockAnalyzer.LockEventListener, Predicate<Tree>) - 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.
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
 
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
 
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 extends com.sun.source.tree.Tree> - 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.
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
 
annotations() - Method in class com.google.errorprone.CompositeCodeTransformer
 
annotations() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
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.
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
 
AnnotationType - Class in com.google.errorprone.matchers
 
AnnotationType(String) - Constructor for class com.google.errorprone.matchers.AnnotationType
 
AntRunner() - Constructor for class com.google.errorprone.ErrorProneAntCompilerAdapter.AntRunner
 
Any - Enum in com.google.errorprone.predicates.type
Matches any type.
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.
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
Match on any class.
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on any class.
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on any class.
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(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(Matcher<? super T>...) - Static method in class com.google.errorprone.matchers.Matchers
 
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.
anyType() - Static method in class com.google.errorprone.predicates.TypePredicates
Match any type.
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(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(String[]) - Method in class com.google.errorprone.ErrorProneAntCompilerAdapter.AntRunner
 
apply(Fix) - Method in class com.google.errorprone.fixes.AppliedFix.Applier
Applies the suggestedFix to the source.
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
 
apply(TreePath, Context, DescriptionListener) - Method in class com.google.errorprone.refaster.RefasterRule
 
apply(TreePath, Context, DescriptionListener) - Method in class com.google.errorprone.scanner.ErrorProneScannerTransformer
 
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.
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
 
ArraysAsListPrimitiveArray - Class in com.google.errorprone.bugpatterns
 
ArraysAsListPrimitiveArray() - Constructor for class com.google.errorprone.bugpatterns.ArraysAsListPrimitiveArray
 
ArrayToString - Class in com.google.errorprone.bugpatterns
 
ArrayToString() - Constructor for class com.google.errorprone.bugpatterns.ArrayToString
 
arrayTypeForType(Type) - Method in class com.google.errorprone.VisitorState
Build an Array Type from another Type
asBigInteger(BigDecimal) - Static method in class com.google.errorprone.bugpatterns.BigDecimalLiteralDouble
 
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.
asName(CharSequence) - Method in class com.google.errorprone.refaster.Inliner
 
ASSERT_WITH_MESSAGE - Static variable in class com.google.errorprone.bugpatterns.CatchFail
 
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
 
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
 
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.
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.
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.
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
 
ASTHelpers - Class in com.google.errorprone.util
This class contains utility methods to work with the javac AST.
ASTHelpers() - Constructor for class com.google.errorprone.util.ASTHelpers
 
ASTHelpers.TargetType - Class in com.google.errorprone.util
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
 
AUTOBOXING_DEFAULT - Static variable in class com.google.errorprone.refaster.Template
 
AutoFactoryAtInject - Class in com.google.errorprone.bugpatterns.inject
 
AutoFactoryAtInject() - Constructor for class com.google.errorprone.bugpatterns.inject.AutoFactoryAtInject
 
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
 

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
 
BadShiftAmount - Class in com.google.errorprone.bugpatterns
 
BadShiftAmount() - Constructor for class com.google.errorprone.bugpatterns.BadShiftAmount
 
base() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Select
 
BaseErrorProneCompiler - Class in com.google.errorprone
An Error Prone compiler that matches the interface of Main.
BaseErrorProneCompiler.Builder - Class in com.google.errorprone
BaseErrorProneJavaCompiler - Class in com.google.errorprone
An Error Prone compiler that implements JavaCompiler.
BaseErrorProneJavaCompiler(ScannerSupplier) - Constructor for class com.google.errorprone.BaseErrorProneJavaCompiler
 
beforeComments() - Method in class com.google.errorprone.util.Commented
 
BeforeTemplate - Annotation Type in com.google.errorprone.refaster.annotation
Desired "before" version of a refactoring.
BigDecimalLiteralDouble - Class in com.google.errorprone.bugpatterns
 
BigDecimalLiteralDouble() - Constructor for class com.google.errorprone.bugpatterns.BigDecimalLiteralDouble
 
BINARY_TREE_MATCHER - Static variable in class com.google.errorprone.bugpatterns.BadShiftAmount
 
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) - 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) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils
 
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 - Variable in class com.google.errorprone.refaster.Inliner
 
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
 
Block(Matcher<BlockTree>) - Constructor for class com.google.errorprone.matchers.Enclosing.Block
 
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
 
BooleanParameter() - Constructor for class com.google.errorprone.bugpatterns.BooleanParameter
 
BoxedPrimitiveConstructor - Class in com.google.errorprone.bugpatterns
 
BoxedPrimitiveConstructor() - Constructor for class com.google.errorprone.bugpatterns.BoxedPrimitiveConstructor
 
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.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.Category - Enum in com.google.errorprone
 
BugPattern.LinkType - Enum in com.google.errorprone
 
BugPattern.ProvidesFix - Enum in com.google.errorprone
Types of fixes BugCheckers can provide.
BugPattern.SeverityLevel - Enum in com.google.errorprone
 
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
 
BugPatternValidator - Class in com.google.errorprone
Validates an @BugPattern annotation for wellformedness.
BugPatternValidator() - Constructor for class com.google.errorprone.BugPatternValidator
 
build() - Method in class com.google.errorprone.BaseErrorProneCompiler.Builder
 
build(List<? extends StatementTree>) - Method in class com.google.errorprone.bugpatterns.AbstractExpectedExceptionChecker.BaseFix
 
build(VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
 
build() - Method in class com.google.errorprone.dataflow.LocalStore.Builder
 
build() - Method in class com.google.errorprone.ErrorProneCompiler.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
 
buildBaseFix(VisitorState, List<Tree>, StatementTree) - Method in class com.google.errorprone.bugpatterns.AbstractExpectedExceptionChecker
 
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.
buildDescriptionFromChecker(Tree, BugChecker) - Static method in class com.google.errorprone.BugCheckerInfo
Returns a new builder for Descriptions.
buildDescriptionFromChecker(Tree, BugChecker) - Static method in class com.google.errorprone.bugpatterns.BugChecker
Returns a new builder for Descriptions.
builder() - Static method in class com.google.errorprone.BaseErrorProneCompiler
Returns a BaseErrorProneCompiler builder.
Builder() - Constructor for class com.google.errorprone.BaseErrorProneCompiler.Builder
 
builder() - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
 
builder() - Static method in class com.google.errorprone.ErrorProneCompiler
 
Builder() - Constructor for class com.google.errorprone.ErrorProneCompiler.Builder
Deprecated.
builder() - Static method in class com.google.errorprone.ErrorProneFlags
 
builder() - Static method in class com.google.errorprone.fixes.BranchedSuggestedFixes
 
Builder() - Constructor for class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
 
builder() - Static method in class com.google.errorprone.fixes.SuggestedFix
 
Builder() - Constructor for class com.google.errorprone.fixes.SuggestedFix.Builder
 
builder(Tree, String, String, BugPattern.SeverityLevel, String) - Static method in class com.google.errorprone.matchers.Description
Returns a new builder for Descriptions.
buildFix(VisitorState, SuggestedFix.Builder, JCTree.JCExpression, List<? extends StatementTree>) - Static method in class com.google.errorprone.bugpatterns.AbstractTestExceptionChecker
 
buildFix(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringSplitter
 
buildMessage(String) - Method in class com.google.errorprone.bugpatterns.threadsafety.AbstractLockMethodChecker
Builds the error message, given the list of locks that were not handled.
buildMessage(String) - Method in class com.google.errorprone.bugpatterns.threadsafety.LockMethodChecker
 
buildMessage(String) - Method in class com.google.errorprone.bugpatterns.threadsafety.UnlockMethodChecker
 
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
 

C

canAlias(FlowExpressions.Receiver, FlowExpressions.Receiver) - Method in class com.google.errorprone.dataflow.LocalStore
 
CanBeStaticAnalyzer - Class in com.google.errorprone.bugpatterns
Analyzes trees for references to their enclosing instance.
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.
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.
CanIgnoreReturnValue - Annotation Type in com.google.errorprone.annotations
Indicates that the return value of the annotated method can be safely ignored.
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
 
CanonicalDuration - Class in com.google.errorprone.bugpatterns
 
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 class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
 
canonicalName() - Method in interface com.google.errorprone.matchers.Suppressible
The canonical name of the check.
CatchAndPrintStackTrace - Class in com.google.errorprone.bugpatterns
 
CatchAndPrintStackTrace() - Constructor for class com.google.errorprone.bugpatterns.CatchAndPrintStackTrace
 
CatchFail - Class in com.google.errorprone.bugpatterns
 
CatchFail() - Constructor for class com.google.errorprone.bugpatterns.CatchFail
 
category - Variable in class com.google.errorprone.BugPatternInstance
 
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
 
CHAR_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
charAt(int) - Method in class com.google.errorprone.refaster.StringName
 
charLit(char) - Static method in class com.google.errorprone.refaster.ULiteral
 
checkerClass() - Method in class com.google.errorprone.BugCheckerInfo
 
checkerClass() - Method in class com.google.errorprone.ExampleInfo
The fully-qualified name of the checker that this example belongs to.
checkGuardedAccess(Tree, GuardedByExpression, HeldLockSet, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
 
checkGuardedBy(boolean, String) - Static method in exception com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
Throws an IllegalGuardedBy exception if the given condition is false.
checkGuardedBy(boolean, String, Object...) - Static method in exception com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
Throws an IllegalGuardedBy exception if the given condition is false.
checkInstantiation(Collection<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.
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.
checkName() - Method in error com.google.errorprone.ErrorProneError
 
checkName - Variable in class com.google.errorprone.matchers.Description
The name of the check that produced the match.
CheckReturnValue - Annotation Type in com.google.errorprone.annotations
Indicates that the return value of the annotated method must be checked.
CheckReturnValue - Class in com.google.errorprone.bugpatterns
 
CheckReturnValue() - Constructor for class com.google.errorprone.bugpatterns.CheckReturnValue
 
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 extends com.sun.source.tree.Tree,N extends com.sun.source.tree.Tree> - 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
 
ClassCanBeStatic - Class in com.google.errorprone.bugpatterns
 
ClassCanBeStatic() - Constructor for class com.google.errorprone.bugpatterns.ClassCanBeStatic
 
classDescriptor(Type, Types) - Static method in class com.google.errorprone.util.Signatures
Returns the binary names of the class.
ClassLiteral() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.ClassLiteral
 
classLiteral(Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
 
className - Variable in class com.google.errorprone.BugPatternInstance
 
ClassName - Class in com.google.errorprone.bugpatterns
 
ClassName() - Constructor for class com.google.errorprone.bugpatterns.ClassName
 
ClassNewInstance - Class in com.google.errorprone.bugpatterns
 
ClassNewInstance() - Constructor for class com.google.errorprone.bugpatterns.ClassNewInstance
 
classReference(Inliner, CharSequence, CharSequence) - Method in enum com.google.errorprone.refaster.ImportPolicy
 
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.
clearBinding(Bindings.Key<?>) - Method in class com.google.errorprone.refaster.Unifier
 
clearDiagnostics() - Method in class com.google.errorprone.DiagnosticTestHelper
 
code() - Method in class com.google.errorprone.ExampleInfo
The example code.
CodeTransformer - Interface in com.google.errorprone
Interface for a transformation over Java source.
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.
CollectionIncompatibleType() - Constructor for class com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionIncompatibleType
Creates a new CollectionIncompatibleType checker that provides no fix.
CollectionIncompatibleType(CollectionIncompatibleType.FixType) - Constructor for class com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionIncompatibleType
Creates a new CollectionIncompatibleType checker with the given fixType.
CollectionIncompatibleType.FixType - Enum in com.google.errorprone.bugpatterns.collectionincompatibletype
 
CollectionToArraySafeParameter - Class in com.google.errorprone.bugpatterns
 
CollectionToArraySafeParameter() - Constructor for class com.google.errorprone.bugpatterns.CollectionToArraySafeParameter
 
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.argumentselectiondefects - package com.google.errorprone.bugpatterns.argumentselectiondefects
 
com.google.errorprone.bugpatterns.collectionincompatibletype - package com.google.errorprone.bugpatterns.collectionincompatibletype
 
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.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.dataflow - package com.google.errorprone.dataflow
 
com.google.errorprone.dataflow.nullnesspropagation - package com.google.errorprone.dataflow.nullnesspropagation
 
com.google.errorprone.fixes - package com.google.errorprone.fixes
Support code for providing automated corrections for defects we find.
com.google.errorprone.internal - package com.google.errorprone.internal
 
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 extends com.sun.source.tree.Tree> - 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
 
Comments - Class in com.google.errorprone.util
Utilities for attaching comments to relevant AST nodes
Comments() - Constructor for class com.google.errorprone.util.Comments
 
comments() - Method in class com.google.errorprone.util.ErrorProneToken
 
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
 
ComparisonContractViolated - Class in com.google.errorprone.bugpatterns
 
ComparisonContractViolated() - Constructor for class com.google.errorprone.bugpatterns.ComparisonContractViolated
 
ComparisonOutOfRange - Class in com.google.errorprone.bugpatterns
 
ComparisonOutOfRange() - Constructor for class com.google.errorprone.bugpatterns.ComparisonOutOfRange
 
compatibilityOfTypes(Type, Type, VisitorState) - Static method in class com.google.errorprone.bugpatterns.EqualsIncompatibleType
 
compatibilityOfTypes(Type, Type, Set<Type>, Set<Type>, VisitorState) - Static method in class com.google.errorprone.bugpatterns.EqualsIncompatibleType
 
compatible() - Method in class com.google.errorprone.bugpatterns.EqualsIncompatibleType.TypeCompatibilityReport
 
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(DiagnosticListener<JavaFileObject>, String[]) - Static method in class com.google.errorprone.ErrorProneCompiler
Compiles in-process.
compile(String[]) - Static method in class com.google.errorprone.ErrorProneCompiler
Programmatic interface to the error-prone Java compiler.
compile(String[], PrintWriter) - Static method in class com.google.errorprone.ErrorProneCompiler
Programmatic interface to the error-prone Java compiler.
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.
CompileTimeConstant - Annotation Type in com.google.errorprone.annotations
Annotation for method parameter declarations, which denotes that corresponding actual parameters must be compile-time constant expressions.
CompileTimeConstantChecker - Class in com.google.errorprone.bugpatterns
Detects invocations of methods with a parameter annotated @CompileTimeConstant such that the corresponding actual parameter is not a compile-time constant expression.
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
 
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 - 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.
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.
CONCURRENCY - Static variable in class com.google.errorprone.BugPattern.StandardTags
This check points out potential issues when operating in a concurrent context
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(boolean) - Method in class com.google.errorprone.refaster.Choice
Returns this choice if condition, otherwise the empty choice.
condition(Predicate<? super T>) - Method in class com.google.errorprone.refaster.Choice
Filters the choices to those that satisfy the provided Predicate.
ConditionalExpressionNumericPromotion - Class in com.google.errorprone.bugpatterns
 
ConditionalExpressionNumericPromotion() - Constructor for class com.google.errorprone.bugpatterns.ConditionalExpressionNumericPromotion
 
ConstantField - Class in com.google.errorprone.bugpatterns
 
ConstantField() - Constructor for class com.google.errorprone.bugpatterns.ConstantField
 
ConstantOverflow - Class in com.google.errorprone.bugpatterns
 
ConstantOverflow() - Constructor for class com.google.errorprone.bugpatterns.ConstantOverflow
 
ConstantPropagationAnalysis - Class in com.google.errorprone.dataflow
An interface to the constant propagation analysis.
ConstantPropagationAnalysis() - Constructor for class com.google.errorprone.dataflow.ConstantPropagationAnalysis
 
constructor() - Static method in class com.google.errorprone.matchers.Matchers
Matches a constructor.
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() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
 
ConstructorInvokesOverridable - Class in com.google.errorprone.bugpatterns
Looks for invocations of overridable methods from constructors and similar scopes (instance initializers and variables).
ConstructorInvokesOverridable() - Constructor for class com.google.errorprone.bugpatterns.ConstructorInvokesOverridable
 
ConstructorLeaksThis - Class in com.google.errorprone.bugpatterns
Looks for constructors from which the 'this' reference escapes.
ConstructorLeaksThis() - Constructor for class com.google.errorprone.bugpatterns.ConstructorLeaksThis
 
ConstructorMatcherImpl - Class in com.google.errorprone.matchers.method
Matches constructors, allows refinement on class type.
ConstructorMatcherImpl() - Constructor for class com.google.errorprone.matchers.method.ConstructorMatcherImpl
 
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
 
constructorOfClass(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches a constructor declaration in a specific enclosing class.
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() - 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.
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
 
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<V>, Matcher<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.
containsAnonymousClassUsingState - Variable in class com.google.errorprone.bugpatterns.CollectorShouldNotUseState
 
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() - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
context - Variable in class com.google.errorprone.VisitorState
 
continueStatement() - Static method in class com.google.errorprone.matchers.Matchers
Matches a continue statement.
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.LocalStore
 
correctAnnotation() - Method in class com.google.errorprone.bugpatterns.JUnit4SetUpNotRun
 
correctAnnotation() - Method in class com.google.errorprone.bugpatterns.JUnit4TearDownNotRun
 
CouldNotResolveImportException - Exception in com.google.errorprone.refaster
Exception thrown when a class symbol could not be resolved by the compiler.
CouldNotResolveImportException(CharSequence) - Constructor for exception com.google.errorprone.refaster.CouldNotResolveImportException
 
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(JavaFileObject) - Static method in class com.google.errorprone.apply.SourceFile
 
create(Class<? extends BugChecker>) - Static method in class com.google.errorprone.BugCheckerInfo
 
create(Exception, String) - Static method in class com.google.errorprone.bugpatterns.formatstring.FormatStringValidation.ValidationResult
 
create(String, Iterable<String>) - Static method in class com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
 
create(String) - Static method in class com.google.errorprone.bugpatterns.threadsafety.AnnotationInfo
 
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(GuardedByExpression, Symbol, Type) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Select
 
create(Symbol) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.TypeLiteral
 
create(ConsPStack<String>) - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
 
create(ExampleInfo.ExampleKind, String, String, String) - Static method in class com.google.errorprone.ExampleInfo
 
create(int, int, String) - Static method in class com.google.errorprone.fixes.Replacement
Creates a Replacement.
create(Set<String>, URLClassLoader) - Static method in class com.google.errorprone.internal.NonDelegatingClassLoader
 
create(Set<String>, URL[], ClassLoader) - Static method in class com.google.errorprone.internal.NonDelegatingClassLoader
 
create() - 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(Bindings) - Static method in class com.google.errorprone.refaster.Bindings
 
create(UStatement...) - Static method in class com.google.errorprone.refaster.BlockTemplate
 
create(Map<String, ? extends UType>, UStatement...) - Static method in class com.google.errorprone.refaster.BlockTemplate
 
create(Iterable<UTypeVar>, Map<String, ? extends UType>, UStatement...) - Static method in class com.google.errorprone.refaster.BlockTemplate
 
create(ImmutableClassToInstanceMap<Annotation>, Iterable<UTypeVar>, Map<String, ? extends UType>, Iterable<? extends UStatement>) - Static method in class com.google.errorprone.refaster.BlockTemplate
 
create(UExpression, UType) - Static method in class com.google.errorprone.refaster.ExpressionTemplate
 
create(Map<String, ? extends UType>, UExpression, UType) - Static method in class com.google.errorprone.refaster.ExpressionTemplate
 
create(ImmutableClassToInstanceMap<Annotation>, Iterable<UTypeVar>, Map<String, ? extends UType>, UExpression, UType) - Static method in class com.google.errorprone.refaster.ExpressionTemplate
 
create(Symbol.VarSymbol, ModifiersTree) - Static method in class com.google.errorprone.refaster.LocalVarBinding
 
create(String, Collection<? extends Template<?>>, Collection<? extends Template<?>>) - Static method in class com.google.errorprone.refaster.RefasterRule
 
create(String, Iterable<UTypeVar>, Collection<? extends Template<?>>, Collection<? extends Template<?>>, ImmutableClassToInstanceMap<Annotation>) - Static method in class com.google.errorprone.refaster.RefasterRule
 
create(UExpression...) - Static method in class com.google.errorprone.refaster.UAnyOf
 
create(Iterable<? extends UExpression>) - Static method in class com.google.errorprone.refaster.UAnyOf
 
create(CharSequence, List<UType>) - Static method in class com.google.errorprone.refaster.UClassType
 
create(String, UType...) - Static method in class com.google.errorprone.refaster.UClassType
 
create(List<UTypeVar>, UType) - Static method in class com.google.errorprone.refaster.UForAll
 
create(CharSequence) - Static method in class com.google.errorprone.refaster.UFreeIdent
 
create(Tree.Kind, Object) - Static method in class com.google.errorprone.refaster.ULiteral
 
create(UExpression, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UMemberSelect
 
create(UExpression, List<UExpression>) - Static method in class com.google.errorprone.refaster.UMethodInvocation
 
create(UExpression, UExpression...) - Static method in class com.google.errorprone.refaster.UMethodInvocation
 
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(UExpression) - Static method in class com.google.errorprone.refaster.UReturn
 
create(Unifier, List<? extends StatementTree>) - Static method in class com.google.errorprone.refaster.UStatement.UnifierWithUnconsumedStatements
 
create(UClassIdent, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UStaticIdent
 
create(String, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UStaticIdent
 
create(Symbol.ClassSymbol, CharSequence, UType) - Static method in class com.google.errorprone.refaster.UStaticIdent
 
create(String, UType, UType) - Static method in class com.google.errorprone.refaster.UTypeVar
 
create(String, UType) - Static method in class com.google.errorprone.refaster.UTypeVar
 
create(String) - Static method in class com.google.errorprone.refaster.UTypeVar
 
create(Type, JCTree.JCExpression) - Static method in class com.google.errorprone.refaster.UTypeVar.TypeWithExpression
 
create(Type) - Static method in class com.google.errorprone.refaster.UTypeVar.TypeWithExpression
 
create(CharSequence, UExpression, UExpression) - Static method in class com.google.errorprone.refaster.UVariableDecl
 
create(CharSequence, UExpression) - Static method in class com.google.errorprone.refaster.UVariableDecl
 
create(Scanner) - Static method in class com.google.errorprone.scanner.ErrorProneScannerTransformer
 
createByScanningForPlugins(ScannerSupplier, ErrorProneOptions, Context) - Static method in class com.google.errorprone.ErrorProneAnalyzer
 
createClasspath() - Method in class com.google.errorprone.ErrorProneExternalCompilerAdapter
 
createDescription(ExpressionTree, ExpressionTree, VisitorState, boolean) - Method in class com.google.errorprone.bugpatterns.BigDecimalLiteralDouble
 
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
 
createJvmArg() - Method in class com.google.errorprone.ErrorProneExternalCompilerAdapter
 
createTemplate(Context, MethodTree) - Static method in class com.google.errorprone.refaster.UTemplater
Returns a template based on a method.
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.
customSuppressions - Variable in class com.google.errorprone.SuppressionHelper.SuppressionInfo
 

D

DAGGER_PROVIDES_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
DataFlow - Class in com.google.errorprone.dataflow
Provides a wrapper around Analysis.
DataFlow() - Constructor for class com.google.errorprone.dataflow.DataFlow
 
DataFlow.Result<A extends org.checkerframework.dataflow.analysis.AbstractValue<A>,S extends org.checkerframework.dataflow.analysis.Store<S>,T extends org.checkerframework.dataflow.analysis.TransferFunction<A,S>> - Interface in com.google.errorprone.dataflow
A pair of Analysis and ControlFlowGraph.
DateFormatConstant - Class in com.google.errorprone.bugpatterns
 
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
 
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.
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.UPlaceholderExpression
 
defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UStaticIdent
 
defaultAction(Tree, Void) - Method in class com.google.errorprone.refaster.UTemplater
 
defaultAction(Tree, Unifier) - Method in class com.google.errorprone.refaster.UTree
 
DefaultCharset - Class in com.google.errorprone.bugpatterns
 
DefaultCharset() - Constructor for class com.google.errorprone.bugpatterns.DefaultCharset
 
defaultChecks() - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
Returns a ScannerSupplier with the BugCheckers that are in the ENABLED lists.
defaultSeverity() - Method in class com.google.errorprone.BugCheckerInfo
 
defaultSeverity() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
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
 
DescendantOf - Class in com.google.errorprone.matchers
Matches an instance method that is a descendant of a method with the given class and name.
DescendantOf(String, String) - Constructor for class com.google.errorprone.matchers.DescendantOf
 
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
Non-overlapping replacements, sorted in descending order by position.
describe(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.
describe(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.RectIntersectReturnValueIgnored
 
describe(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComparisonOutOfRange
Suggested fixes are as follows.
describe(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PreconditionsCheckNotNullPrimitive
If the call to Preconditions.checkNotNull is part of an expression (assignment, return, etc.), we substitute the argument for the method call.
describe(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PreconditionsInvalidPlaceholder
 
describe(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.WrongParameterPackage
 
describe() - Method in class com.google.errorprone.DiagnosticTestHelper
 
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, Fix) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is a fix.
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, Optional<? extends Fix>) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is an Optional fix.
Description - Class in com.google.errorprone.matchers
Simple data object containing the information captured about an AST match.
Description(Tree, String, Fix, BugPattern.SeverityLevel) - Constructor for class com.google.errorprone.matchers.Description
Deprecated.
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.
descriptor(Type, Types) - Static method in class com.google.errorprone.util.Signatures
Returns a JVMS 4.3.3 method descriptor.
diagnosticLineAndColumn(long, long) - Static method in class com.google.errorprone.DiagnosticTestHelper
 
diagnosticMessage(Matcher<String>) - Static method 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
 
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.
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
 
DiffNotApplicableException - Exception in com.google.errorprone.apply
Exception thrown if a Diff could not be applied by a DiffApplier
DiffNotApplicableException(String) - Constructor for exception com.google.errorprone.apply.DiffNotApplicableException
 
DiffNotApplicableException(String, Throwable) - Constructor for exception com.google.errorprone.apply.DiffNotApplicableException
 
DiffNotApplicableException(Throwable) - Constructor for exception com.google.errorprone.apply.DiffNotApplicableException
 
DiffSupplier - Interface in com.google.errorprone.apply
Supplier of file differences.
disableable() - Method in class com.google.errorprone.BugCheckerInfo
 
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
 
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
 
displayInfo() - Method in enum com.google.errorprone.BugPattern.ProvidesFix
 
DivZero - Class in com.google.errorprone.bugpatterns
Matches the behaviour of javac's divzero xlint warning.
DivZero() - Constructor for class com.google.errorprone.bugpatterns.DivZero
 
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() - Constructor for class com.google.errorprone.DocGenTool
 
DocGenTool.TargetEnumConverter - Class in com.google.errorprone
 
documentSuppression - Variable in class com.google.errorprone.BugPatternInstance
 
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
The method to which this annotation is applied cannot be called.
DoNotCallChecker - Class in com.google.errorprone.bugpatterns
 
DoNotCallChecker() - Constructor for class com.google.errorprone.bugpatterns.DoNotCallChecker
 
DoNotMock - Annotation Type in com.google.errorprone.annotations
 
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(BugCheckerRefactoringTestHelper.TestMode) - 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.
DoubleBraceInitialization - Class in com.google.errorprone.bugpatterns
 
DoubleBraceInitialization() - Constructor for class com.google.errorprone.bugpatterns.DoubleBraceInitialization
 
DoubleCheckedLocking - Class in com.google.errorprone.bugpatterns.threadsafety
 
DoubleCheckedLocking() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.DoubleCheckedLocking
 
doubleLit(double) - Static method in class com.google.errorprone.refaster.ULiteral
 

E

ElementPredicates - Class in com.google.errorprone.bugpatterns.inject
Predicates for Element objects related to dependency injection.
ElementPredicates() - Constructor for class com.google.errorprone.bugpatterns.inject.ElementPredicates
 
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.LocalStore
 
empty() - Static method in class com.google.errorprone.ErrorProneFlags
 
empty() - Static method in class com.google.errorprone.ErrorProneOptions
 
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
 
EmptyTopLevelDeclaration() - Constructor for class com.google.errorprone.bugpatterns.EmptyTopLevelDeclaration
 
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.Block<T extends com.sun.source.tree.Tree> - Class in com.google.errorprone.matchers
 
Enclosing.BlockOrCase<T extends com.sun.source.tree.Tree> - Class in com.google.errorprone.matchers
 
Enclosing.Class<T extends com.sun.source.tree.Tree> - Class in com.google.errorprone.matchers
 
Enclosing.Method<T extends com.sun.source.tree.Tree> - Class in com.google.errorprone.matchers
 
ENCLOSING_CLASS - Static variable in class com.google.errorprone.suppliers.Suppliers
 
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.
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<T>) - 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
 
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
 
equals(Object) - Method in class com.google.errorprone.BugCheckerInfo
 
equals(Object) - Method in class com.google.errorprone.bugpatterns.BugChecker
 
equals(Object) - Method in class com.google.errorprone.dataflow.LocalStore
 
equals(Object) - Method in class com.google.errorprone.refaster.Bindings.Key
 
equals(Object) - Method in class com.google.errorprone.refaster.UTypeVar
 
EqualsHashCode - Class in com.google.errorprone.bugpatterns
Classes that override equals should also override hashCode.
EqualsHashCode() - Constructor for class com.google.errorprone.bugpatterns.EqualsHashCode
 
EqualsIncompatibleType - Class in com.google.errorprone.bugpatterns
 
EqualsIncompatibleType() - Constructor for class com.google.errorprone.bugpatterns.EqualsIncompatibleType
 
EqualsIncompatibleType.TypeCompatibilityReport - Class in com.google.errorprone.bugpatterns
 
EqualsIncompatibleType.TypeStringPair - Class in com.google.errorprone.bugpatterns
 
EqualsNaN - Class in com.google.errorprone.bugpatterns
 
EqualsNaN() - Constructor for class com.google.errorprone.bugpatterns.EqualsNaN
 
EqualsReference - Class in com.google.errorprone.bugpatterns
 
EqualsReference() - Constructor for class com.google.errorprone.bugpatterns.EqualsReference
 
errorChecks() - Static method in class com.google.errorprone.scanner.BuiltInCheckerSuppliers
Returns a ScannerSupplier with the BugCheckers that are in the ENABLED_ERRORS list.
ErrorProneAnalyzer - Class in com.google.errorprone
A TaskListener that runs Error Prone over attributed compilation units.
ErrorProneAnalyzer(ScannerSupplier, ErrorProneOptions, Context) - Constructor for class com.google.errorprone.ErrorProneAnalyzer
 
ErrorProneAntCompilerAdapter - Class in com.google.errorprone
Adapts the error-prone compiler to be used in an Ant build.
ErrorProneAntCompilerAdapter() - Constructor for class com.google.errorprone.ErrorProneAntCompilerAdapter
 
ErrorProneAntCompilerAdapter.AntRunner - Class in com.google.errorprone
 
ErrorProneCompiler - Class in com.google.errorprone
An Error Prone compiler that matches the interface of Main.
ErrorProneCompiler.Builder - Class in com.google.errorprone
 
ErrorProneError - Error 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 error com.google.errorprone.ErrorProneError
 
ErrorProneExternalCompilerAdapter - Class in com.google.errorprone
Ant component to launch an external javac with error-prone enabled.
ErrorProneExternalCompilerAdapter() - Constructor for class com.google.errorprone.ErrorProneExternalCompilerAdapter
 
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.
ErrorProneInMemoryFileManager - Class in com.google.errorprone
An in-memory file manager for testing that uses JavacFileManager and Jimfs.
ErrorProneInMemoryFileManager() - Constructor for class com.google.errorprone.ErrorProneInMemoryFileManager
Constructs an ErrorProneInMemoryFileManager instance.
ErrorProneInMemoryFileManager(Class<?>) - Constructor for class com.google.errorprone.ErrorProneInMemoryFileManager
Constructs an ErrorProneInMemoryFileManager instance, given a class that can be used to lookup file resources, such as test inputs to compile.
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 - Class in com.google.errorprone
Processes command-line options specific to error-prone.
errorProneOptions() - Method in class com.google.errorprone.VisitorState
 
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.
ErrorPronePlugins() - Constructor for class com.google.errorprone.ErrorPronePlugins
 
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 a non-hardcoded set of 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
 
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, Context) - Constructor for class com.google.errorprone.util.ErrorProneTokens
 
ErrorProneVersion - Class in com.google.errorprone
The Error Prone version.
ErrorProneVersion() - Constructor for class com.google.errorprone.ErrorProneVersion
 
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
 
ExampleInfo - Class in com.google.errorprone
Encapsulates information about a positive or negative test case that should be included in the generated documentation.
ExampleInfo() - Constructor for class com.google.errorprone.ExampleInfo
 
ExampleInfo.ExampleKind - Enum in com.google.errorprone
 
exception() - Method in class com.google.errorprone.bugpatterns.formatstring.FormatStringValidation.ValidationResult
The exception thrown by String.format or Formatter.check.
EXCEPTION_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
execute() - Method in class com.google.errorprone.ErrorProneAntCompilerAdapter
 
execute() - Method in class com.google.errorprone.ErrorProneExternalCompilerAdapter
 
exists(String) - Method in class com.google.errorprone.ErrorProneInMemoryFileManager
 
expected - Variable in class com.google.errorprone.predicates.type.DescendantOf
 
ExpectedExceptionChecker - Class in com.google.errorprone.bugpatterns
 
ExpectedExceptionChecker() - Constructor for class com.google.errorprone.bugpatterns.ExpectedExceptionChecker
 
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.
ExpectOutput(JavaFileObject) - Constructor for class com.google.errorprone.BugCheckerRefactoringTestHelper.ExpectOutput
 
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
 
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
 
extendSuppressionSets(Symbol, Type, Set<String>, Set<Class<? extends Annotation>>, boolean, VisitorState) - Method in class com.google.errorprone.SuppressionHelper
Extend suppression sets for both @SuppressWarnings and custom suppression annotations.
extractRules(ClassTree, Context) - Static method in class com.google.errorprone.refaster.RefasterRuleBuilderScanner
 

F

Factory() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Factory
 
FallThrough - Class in com.google.errorprone.bugpatterns
 
FallThrough() - Constructor for class com.google.errorprone.bugpatterns.FallThrough
 
fieldFix(Tree, VisitorState) - Static method in class com.google.errorprone.bugpatterns.SelfEquals
 
FieldMissingNullable - Class in com.google.errorprone.bugpatterns.nullness
Nullable suggestions for fields based on values assigned to them.
FieldMissingNullable() - Constructor for class com.google.errorprone.bugpatterns.nullness.FieldMissingNullable
 
FileDestination - Interface in com.google.errorprone.apply
 
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.
filterFixes(Predicate<? super Fix>) - Method in class com.google.errorprone.matchers.Description
 
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(String) - Method in class com.google.errorprone.MaskedClassLoader
 
findCommentsForArguments(NewClassTree, VisitorState) - Static method in class com.google.errorprone.util.Comments
Attach comments to nodes on arguments of constructor calls.
findCommentsForArguments(MethodInvocationTree, VisitorState) - Static method in class com.google.errorprone.util.Comments
Attach comments to nodes on arguments of method calls.
findEnclosing(Class<? extends T>...) - Method in class com.google.errorprone.VisitorState
Find the first enclosing tree node of one of the given types.
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.
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.
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
 
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.refaster.RefasterRuleCompilerAnalyzer
 
first() - Method in class com.google.errorprone.refaster.Choice
Returns the first valid option from this Choice.
Fix - Interface in com.google.errorprone.fixes
Represents a source code transformation, usually used to fix a bug detected by error-prone.
fixes - Variable in class com.google.errorprone.matchers.Description
A list of fixes to suggest in an error message or use in automated refactoring.
FloatCast - Class in com.google.errorprone.bugpatterns
 
FloatCast() - Constructor for class com.google.errorprone.bugpatterns.FloatCast
 
FloatingPointLiteralPrecision - Class in com.google.errorprone.bugpatterns
 
FloatingPointLiteralPrecision() - Constructor for class com.google.errorprone.bugpatterns.FloatingPointLiteralPrecision
 
floatLit(float) - Static method in class com.google.errorprone.refaster.ULiteral
 
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
 
forClass(TypePredicate) - Method in class com.google.errorprone.matchers.method.ConstructorMatcherImpl
 
forClass(String) - Method in class com.google.errorprone.matchers.method.ConstructorMatcherImpl
 
forClass(Supplier<Type>) - Method in class com.google.errorprone.matchers.method.ConstructorMatcherImpl
 
forClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
Match on types that satisfy the given predicate.
forClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
Match on the given type exactly.
forClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
Match on the given type exactly.
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.
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 - Class in com.google.errorprone.bugpatterns.formatstring
 
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
 
FormatStringValidation - Class in com.google.errorprone.bugpatterns.formatstring
Utilities for validating format strings.
FormatStringValidation() - Constructor for class com.google.errorprone.bugpatterns.formatstring.FormatStringValidation
 
FormatStringValidation.ValidationResult - Class in com.google.errorprone.bugpatterns.formatstring
Description of an incorrect format method call.
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) - Method in class com.google.errorprone.ErrorProneInMemoryFileManager
Loads a resource of the provided class into a JavaFileObject.
forResource(String) - Method in class com.google.errorprone.ErrorProneInMemoryFileManager
Loads a resource of the class passed into the constructor into a JavaFileObject.
forResources(Class<?>, String...) - Method in class com.google.errorprone.ErrorProneInMemoryFileManager
Loads resources of the provided class into JavaFileObjects.
forSourceLines(String, String...) - Method in class com.google.errorprone.ErrorProneInMemoryFileManager
Creates a JavaFileObject with the given name and content.
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, VisitorState) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
from(Symbol.ClassSymbol, CompilationUnitTree, Context, Tree) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
from(Collection<T>) - Static method in class com.google.errorprone.refaster.Choice
 
from(Tree.Kind) - Static method in enum com.google.errorprone.util.OperatorPrecedence
 
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.
fromElement(Element) - Static method in class com.google.errorprone.BugPatternInstance
 
fromFlags(ErrorProneFlags) - Static method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
 
fromMap(Map<String, String>) - Static method in class com.google.errorprone.ErrorProneFlags
 
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.
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
 
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
 
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.
FutureReturnValueIgnored() - Constructor for class com.google.errorprone.bugpatterns.FutureReturnValueIgnored
 
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
 
FuzzyEqualsShouldNotBeUsedInEqualsMethod - Class in com.google.errorprone.bugpatterns
 
FuzzyEqualsShouldNotBeUsedInEqualsMethod() - Constructor for class com.google.errorprone.bugpatterns.FuzzyEqualsShouldNotBeUsedInEqualsMethod
 

G

generateExamplesFromTestCases - Variable in class com.google.errorprone.BugPatternInstance
 
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(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.
get(Context.Key<T>) - Method in class com.google.errorprone.SubContext
 
get(Class<T>) - Method in class com.google.errorprone.SubContext
 
get(VisitorState) - Method in interface com.google.errorprone.suppliers.Supplier
 
getActual(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.AbstractLockMethodChecker
Searches the method body for locks that are acquired/released.
getActual(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.LockMethodChecker
 
getActual(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.UnlockMethodChecker
 
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.
getAnalysis() - Method in interface com.google.errorprone.dataflow.DataFlow.Result
 
getAnnotation(Tree, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Retrieve an annotation, considering annotation inheritance.
getAnnotation(Symbol, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Retrieve an annotation, considering annotation inheritance.
getAnnotationName(AnnotationTree) - Static method in class com.google.errorprone.util.ASTHelpers
 
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
 
getArgumentTypeString() - Method in class com.google.errorprone.bugpatterns.EqualsIncompatibleType.TypeStringPair
 
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
 
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.
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
 
GetClassOnAnnotation - Class in com.google.errorprone.bugpatterns
 
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
 
GetClassOnEnum() - Constructor for class com.google.errorprone.bugpatterns.GetClassOnEnum
 
getConstructors(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the list of all constructors defined in the class (including generated ones).
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() - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
getCustomSuppressionAnnotations() - Method in class com.google.errorprone.scanner.Scanner
Returns a set of all the custom suppression annotation types used by the BugCheckers in thisScanner.
getDeclaredSymbol(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol declared by a tree.
getDescriptionListener(Log, JCTree.JCCompilationUnit) - Method in interface com.google.errorprone.DescriptionListener.Factory
 
getDiagnostics() - Method in class com.google.errorprone.DiagnosticTestHelper
 
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.
getEnabledChecks() - Method in class com.google.errorprone.scanner.ScannerSupplier
Returns the set of BugCheckerInfos that are enabled in this ScannerSupplier.
getEndPos() - Method in class com.google.errorprone.apply.ImportStatements
Return the end position of the import statements.
getEndPosition(EndPosTable) - Method in class com.google.errorprone.fixes.AdjustedPosition
 
getEndPosition(EndPosTable) - Method in class com.google.errorprone.fixes.IndexedPosition
 
getEndPosition(Tree) - Method in class com.google.errorprone.VisitorState
Returns the end position of the node, or -1 if it is not available.
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
 
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.
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(Symbol.ClassSymbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the values of the given symbol's javax.annotation.Generated or javax.annotation.processing.Generated annotation, if present.
getGuardValues(Symbol) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils
 
getIdentifier() - Method in class com.google.errorprone.refaster.Bindings.Key
 
getIdentifier() - Method in class com.google.errorprone.refaster.UMemberSelect
 
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
 
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
 
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.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
 
getKnownSafeClasses() - Method in interface com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.KnownTypes
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
 
getKnownUnsafeClasses() - Method in interface com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.KnownTypes
Types that are known to be unsafe and don't need testing.
getKnownUnsafeClasses() - Method in class com.google.errorprone.bugpatterns.threadsafety.WellKnownMutability
 
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.
getList(String) - Method in class com.google.errorprone.ErrorProneFlags
Gets the flag value for the given key as a comma-separated ImmutableList of Strings, wrapped in an Optional, which is empty if the flag is unset.
getLocation() - Method in class com.google.errorprone.refaster.TemplateMatch
 
getLockExpressions(MethodTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.AbstractLockMethodChecker
Returns the lock expressions in the @LockMethod/@UnlockMethod annotation, if any.
getLockExpressions(MethodTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.LockMethodChecker
 
getLockExpressions(MethodTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.UnlockMethodChecker
 
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.
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.
getMessageWithoutCheckName() - Method in class com.google.errorprone.matchers.Description
Returns the message, not including the check name but including the link.
getMethodSelect() - Method in class com.google.errorprone.refaster.UMethodInvocation
 
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.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
 
getNewCodeSnippet() - Method in class com.google.errorprone.fixes.AppliedFix
 
getNormalizedEditDistance(String, String, boolean) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
Returns a normalized edit distance between 0 and 1.
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.
getNormalizedEditDistance(String, String) - Method in class com.google.errorprone.names.TermEditDistance
 
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
 
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.
getOptionalBinding(Bindings.Key<V>) - Method in class com.google.errorprone.refaster.Inliner
 
getParameterTypes() - Method in class com.google.errorprone.refaster.UMethodType
 
getPath() - Method in class com.google.errorprone.apply.SourceFile
Returns the path for this source file
getPath() - Method in class com.google.errorprone.VisitorState
 
getPreferredPosition() - Method in class com.google.errorprone.fixes.AdjustedPosition
 
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.
getReceiverTypeString() - Method in class com.google.errorprone.bugpatterns.EqualsIncompatibleType.TypeStringPair
 
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.
getSeverityMap() - Method in class com.google.errorprone.ErrorProneOptions
 
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.
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.IndexedPosition
 
getStaticImportsToAdd() - Method in class com.google.errorprone.refaster.Inliner
 
getSubst(Type, List<Type>, List<Type>) - Static method in class com.google.errorprone.bugpatterns.FutureReturnValueIgnored
 
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
 
getSymbol() - Method in class com.google.errorprone.refaster.LocalVarBinding
 
getSymbol(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a tree.
getSymbol(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a class.
getSymbol(PackageTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a package.
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(VariableTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a variable.
getSymbol(MethodInvocationTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a method invocation.
getSymbol(MemberReferenceTree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol for a member reference.
getSymbolFromString(String) - Method in class com.google.errorprone.VisitorState
 
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
 
getTextFromComment(Tokens.Comment) - Static method in class com.google.errorprone.util.Comments
Extract the text body from a comment.
getTokens() - Method in class com.google.errorprone.util.ErrorProneTokens
 
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.
getTree() - Method in class com.google.errorprone.fixes.AdjustedPosition
 
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(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(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(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
 
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.
getUnwanted(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.AbstractLockMethodChecker
Searches the method body for the incorrect lock operation (e.g.
getUnwanted(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.LockMethodChecker
 
getUnwanted(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.UnlockMethodChecker
 
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.
getValue() - Method in class com.google.errorprone.refaster.ULiteral
 
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
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() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder
 
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
 
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.
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
 
GuardedByUtils() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils
 
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_PROVIDES_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
GUICE_SCOPE_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 

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.
handleMatch(MethodTree, VisitorState, List<Tree>, List<StatementTree>, StatementTree) - Method in class com.google.errorprone.bugpatterns.AbstractExpectedExceptionChecker
Handle a method that contains a use of ExpectedException.
handleMatch(MethodTree, VisitorState, List<Tree>, List<StatementTree>, StatementTree) - Method in class com.google.errorprone.bugpatterns.ExpectedExceptionChecker
 
handleStatements(MethodTree, VisitorState, JCTree.JCExpression, SuggestedFix) - Method in class com.google.errorprone.bugpatterns.AbstractTestExceptionChecker
Handle a method annotated with @Test(expected=....
handleStatements(MethodTree, VisitorState, JCTree.JCExpression, SuggestedFix) - Method in class com.google.errorprone.bugpatterns.TestExceptionChecker
 
HardCodedSdCardPath - Class in com.google.errorprone.bugpatterns.android
TODO(avenet): Restrict this check to Android code once the capability is available in Error Prone.
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
 
hasAnnotation(String) - Static method in class com.google.errorprone.matchers.Matchers
Determines whether an expression 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(Symbol, String, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Determines whether a symbol has an annotation of the given type.
hasAnnotation(Symbol, Class<? extends Annotation>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Check for the presence of an annotation, considering annotation inheritance.
hasAnnotation(Tree, Class<? extends Annotation>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Check for the presence of an annotation, considering annotation inheritance.
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.
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
 
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.
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(Symbol, 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.
hashCode() - Method in class com.google.errorprone.BugCheckerInfo
 
hashCode() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
hashCode() - Method in class com.google.errorprone.dataflow.LocalStore
 
hashCode() - Method in class com.google.errorprone.refaster.Bindings.Key
 
hashCode() - Method in class com.google.errorprone.refaster.UTypeVar
 
HashtableContains - Class in com.google.errorprone.bugpatterns
 
HashtableContains() - Constructor for class com.google.errorprone.bugpatterns.HashtableContains
 
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
 
hasIdentifier(Matcher<IdentifierTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches any AST that contains an identifier with a certain property.
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 - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
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.
hasNonJUnit4AfterAnnotation - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
hasNonJUnit4BeforeAnnotation - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
hasNullableAnnotation(Element) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
 
hasProvidesAnnotation() - Static method in class com.google.errorprone.matchers.InjectMatchers
 
hasSourceRetention(Element) - Static method in class com.google.errorprone.bugpatterns.inject.ElementPredicates
 
HeldLockAnalyzer - Class in com.google.errorprone.bugpatterns.threadsafety
A method body analyzer.
HeldLockAnalyzer() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.HeldLockAnalyzer
 
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

IdentityBinaryExpression - Class in com.google.errorprone.bugpatterns
 
IdentityBinaryExpression() - Constructor for class com.google.errorprone.bugpatterns.IdentityBinaryExpression
 
identitySupplier(T) - Static method in class com.google.errorprone.suppliers.Suppliers
Supplies what was given.
ignoreJavacErrors() - Method in class com.google.errorprone.CompilationTestHelper
By default, the compilation helper will not run Error Prone on compilations that fail with javac errors.
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
 
ILLEGAL - Static variable in class com.google.errorprone.bugpatterns.ImmutableModification
 
IllegalGuardedBy - Exception in com.google.errorprone.bugpatterns.threadsafety
An error that occurred during the parsing or binding of a GuardedBy expression.
IllegalGuardedBy(String) - Constructor for exception com.google.errorprone.bugpatterns.threadsafety.IllegalGuardedBy
 
Immutable - Annotation Type in com.google.errorprone.annotations
The class to which this annotation is applied is immutable.
ImmutableAnnotationChecker - Class in com.google.errorprone.bugpatterns.threadsafety
 
ImmutableAnnotationChecker() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ImmutableAnnotationChecker
Deprecated.
ImmutableAnnotationChecker(ErrorProneFlags) - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ImmutableAnnotationChecker
 
ImmutableChecker - Class in com.google.errorprone.bugpatterns.threadsafety
 
ImmutableChecker() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
Deprecated.
ImmutableChecker(ErrorProneFlags) - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
 
ImmutableCollections - Class in com.google.errorprone.bugpatterns
Common utility functions for immutable collections.
ImmutableEnumChecker - Class in com.google.errorprone.bugpatterns.threadsafety
 
ImmutableEnumChecker() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ImmutableEnumChecker
Deprecated.
ImmutableEnumChecker(ErrorProneFlags) - Constructor for class com.google.errorprone.bugpatterns.threadsafety.ImmutableEnumChecker
 
ImmutableModification - Class in com.google.errorprone.bugpatterns
 
ImmutableModification() - Constructor for class com.google.errorprone.bugpatterns.ImmutableModification
 
ImmutableTypeParameter - Annotation Type in com.google.errorprone.annotations
The type parameter to which this annotation is applied should only be instantiated with immutable types.
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.ArrayToString
 
implicitToStringFix(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StreamToString
 
Import() - Constructor for class com.google.errorprone.apply.ImportOrganizer.Import
 
importedName() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
 
ImportOrderParser - Class in com.google.errorprone
Parse import order strings.
ImportOrderParser() - Constructor for class com.google.errorprone.ImportOrderParser
 
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 - Enum in com.google.errorprone.refaster
Policy specifying when and how to import classes when inlining types.
importPolicy() - Method in class com.google.errorprone.refaster.Inliner
 
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.
ImportStatements(JCTree.JCExpression, List<JCTree.JCImport>, EndPosTable) - Constructor for class com.google.errorprone.apply.ImportStatements
Deprecated.
Use ImportStatements#create(JCCompilationUnit, ImportOrganizer) instead
IncompatibleArgumentType - Class in com.google.errorprone.bugpatterns.collectionincompatibletype
 
IncompatibleArgumentType() - Constructor for class com.google.errorprone.bugpatterns.collectionincompatibletype.IncompatibleArgumentType
 
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
 
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
 
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
 
IndexOfChar() - Constructor for class com.google.errorprone.bugpatterns.IndexOfChar
 
InexactVarargsConditional - Class in com.google.errorprone.bugpatterns
 
InexactVarargsConditional() - Constructor for class com.google.errorprone.bugpatterns.InexactVarargsConditional
 
infer() - Method in class com.google.errorprone.refaster.Inliner
 
inferModule(Name) - Method in class com.google.errorprone.VisitorState
Infers a module symbol for the given flat class name.
InfiniteRecursion - Class in com.google.errorprone.bugpatterns
 
InfiniteRecursion() - Constructor for class com.google.errorprone.bugpatterns.InfiniteRecursion
 
inGeneratedCode - Variable in class com.google.errorprone.SuppressionHelper.SuppressionInfo
 
init(ProcessingEnvironment) - Method in class com.google.errorprone.DocGenProcessor
init(JavacTask, String...) - Method in class com.google.errorprone.ErrorProneJavacPlugin
 
init(JavacTask, String...) - Method in class com.google.errorprone.refaster.RefasterRuleCompiler
 
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.
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
 
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.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
 
inlineImplicitType(Inliner) - Method in class com.google.errorprone.refaster.UVariableDecl
 
inlineList(Iterable<? extends Inlineable<? extends R>>) - Method in class com.google.errorprone.refaster.Inliner
 
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 interface com.google.errorprone.refaster.UStatement
 
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
 
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(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 enum com.google.errorprone.refaster.ImportPolicy
 
InstanceMethod - Class in com.google.errorprone.matchers
Matches an instance method expression.
InstanceMethod(Matcher<? super ExpressionTree>, String) - Constructor for class com.google.errorprone.matchers.InstanceMethod
 
instanceMethod() - Static method in class com.google.errorprone.matchers.Matchers
Matches an instance method.
instanceMethod(Matcher<? super ExpressionTree>, String) - Static method in class com.google.errorprone.matchers.Matchers
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
 
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
 
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
 
IntLongMath() - Constructor for class com.google.errorprone.bugpatterns.IntLongMath
 
InvalidCommandLineOptionException - Exception in com.google.errorprone
 
InvalidCommandLineOptionException(String) - Constructor for exception com.google.errorprone.InvalidCommandLineOptionException
 
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
 
InvalidTimeZoneID - Class in com.google.errorprone.bugpatterns
 
InvalidTimeZoneID() - Constructor for class com.google.errorprone.bugpatterns.InvalidTimeZoneID
 
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_SCOPING_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
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.
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.
isCanonical() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
Returns true if 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).
isConcreteClassWithoutRunWith - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Match a class which appears to be missing a @RunWith annotation.
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.
isDescendantOfMethod(String, String) - Static method in class com.google.errorprone.matchers.Matchers
Matches an instance method that is a descendant of the instance method specified by the class name and method name.
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
 
isDropErrorsToWarnings() - Method in class com.google.errorprone.ErrorProneOptions
 
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
 
isExactType(String) - Static method in class com.google.errorprone.predicates.TypePredicates
Match types that are exactly equal.
isExactType(Supplier<Type>) - 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.
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.NumericEquality
 
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) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils
 
isHigher(OperatorPrecedence) - Method in enum com.google.errorprone.util.OperatorPrecedence
 
isImmutableType(Type) - Static method in class com.google.errorprone.bugpatterns.ImmutableCollections
 
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.
IsInstanceOfClass - Class in com.google.errorprone.bugpatterns
 
IsInstanceOfClass() - Constructor for class com.google.errorprone.bugpatterns.IsInstanceOfClass
 
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.
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
 
IsLastStatementInBlock<T extends com.sun.source.tree.StatementTree> - Class in com.google.errorprone.matchers
A matcher that returns true if the statement is the final statement in the block.
IsLastStatementInBlock() - Constructor for class com.google.errorprone.matchers.IsLastStatementInBlock
 
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.
IsLoggableTagLength - Class in com.google.errorprone.bugpatterns.android
 
IsLoggableTagLength() - Constructor for class com.google.errorprone.bugpatterns.android.IsLoggableTagLength
 
isNonNull() - 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
Matches if the expression is provably null.
isPresent() - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
 
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.
isRemoveLine() - Method in class com.google.errorprone.fixes.AppliedFix
 
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<T extends com.sun.source.tree.Tree> - 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
 
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(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(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(Type, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if erasure(s) == erasure(t).
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.
isSubtype(Type, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if erasure(s) <: erasure(t).
IsSubtypeOf<T extends com.sun.source.tree.Tree> - 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
 
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(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.
isSupportedOption(String) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
isSupportedOption(String) - Static method in class com.google.errorprone.ErrorProneOptions
isSuppressed(Tree) - 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
Returns true if the given symbol is annotated with a @SuppressWarnings that disables this bug checker.
isSuppressed(Suppressible, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
Returns true if this checker should be suppressed on the current tree path.
isSuppressed(Suppressible, Set<String>, Set<Class<? extends Annotation>>, BugPattern.SeverityLevel, boolean, boolean) - Static method in class com.google.errorprone.SuppressionHelper
Returns true if this checker should be suppressed on the current tree path.
isTestCaseDescendant - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Matches a class that inherits from TestCase.
isTestOnlyTarget() - Method in class com.google.errorprone.ErrorProneOptions
 
isThreadSafeType(Set<String>, Type) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
isThreadSafeType(boolean, Set<String>, Type) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Returns an ThreadSafety.Violation explaining whether the type is threadsafe.
isThreadSafeTypeParameter(Symbol.TypeVariableSymbol) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Returns true if the given type parameter's declaration is annotated with ThreadSafety.typeParameterAnnotation indicated it will only ever be instantiated with thread-safe types.
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
 
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'.
IterableAndIterator - Class in com.google.errorprone.bugpatterns
 
IterableAndIterator() - Constructor for class com.google.errorprone.bugpatterns.IterableAndIterator
 
IterablePathParameter - Class in com.google.errorprone.bugpatterns
 
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_VOID_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
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.
JavaLangClash - Class in com.google.errorprone.bugpatterns
 
JavaLangClash() - Constructor for class com.google.errorprone.bugpatterns.JavaLangClash
 
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
 
JdkObsolete() - Constructor for class com.google.errorprone.bugpatterns.JdkObsolete
 
JMockTestWithoutRunWithOrRuleAnnotation - Class in com.google.errorprone.bugpatterns
 
JMockTestWithoutRunWithOrRuleAnnotation() - Constructor for class com.google.errorprone.bugpatterns.JMockTestWithoutRunWithOrRuleAnnotation
 
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
 
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
 
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
 
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
 
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
 
JUnitMatchers - Class in com.google.errorprone.matchers
Matchers for code patterns which appear to be JUnit-based tests.
JUnitMatchers() - Constructor for class com.google.errorprone.matchers.JUnitMatchers
 

K

Key(String) - Constructor for class com.google.errorprone.refaster.Bindings.Key
 
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
 
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.util.ErrorProneToken
 
kindIs(Tree.Kind) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node of a given kind, for example, an Annotation or a switch block.
knownTypes(ThreadSafety.KnownTypes) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
Information about known types and whether they're known to be safe or unsafe.

L

LambdaFunctionalInterface - Class in com.google.errorprone.bugpatterns
 
LambdaFunctionalInterface() - Constructor for class com.google.errorprone.bugpatterns.LambdaFunctionalInterface
 
LazyInit - Annotation Type in com.google.errorprone.annotations.concurrent
Use this annotation on any static or field that will be initialized lazily, where races yield no semantic difference in the code.
leastUpperBound(LocalStore<V>) - Method in class com.google.errorprone.dataflow.LocalStore
 
leastUpperBound(Nullness) - Method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
 
length() - Method in class com.google.errorprone.fixes.Replacement
The length of the input text to be replaced.
length() - Method in class com.google.errorprone.refaster.StringName
 
LevenshteinEditDistance - Class in com.google.errorprone.names
A utility class for finding the Levenshtein edit distance between strings.
lhs() - Method in class com.google.errorprone.bugpatterns.EqualsIncompatibleType.TypeCompatibilityReport
 
LIKELY_ERROR - Static variable in class com.google.errorprone.BugPattern.StandardTags
This check, for reasons of backwards compatibility or difficulty in cleaning up, should be considered very likely to represent a real error in the vast majority (>99.9%) of cases, but couldn't otherwise be turned on as an ERROR.
linkUrl() - Method in class com.google.errorprone.BugCheckerInfo
 
linkUrl() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
listenToDiagnostics(DiagnosticListener<? super JavaFileObject>) - Method in class com.google.errorprone.BaseErrorProneCompiler.Builder
 
listenToDiagnostics(DiagnosticListener<? super JavaFileObject>) - Method in class com.google.errorprone.ErrorProneCompiler.Builder
 
LiteByteStringUtf8 - Class in com.google.errorprone.bugpatterns
 
LiteByteStringUtf8() - Constructor for class com.google.errorprone.bugpatterns.LiteByteStringUtf8
 
loadClass(String, boolean) - Method in class com.google.errorprone.internal.NonDelegatingClassLoader
 
loadPlugins(ScannerSupplier, Context) - Static method in class com.google.errorprone.ErrorPronePlugins
 
loadVersionFromPom() - Static method in class com.google.errorprone.ErrorProneVersion
Loads the Error Prone version.
LocalStore<V extends org.checkerframework.dataflow.analysis.AbstractValue<V>> - Class in com.google.errorprone.dataflow
Immutable map from each local variable to its AbstractValue.
LocalStore.Builder<V extends org.checkerframework.dataflow.analysis.AbstractValue<V>> - Class in com.google.errorprone.dataflow
Builder for LocalStore instances.
LocalVarBinding - Class in com.google.errorprone.refaster
Binding for a local variable in a template.
LocalVarBinding() - Constructor for class com.google.errorprone.refaster.LocalVarBinding
 
LocalVariable() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.LocalVariable
 
LocalVariableValues<T> - Interface in com.google.errorprone.dataflow
Read-only access to LocalStore for convenience.
LockMethod - Annotation Type in com.google.errorprone.annotations.concurrent
The method to which this annotation is applied acquires one or more locks.
LockMethodChecker - Class in com.google.errorprone.bugpatterns.threadsafety
 
LockMethodChecker() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.LockMethodChecker
 
logFatalError(Log) - Method in error com.google.errorprone.ErrorProneError
 
LogicalAssignment - Class in com.google.errorprone.bugpatterns
 
LogicalAssignment() - Constructor for class com.google.errorprone.bugpatterns.LogicalAssignment
 
longLit(long) - Static method in class com.google.errorprone.refaster.ULiteral
 
LongLiteralLowerCaseSuffix - Class in com.google.errorprone.bugpatterns
Matcher for a long literal with a lower-case ell for a suffix (e.g.
LongLiteralLowerCaseSuffix() - Constructor for class com.google.errorprone.bugpatterns.LongLiteralLowerCaseSuffix
 
looksLikeJUnit3SetUp - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Match a method which appears to be a JUnit 3 setUp method
looksLikeJUnit3TearDown - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Match a method which appears to be a JUnit 3 tearDown method
looksLikeJUnit4After - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Matches a method which appears to be a JUnit4 @After method.
looksLikeJUnit4Before - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Matches a method which appears to be a JUnit4 @Before method.
LoopConditionChecker - Class in com.google.errorprone.bugpatterns
 
LoopConditionChecker() - Constructor for class com.google.errorprone.bugpatterns.LoopConditionChecker
 

M

main(String[]) - Static method in class com.google.errorprone.DocGenTool
 
main(String[]) - Static method in class com.google.errorprone.ErrorProneCompiler
Entry point for compiling Java code with error-prone enabled.
maker() - Method in class com.google.errorprone.refaster.Inliner
 
markerAnnotations(ImmutableSet<String>) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Builder
Annotations that will cause a class to be tested with this ThreadSafety instance; for example, when testing a class for immutability, this should be @Immutable.
MaskedClassLoader - Class in com.google.errorprone
A classloader that allows plugins to access the Error Prone classes from the compiler classpath.
MaskedClassLoader(ClassLoader) - Constructor for class com.google.errorprone.MaskedClassLoader
 
match(JCTree, Context) - Method in class com.google.errorprone.refaster.BlockTemplate
If the tree is a JCTree.JCBlock, returns a list of disjoint matches corresponding to the exact list of template statements found consecutively; otherwise, returns an empty list.
match(JCTree, Context) - Method in class com.google.errorprone.refaster.ExpressionTemplate
Returns the matches of this template against the specified target AST.
match(JCTree, Context) - Method in class com.google.errorprone.refaster.Template
 
matchAllDiagnostics() - Method in class com.google.errorprone.CompilationTestHelper
By default, the compilation helper will only inspect diagnostics generated by the check being tested.
matchAnnotatedType(AnnotatedTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AnnotatedTypeTreeMatcher
 
matchAnnotatedType(AnnotatedTypeTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullablePrimitive
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.RestrictToEnforcer
 
matchAnnotation(AnnotationTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AnnotationTreeMatcher
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.CompatibleWithMisuse
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IncompatibleModifiersChecker
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.AssistedInjectAndInjectOnSameConstructor
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.AutoFactoryAtInject
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.ProvidesMethodOutsideOfModule
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.JavaxInjectOnFinalField
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.MoreThanOneInjectableConstructor
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.MoreThanOneQualifier
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.ScopeAnnotationOnInterfaceOrAbstractClass
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit4ClassUsedInJUnit3
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingSuperCall
Prevents abstract methods from being annotated with @CallSuper et al.
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RequiredModifiersChecker
 
matchAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SuppressWarningsDeprecated
 
matchArgument(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReferenceEquality
 
matchArgument(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NumericEquality
 
matchArgument(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OptionalEquality
 
matchArgument(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ReferenceEquality
 
matchArgument(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringEquality
 
matchArrayAccess(ArrayAccessTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ArrayAccessTreeMatcher
 
matchArrayAccess(ArrayAccessTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.ParameterNotNullable
 
matchArrayType(ArrayTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ArrayTypeTreeMatcher
 
matchAssert(AssertTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AssertFalse
 
matchAssert(AssertTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AssertTreeMatcher
 
matchAssignment(AssignmentTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AssignmentTreeMatcher
 
matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IntLongMath
 
matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
 
matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonAtomicVolatileUpdate
 
matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.FieldMissingNullable
 
matchAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfAssignment
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReferenceEquality
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BadShiftAmount
 
matchBinary(BinaryTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.BinaryTreeMatcher
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComparisonOutOfRange
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComplexBooleanConstant
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ConstantOverflow
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DivZero
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsNaN
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IdentityBinaryExpression
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OperatorPrecedence
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ProtoFieldNullComparison
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ProtoStringFieldReferenceEquality
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RandomModInteger
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ShortCircuitBoolean
 
matchBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SizeGreaterThanOrEqualsZero
 
matchBinaryTree(BinaryTree, List<Matcher<ExpressionTree>>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Given a BinaryTree to match against and a list of two matchers, applies the matchers to the operands in both orders.
matchBlock(BlockTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.BlockTreeMatcher
 
matchBlock(BlockTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MultiVariableDeclaration
 
matchBreak(BreakTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.BreakTreeMatcher
 
matchBreak(BreakTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Finally
 
matchCase(CaseTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CaseTreeMatcher
 
matchCatch(CatchTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CatchTreeMatcher
 
matchCatch(CatchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CatchAndPrintStackTrace
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AmbiguousMethodReference
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.FragmentInjection
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.FragmentNotInstantiable
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BadAnnotationImplementation
 
matchClass(ClassTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ClassTreeMatcher
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
Validate that at most one of CheckReturnValue and CanIgnoreReturnValue are applied to a class (or interface or enum).
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ClassCanBeStatic
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComparableAndComparator
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComparableType
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DepAnn
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsHashCode
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FunctionalInterfaceClash
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.HidingField
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.AssistedInjectAndInjectOnConstructors
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.PrivateConstructorForNoninstantiableModule
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.ScopeOnModule
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.AssistedInjectScoping
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.InvalidTargetingOnScopingAnnotation
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.MoreThanOneScopeAnnotationOnClass
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.OverlappingQualifierAndScopeAnnotation
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.QualifierWithTypeUse
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.ScopeOrQualifierAnnotationRetention
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InputStreamSlowMultibyteRead
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IterableAndIterator
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JavaLangClash
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JdkObsolete
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnitAmbiguousTestClass
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MultiVariableDeclaration
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.overloading.InconsistentOverloads
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OverrideThrowableToString
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PrivateConstructorForUtilityClass
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ProvidesFixChecker
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableAnnotationChecker
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableEnumChecker
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeParameterShadowing
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UngroupedOverloads
 
matchClass(ClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.VarTypeName
 
matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CompilationUnitTreeMatcher
 
matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ChainingConstructorIgnoresParameter
 
matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ClassName
 
matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EmptyTopLevelDeclaration
 
matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MockitoCast
 
matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MultipleTopLevelClasses
 
matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PackageInfo
 
matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PackageLocation
 
matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RemoveUnusedImports
 
matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.WildcardImport
 
matchCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CompoundAssignmentTreeMatcher
 
matchCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DivZero
 
matchCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NarrowingCompoundAssignment
 
matchCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
 
matchCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonAtomicVolatileUpdate
 
matchConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ConditionalExpressionTreeMatcher
 
matchConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ConditionalExpressionNumericPromotion
 
matchConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullTernary
 
matchContinue(ContinueTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ContinueTreeMatcher
 
matchContinue(ContinueTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Finally
 
matchDoWhileLoop(DoWhileLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.DoWhileLoopTreeMatcher
 
matchDoWhileLoop(DoWhileLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LogicalAssignment
 
matchDoWhileLoop(DoWhileLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LoopConditionChecker
 
matchEmptyStatement(EmptyStatementTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.EmptyStatementTreeMatcher
 
matchEmptyStatement(EmptyStatementTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EmptyIfStatement
Match empty statement if: - Parent statement is an if - The then part of the parent if is an empty statement, and - The else part of the parent if does not exist
matchEnhancedForLoop(EnhancedForLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.EnhancedForLoopTreeMatcher
 
matchEnhancedForLoop(EnhancedForLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
 
MATCHER - Static variable in class com.google.errorprone.bugpatterns.DeadException
 
MATCHER - Static variable in class com.google.errorprone.bugpatterns.StreamResourceLeak
 
Matcher<T extends com.sun.source.tree.Tree> - Interface in com.google.errorprone.matchers
Define a predicate on a Tree, which also accesses the state of AST traversal.
Matchers - Class in com.google.errorprone.matchers
Static factory methods which make the DSL read more fluently.
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.AbstractTypeMatcher
 
matches(AnnotationTree, VisitorState) - Method in class com.google.errorprone.matchers.AnnotationDoesNotHaveArgument
 
matches(AnnotationTree, VisitorState) - Method in class com.google.errorprone.matchers.AnnotationHasArgumentWithValue
 
matches(AnnotationTree, VisitorState) - Method in class com.google.errorprone.matchers.AnnotationType
 
matches(StatementTree, VisitorState) - Method in class com.google.errorprone.matchers.Asserts
 
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.ChildMultiMatcher
 
matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.CompileTimeConstantExpressionMatcher
 
matches(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.matchers.CompoundAssignment
 
matches(Tree, VisitorState) - Method in class com.google.errorprone.matchers.Contains
 
matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.DescendantOf
 
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.Enclosing.BlockOrCase
 
matches(Tree, VisitorState) - Method in class com.google.errorprone.matchers.HasIdentifier
 
matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.InstanceMethod
 
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.IsLastStatementInBlock
 
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.IsSameType
 
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.IsSubtypeOf
 
matches(T, VisitorState) - Method in interface com.google.errorprone.matchers.Matcher
 
matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodInvocation
 
matches(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodInvocationArgument
 
matches(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodInvocationMethodSelect
 
matches(MethodTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodVisibility
 
matches() - Method in class com.google.errorprone.matchers.MultiMatcher.MultiMatchResult
True if the MultiMatcher matched the nodes expected.
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.NextStatement
 
matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.NullnessMatcher
 
matches(Tree, VisitorState) - Method in class com.google.errorprone.matchers.ParentNode
 
matches(StatementTree, VisitorState) - Method in class com.google.errorprone.matchers.Returns
 
matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.StringLiteral
 
matches(StatementTree, VisitorState) - Method in class com.google.errorprone.matchers.Throws
 
Matches - Annotation Type in com.google.errorprone.refaster.annotation
Specify an error-prone Matcher to further restrict what expressions are matched by the annotated parameter.
matchExpressionStatement(ExpressionStatementTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ExpressionStatementTreeMatcher
 
matchForLoop(ForLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ForLoopTreeMatcher
 
matchForLoop(ForLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IncrementInForLoopAndHeader
 
matchForLoop(ForLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LogicalAssignment
 
matchForLoop(ForLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LoopConditionChecker
 
matchIdentifier(IdentifierTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractToString
 
matchIdentifier(IdentifierTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.RestrictToEnforcer
 
matchIdentifier(IdentifierTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.IdentifierTreeMatcher
 
matchIf(IfTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.IfTreeMatcher
 
matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LogicalAssignment
 
matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NestedInstanceOfConditions
 
matchIf(IfTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.DoubleCheckedLocking
 
matchImport(ImportTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ImportTreeMatcher
 
matchImport(ImportTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonCanonicalStaticImport
 
matchImport(ImportTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonCanonicalStaticMemberImport
 
matchImport(ImportTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryStaticImport
 
matchingNodes() - Method in class com.google.errorprone.matchers.MultiMatcher.MultiMatchResult
The list of nodes which matched the MultiMatcher's expectations (could be empty if the match type was ALL and there were no child nodes).
matchInstanceOf(InstanceOfTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.InstanceOfTreeMatcher
 
matchIntersectionType(IntersectionTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.IntersectionTypeTreeMatcher
 
matchLabeledStatement(LabeledStatementTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.LabeledStatementTreeMatcher
 
matchLambdaExpression(LambdaExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.RestrictToEnforcer
 
matchLambdaExpression(LambdaExpressionTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.LambdaExpressionTreeMatcher
 
matchLambdaExpression(LambdaExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
 
matchLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.HardCodedSdCardPath
 
matchLiteral(LiteralTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.LiteralTreeMatcher
 
matchLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FloatingPointLiteralPrecision
 
matchLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LongLiteralLowerCaseSuffix
 
matchLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OrphanedFormatString
 
matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
 
matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.RestrictToEnforcer
 
matchMemberReference(MemberReferenceTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MemberReferenceTreeMatcher
 
matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DoNotCallChecker
 
matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FutureReturnValueIgnored
Detect member references that implement an interface that return Object, but resolve to a method that returns Future.
matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JdkObsolete
 
matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PredicateIncompatibleType
 
matchMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
 
matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractToString
 
matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.MislabeledAndroidString
 
matchMemberSelect(MemberSelectTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MemberSelectTreeMatcher
 
matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.ParameterNotNullable
 
matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StaticQualifiedUsingExpression
 
matchMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeParameterQualifier
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractExpectedExceptionChecker
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractTestExceptionChecker
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.RestrictToEnforcer
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.StaticOrDefaultInterfaceMethod
 
matchMethod(MethodTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MethodTreeMatcher
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ChainingConstructorIgnoresParameter
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
Validate @CheckReturnValue and CanIgnoreReturnValue usage on methods.
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ComparisonContractViolated
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DepAnn
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DoNotCallChecker
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsReference
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.formatstring.FormatStringAnnotationChecker
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ForOverrideChecker
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FunctionalInterfaceMethodChanged
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InfiniteRecursion
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.AndroidInjectionBeforeSuper
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.EmptySetMultibindingContributions
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.UseBinds
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.AssistedParameters
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.BindingToUnqualifiedCommonType
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.OverridesGuiceInjectableMethod
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.OverridesJavaxInjectableMethod
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.InjectedConstructorAnnotations
Matches injected constructors annotated with @Inject(optional=true) or binding annotations.
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.InjectOnConstructorOfAbstractClass
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.JavaxInjectOnAbstractMethod
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.QualifierOrScopeOnInjectMethod
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit3TestNotRun
Matches if: 1) Method's name begins with misspelled variation of "test".
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit4ClassAnnotationNonStatic
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit4TestNotRun
Matches if: The method is public, void, and has no parameters; the method is not already annotated with @Test, @Before, @After, @BeforeClass, or @AfterClass; the enclosing class appears to be intended to run in JUnit4, that is:
    it is non-abstract, it does not extend JUnit3 TestCase, it has an @RunWith annotation or at least one other method annotated @Test; and, the method appears to be a test method, that is:
      or, the method body contains a method call with a name that contains "assert", "verify", "check", "fail", or "expect".
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LambdaFunctionalInterface
Identifies methods with parameters that have a generic argument with Int, Long, or Double.
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MethodCanBeStatic
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingOverride
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingSuperCall
Matches a method that overrides a method that has been annotated with @CallSuper et al., but does not call the super method.
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MixedArrayDimensions
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MustBeClosedChecker
Check that the MustBeClosed annotation is only used for constructors of AutoCloseables and methods that return an AutoCloseable.
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MutableMethodReturnType
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonFinalCompileTimeConstant
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonOverridingEquals
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullableConstructor
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullablePrimitive
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullableVoid
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Overrides
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RedundantThrows
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.AbstractLockMethodChecker
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThrowsUncheckedException
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeParameterShadowing
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeParameterUnusedInFormals
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnsynchronizedOverridesSynchronized
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UseCorrectAssertInTests
 
matchMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.WrongParameterPackage
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractToString
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.BinderIdentityRestoredDangerously
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.IsLoggableTagLength
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.RestrictToEnforcer
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.WakelockReleasedDangerously
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.argumentselectiondefects.ArgumentSelectionDefectChecker
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.argumentselectiondefects.AssertEqualsArgumentOrderChecker
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayEquals
Suggests replacing with Arrays.equals(a, b).
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayFillIncompatibleType
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArrayHashCode
Wraps identity hashcode computations in calls to Arrays.hashCode(long[]) if the array is single dimensional or Arrays.deepHashCode(java.lang.Object[]) if the array is multidimensional.
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ArraysAsListPrimitiveArray
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AssertionFailureIgnored
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BigDecimalLiteralDouble
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BooleanParameter
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MethodInvocationTreeMatcher
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CannotMockFinalClass
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CanonicalDuration
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ChainingConstructorIgnoresParameter
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ClassNewInstance
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.CollectionIncompatibleType
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.collectionincompatibletype.IncompatibleArgumentType
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CollectionToArraySafeParameter
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CollectorShouldNotUseState
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CompileTimeConstantChecker
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DefaultCharset
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DoNotCallChecker
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.EqualsIncompatibleType
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.formatstring.FormatString
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.formatstring.FormatStringAnnotationChecker
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ForOverrideChecker
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FutureReturnValueIgnored
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FuturesGetCheckedIllegalExceptionType
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FuzzyEqualsShouldNotBeUsedInEqualsMethod
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.GetClassOnAnnotation
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.GetClassOnClass
Suggests removing getClass() or changing to Class.class.
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.GetClassOnEnum
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.HashtableContains
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ImmutableModification
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IndexOfChar
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InexactVarargsConditional
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.BindingToUnqualifiedCommonType
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InsecureCipherMode
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InvalidPatternSyntax
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InvalidTimeZoneID
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IsInstanceOfClass
Suggests removing getClass() or changing to Class.class.
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit3FloatingPointComparisonWithoutDelta
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnit4ClassUsedInJUnit3
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JUnitAssertSameCheck
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LiteByteStringUtf8
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MisusedWeekYear
Match uses of SimpleDateFormat.applyPattern and SimpleDateFormat.applyLocalizedPattern in which the pattern passed in contains YYYY but not ww, signifying that it was not intended to be a week date.
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MockitoUsage
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ModifyCollectionInEnhancedForLoop
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ModifyingCollectionWithItself
Matches calls to addAll, containsAll, removeAll, and retainAll on itself
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MultipleParallelOrSequentialCalls
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MultipleUnaryOperatorsInMethodCall
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MustBeClosedChecker
Check that invocations of methods annotated with MustBeClosed are called within the resource variable initializer of a try-with-resources statement.
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NCopiesOfChar
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonRuntimeAnnotation
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.OptionalNotPresent
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ParameterComment
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ParameterName
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PreconditionsCheckNotNull
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PreconditionsCheckNotNullPrimitive
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PreconditionsInvalidPlaceholder
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PrimitiveArrayPassedToVarargsMethod
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.PrivateSecurityContractProtoAccess
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ProtocolBufferOrdinal
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ProtoFieldPreconditionsCheckNotNull
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RandomCast
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ReachabilityFenceUsage
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RestrictedApiChecker
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfComparison
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfEquals
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ShouldHaveEvenArgs
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StreamResourceLeak
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringSplitter
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThreadJoinLoop
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThreeLetterTimeZoneID
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThrowIfUncheckedKnownChecked
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TruthConstantAsserts
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TruthSelfEquals
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessarySetDefault
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryTypeArgument
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnsafeFinalization
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnusedCollectionModifiedInPlace
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.URLEqualsHashCode
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.WaitNotInLoop
 
matchModifiers(ModifiersTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ModifiersTreeMatcher
 
matchNewArray(NewArrayTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.NewArrayTreeMatcher
 
matchNewArray(NewArrayTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.RestrictToEnforcer
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.argumentselectiondefects.ArgumentSelectionDefectChecker
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.argumentselectiondefects.AutoValueConstructorOrderChecker
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BigDecimalLiteralDouble
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BoxedPrimitiveConstructor
 
matchNewClass(NewClassTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.NewClassTreeMatcher
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CompileTimeConstantChecker
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DeadException
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DeadThread
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DefaultCharset
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DoubleBraceInitialization
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.formatstring.FormatStringAnnotationChecker
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JdkObsolete
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MisusedWeekYear
Match uses of the SimpleDateFormat constructor in which the pattern passed in contains YYYY but not ww, signifying that it was not intended to be a week date.
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MustBeClosedChecker
Check that construction of constructors annotated with MustBeClosed occurs within the resource variable initializer of a try-with-resources statement.
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ParameterComment
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ParameterName
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.RestrictedApiChecker
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.StringBuilderInitWithChar
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThreadLocalUsage
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryTypeArgument
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnusedAnonymousClass
 
matchNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.URLEqualsHashCode
 
matchNewClassOrMethodInvocation(ExpressionTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.AbstractMustBeClosedChecker
Check that constructors and methods annotated with MustBeClosed occur within the resource variable initializer of a try-with-resources statement.
matchParameterizedType(ParameterizedTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ParameterizedTypeTreeMatcher
 
matchParenthesized(ParenthesizedTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ParenthesizedTreeMatcher
 
matchPrimitiveType(PrimitiveTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.PrimitiveTypeTreeMatcher
 
matchResult(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.method.ConstructorMatcherImpl
 
matchResult(ExpressionTree, MatchState, VisitorState) - Method in class com.google.errorprone.matchers.method.MethodSignatureMatcherImpl
 
matchResult(ExpressionTree, MatchState, VisitorState) - Method in class com.google.errorprone.matchers.method.ParameterMatcherImpl
 
matchReturn(ReturnTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ReturnTreeMatcher
 
matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Finally
 
matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FutureReturnValueIgnored
Returning a type of Future from a lambda or method that returns Object loses the Future type, which can result in suppressed errors or race conditions.
matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.dagger.ProvidesNull
Matches explicit "return null" statements in methods annotated with @Provides but not @Nullable.
matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IntLongMath
 
matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
 
matchReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.ReturnMissingNullable
 
matchSwitch(SwitchTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.SwitchTreeMatcher
 
matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FallThrough
 
matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingCasesInEnumSwitch
 
matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingDefault
 
matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SwitchDefault
 
matchSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.UnnecessaryDefaultInEnumSwitch
 
matchSynchronized(SynchronizedTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.SynchronizedTreeMatcher
 
matchSynchronized(SynchronizedTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.StaticGuardedByInstance
 
matchSynchronized(SynchronizedTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.SynchronizeOnNonFinalField
 
matchThrow(ThrowTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ThrowTreeMatcher
 
matchThrow(ThrowTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.Finally
 
matchThrow(ThrowTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ThrowNull
 
matchTry(TryTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.TryTreeMatcher
 
matchTry(TryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CatchFail
 
matchTry(TryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MissingFail
 
matchTry(TryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TryFailThrowable
 
matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.android.BundleDeserializationCast
 
matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.BadComparable
 
matchTypeCast(TypeCastTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.TypeCastTreeMatcher
 
matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.FloatCast
 
matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.InstanceOfAndCastMatchWrongType
 
matchTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
 
matchTypeParameter(TypeParameterTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.TypeParameterTreeMatcher
 
matchTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JavaLangClash
 
matchTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.ImmutableChecker
 
matchTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.TypeParameterNaming
 
matchTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.VarTypeName
 
matchUnary(UnaryTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.UnaryTreeMatcher
 
matchUnary(UnaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
 
matchUnary(UnaryTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NonAtomicVolatileUpdate
 
matchUnionType(UnionTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.UnionTypeTreeMatcher
 
matchVariable(VariableTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.VariableTreeMatcher
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.CannotMockFinalClass
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.ConstantField
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DateFormatConstant
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.DepAnn
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.inject.guice.InjectOnFinalField
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IntLongMath
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.IterablePathParameter
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.JMockTestWithoutRunWithOrRuleAnnotation
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MixedArrayDimensions
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.MutableConstantField
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NoAllocationChecker
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.NullablePrimitive
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.nullness.FieldMissingNullable
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.SelfAssignment
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByChecker
 
matchVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.VarChecker
 
matchWhileLoop(WhileLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.WhileLoopTreeMatcher
 
matchWhileLoop(WhileLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LogicalAssignment
 
matchWhileLoop(WhileLoopTree, VisitorState) - Method in class com.google.errorprone.bugpatterns.LoopConditionChecker
 
matchWildcard(WildcardTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.WildcardTreeMatcher
 
MAX_CASES_TO_PRINT - Static variable in class com.google.errorprone.bugpatterns.MissingCasesInEnumSwitch
 
MAX_MEMBER_IMPORTS - Static variable in class com.google.errorprone.bugpatterns.WildcardImport
Maximum number of members to import before switching to qualified names.
MayOptionallyUse - Annotation Type in com.google.errorprone.refaster.annotation
Indicates that a parameter to a placeholder method is not required to be used in the placeholder's implementation.
members() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
The field or variable symbol for a static non-type member import.
merge(SuggestedFix.Builder) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Merges all edits from other into this.
merge(SuggestedFix) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Merges all edits from other into this.
message() - Method in class com.google.errorprone.BugCheckerInfo
 
message() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
message() - Method in class com.google.errorprone.bugpatterns.formatstring.FormatStringValidation.ValidationResult
A human-readable diagnostic message.
message() - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
 
method() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
Method(Matcher<MethodTree>) - Constructor for class com.google.errorprone.matchers.Enclosing.Method
 
MethodCanBeStatic - Class in com.google.errorprone.bugpatterns
 
MethodCanBeStatic() - Constructor for class com.google.errorprone.bugpatterns.MethodCanBeStatic
 
methodHasArity(int) - Static method in class com.google.errorprone.matchers.Matchers
Matches if the method accepts the given number of arguments.
methodHasParameters(Matcher<VariableTree>...) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node that represents a method declaration, based on the list of variableMatchers.
methodHasParameters(List<Matcher<VariableTree>>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node that represents a method declaration, based on the list of variableMatchers.
methodHasParameters(ChildMultiMatcher.MatchType, Matcher<VariableTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches if the given matcher matches all of/any of the parameters to this method.
MethodHasParameters - Class in com.google.errorprone.matchers
Matches if the given matcher matches all of/any of the parameters to this method.
MethodHasParameters(ChildMultiMatcher.MatchType, Matcher<VariableTree>) - Constructor for class com.google.errorprone.matchers.MethodHasParameters
 
methodHasVisibility(MethodVisibility.Visibility) - Static method in class com.google.errorprone.matchers.Matchers
 
MethodInfo - Interface in com.google.errorprone.dataflow.nullnesspropagation
Represents a Java method.
methodInvocation(Matcher<ExpressionTree>, ChildMultiMatcher.MatchType, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if it is a method invocation and the given matchers match.
methodInvocation(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if it is a method invocation and the method select matches methodSelectMatcher.
MethodInvocation - Class in com.google.errorprone.matchers
Matches a method invocation based on a matcher for the method select (receiver + method identifier) and one for the arguments.
MethodInvocation(Matcher<ExpressionTree>, ChildMultiMatcher.MatchType, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.MethodInvocation
Creates a new matcher for method invocations based on a method select and an argument matcher.
MethodInvocationArgument - Class in com.google.errorprone.matchers
Applies an Expression matcher to an argument of a MethodInvocation by position.
MethodInvocationArgument(int, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.MethodInvocationArgument
 
MethodInvocationMethodSelect - Class in com.google.errorprone.matchers
Adapts a matcher on MethodInvocationTree to match the MethodSelect of the MethodInvocation.
MethodInvocationMethodSelect(Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.MethodInvocationMethodSelect
 
methodIsConstructor() - Static method in class com.google.errorprone.matchers.Matchers
 
methodIsNamed(String) - Static method in class com.google.errorprone.matchers.Matchers
Match a method declaration with a specific name.
methodMatcher() - Method in class com.google.errorprone.bugpatterns.JUnit4SetUpNotRun
 
methodMatcher() - Method in class com.google.errorprone.bugpatterns.JUnit4TearDownNotRun
 
MethodMatchers - Class in com.google.errorprone.matchers.method
 
MethodMatchers() - Constructor for class com.google.errorprone.matchers.method.MethodMatchers
 
MethodMatchers.AnyMethodMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.ConstructorClassMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.ConstructorMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.InstanceMethodMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.MethodClassMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.MethodNameMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.MethodSignatureMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.ParameterMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.StaticMethodMatcher - Interface in com.google.errorprone.matchers.method
 
MethodNameMatcherImpl - Class in com.google.errorprone.matchers.method
Matchers that select on method name.
methodNameStartsWith(String) - Static method in class com.google.errorprone.matchers.Matchers
Match a method declaration that starts with a given string.
methodReceiverMatcher(Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.InstanceMethod
 
methodReturns(Matcher<? super Tree>) - Static method in class com.google.errorprone.matchers.Matchers
 
methodReturns(Supplier<Type>) - Static method in class com.google.errorprone.matchers.Matchers
 
methodReturnsNonNull() - Static method in class com.google.errorprone.matchers.Matchers
Matches a whitelisted method invocation that is known to never return null
methodReturnsNonPrimitiveType() - Static method in class com.google.errorprone.matchers.Matchers
Match a method that returns a non-primitive type.
methodSelect(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
 
MethodSignatureMatcherImpl - Class in com.google.errorprone.matchers.method
Matches on method signature.
MethodVisibility - Class in com.google.errorprone.matchers
A matcher for method visibility (public, private, protected, or default).
MethodVisibility(MethodVisibility.Visibility) - Constructor for class com.google.errorprone.matchers.MethodVisibility
 
MethodVisibility.Visibility - Enum in com.google.errorprone.matchers
 
methodWithClassAndName(String, String) - Static method in class com.google.errorprone.matchers.Matchers
Match a method declaration with a specific enclosing class and method name.
MislabeledAndroidString - Class in com.google.errorprone.bugpatterns.android
Replacement of misleading android.R.string constants with more intuitive ones.
MislabeledAndroidString() - Constructor for class com.google.errorprone.bugpatterns.android.MislabeledAndroidString
 
MissingCasesInEnumSwitch - Class in com.google.errorprone.bugpatterns
 
MissingCasesInEnumSwitch() - Constructor for class com.google.errorprone.bugpatterns.MissingCasesInEnumSwitch
 
MissingDefault - Class in com.google.errorprone.bugpatterns
 
MissingDefault() - Constructor for class com.google.errorprone.bugpatterns.MissingDefault
 
MissingFail - Class in com.google.errorprone.bugpatterns
 
MissingFail() - Constructor for class com.google.errorprone.bugpatterns.MissingFail
 
MissingOverride - Class in com.google.errorprone.bugpatterns
 
MissingOverride() - Constructor for class com.google.errorprone.bugpatterns.MissingOverride
 
MissingSuperCall - Class in com.google.errorprone.bugpatterns
 
MissingSuperCall() - Constructor for class com.google.errorprone.bugpatterns.MissingSuperCall
 
MisusedWeekYear - Class in com.google.errorprone.bugpatterns
Ban use of YYYY in a SimpleDateFormat pattern, unless it is being used for a week date.
MisusedWeekYear() - Constructor for class com.google.errorprone.bugpatterns.MisusedWeekYear
 
MixedArrayDimensions - Class in com.google.errorprone.bugpatterns
 
MixedArrayDimensions() - Constructor for class com.google.errorprone.bugpatterns.MixedArrayDimensions
 
MockitoCast - Class in com.google.errorprone.bugpatterns
 
MockitoCast() - Constructor for class com.google.errorprone.bugpatterns.MockitoCast
 
MockitoUsage - Class in com.google.errorprone.bugpatterns
 
MockitoUsage() - Constructor for class com.google.errorprone.bugpatterns.MockitoUsage
 
ModifyCollectionInEnhancedForLoop - Class in com.google.errorprone.bugpatterns
 
ModifyCollectionInEnhancedForLoop() - Constructor for class com.google.errorprone.bugpatterns.ModifyCollectionInEnhancedForLoop
 
ModifyingCollectionWithItself - Class in com.google.errorprone.bugpatterns
 
ModifyingCollectionWithItself() - Constructor for class com.google.errorprone.bugpatterns.ModifyingCollectionWithItself
 
MoreThanOneInjectableConstructor - Class in com.google.errorprone.bugpatterns.inject
Matches classes that have two or more constructors annotated with @Inject.
MoreThanOneInjectableConstructor() - Constructor for class com.google.errorprone.bugpatterns.inject.MoreThanOneInjectableConstructor
 
MoreThanOneQualifier - Class in com.google.errorprone.bugpatterns.inject
 
MoreThanOneQualifier() - Constructor for class com.google.errorprone.bugpatterns.inject.MoreThanOneQualifier
 
MoreThanOneScopeAnnotationOnClass - Class in com.google.errorprone.bugpatterns.inject
This checker matches if a class has more than one annotation that is a scope annotation(that is, the annotation is either annotated with Guice's @ScopeAnnotation or Javax's @Scope).
MoreThanOneScopeAnnotationOnClass() - Constructor for class com.google.errorprone.bugpatterns.inject.MoreThanOneScopeAnnotationOnClass
 
MultiMatcher<T extends com.sun.source.tree.Tree,N extends com.sun.source.tree.Tree> - Interface in com.google.errorprone.matchers
An matcher that applies a single matcher across multiple tree nodes.
MultiMatcher.MultiMatchResult<N extends com.sun.source.tree.Tree> - Class in com.google.errorprone.matchers
A result from the call of MultiMatcher.multiMatchResult(Tree, VisitorState), containing information about whether it matched, and if so, what nodes matched.
multiMatchResult(T, VisitorState) - Method in class com.google.errorprone.matchers.ChildMultiMatcher
 
multiMatchResult(T, VisitorState) - Method in interface com.google.errorprone.matchers.MultiMatcher
Attempt to match the given node, and return the associated subnodes that matched.
MultipleParallelOrSequentialCalls - Class in com.google.errorprone.bugpatterns
 
MultipleParallelOrSequentialCalls() - Constructor for class com.google.errorprone.bugpatterns.MultipleParallelOrSequentialCalls
 
MultipleTopLevelClasses - Class in com.google.errorprone.bugpatterns
 
MultipleTopLevelClasses() - Constructor for class com.google.errorprone.bugpatterns.MultipleTopLevelClasses
 
MultipleUnaryOperatorsInMethodCall - Class in com.google.errorprone.bugpatterns
 
MultipleUnaryOperatorsInMethodCall() - Constructor for class com.google.errorprone.bugpatterns.MultipleUnaryOperatorsInMethodCall
 
MultiVariableDeclaration - Class in com.google.errorprone.bugpatterns
 
MultiVariableDeclaration() - Constructor for class com.google.errorprone.bugpatterns.MultiVariableDeclaration
 
MustBeClosed - Annotation Type in com.google.errorprone.annotations
Annotation for constructors of AutoCloseables or methods that return an AutoCloseable and require that the resource is closed.
MustBeClosedChecker - Class in com.google.errorprone.bugpatterns
Checks if a constructor or method annotated with MustBeClosed is called within the resource variable initializer of a try-with-resources statement.
MustBeClosedChecker() - Constructor for class com.google.errorprone.bugpatterns.MustBeClosedChecker
 
MutableConstantField - Class in com.google.errorprone.bugpatterns
 
MutableConstantField() - Constructor for class com.google.errorprone.bugpatterns.MutableConstantField
 
mutableEnclosingInstance(Optional<ClassTree>, Type.ClassType) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety
Returns an enclosing instance for the specified type if it is thread-safe.
MutableMethodReturnType - Class in com.google.errorprone.bugpatterns
 
MutableMethodReturnType() - Constructor for class com.google.errorprone.bugpatterns.MutableMethodReturnType
 

N

name - Variable in class com.google.errorprone.BugPatternInstance
 
name() - Method in class com.google.errorprone.ExampleInfo
The name of the example, e.g.
name() - Method in class com.google.errorprone.util.ErrorProneToken
 
named(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
Match methods with the given name.
NamedParameterComment - Class in com.google.errorprone.bugpatterns.argumentselectiondefects
Helper methods for checking if a commented argument matches a formal parameter and for generating comments in the right format.
names() - Method in class com.google.errorprone.refaster.Inliner
 
NamingConventions - Class in com.google.errorprone.names
Utility functions for dealing with Java naming conventions
NamingConventions() - Constructor for class com.google.errorprone.names.NamingConventions
 
NarrowingCompoundAssignment - Class in com.google.errorprone.bugpatterns
 
NarrowingCompoundAssignment() - Constructor for class com.google.errorprone.bugpatterns.NarrowingCompoundAssignment
 
NCopiesOfChar - Class in com.google.errorprone.bugpatterns
 
NCopiesOfChar() - Constructor for class com.google.errorprone.bugpatterns.NCopiesOfChar
 
NeedlemanWunschEditDistance - Class in com.google.errorprone.names
The Needleman-Wunsch algorithm for finding least-cost string edit distances between pairs of strings.
negate() - Method in class com.google.errorprone.refaster.UAnyOf
 
negate() - Method in class com.google.errorprone.refaster.UExpression
 
negate() - Method in class com.google.errorprone.refaster.ULiteral
 
negation() - Method in class com.google.errorprone.refaster.ExpressionTemplate
 
NestedInstanceOfConditions - Class in com.google.errorprone.bugpatterns
 
NestedInstanceOfConditions() - Constructor for class com.google.errorprone.bugpatterns.NestedInstanceOfConditions
 
nestingKind(NestingKind) - Static method in class com.google.errorprone.matchers.Matchers
Matches an class based on whether it is nested in another class or method.
newArray(int) - Static method in class com.google.errorprone.refaster.Refaster
This is a placeholder for new T[size].
newInstance(BugChecker, Class<?>) - Static method in class com.google.errorprone.BugCheckerRefactoringTestHelper
 
newInstance(ScannerSupplier, Class<?>) - Static method in class com.google.errorprone.CompilationTestHelper
Returns a new CompilationTestHelper.
newInstance(Class<? extends BugChecker>, Class<?>) - Static method in class com.google.errorprone.CompilationTestHelper
Returns a new CompilationTestHelper.
nextStatement(Matcher<StatementTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a statement AST node if the following statement in the enclosing block matches the given matcher.
NextStatement<T extends com.sun.source.tree.StatementTree> - Class in com.google.errorprone.matchers
A matcher for the next statement following a given statement.
NextStatement(Matcher<StatementTree>) - Constructor for class com.google.errorprone.matchers.NextStatement
 
NO_MATCH - Static variable in class com.google.errorprone.matchers.Description
Describes the sentinel value of the case where the match failed.
NoAllocation - Annotation Type in com.google.errorprone.annotations
Annotation for method declarations, which denotes that this method will not cause allocations that are visible from source code.
NoAllocationChecker - Class in com.google.errorprone.bugpatterns
Checks methods annotated with @NoAllocation to ensure they really do not allocate.
NoAllocationChecker() - Constructor for class com.google.errorprone.bugpatterns.NoAllocationChecker
 
NoAutoboxing - Annotation Type in com.google.errorprone.refaster.annotation
Indicates that a Refaster rule should not allow autoboxing when it is typechecking a match.
node - Variable in class com.google.errorprone.matchers.Description
The AST node that matched.
nodeMatcher - Variable in class com.google.errorprone.matchers.ChildMultiMatcher
The matcher to apply to the subnodes in question.
NonAtomicVolatileUpdate - Class in com.google.errorprone.bugpatterns
Detects non-atomic updates to volatile variables.
NonAtomicVolatileUpdate() - Constructor for class com.google.errorprone.bugpatterns.NonAtomicVolatileUpdate
 
NonCanonicalStaticImport - Class in com.google.errorprone.bugpatterns
Types shouldn't be statically by their non-canonical name.
NonCanonicalStaticImport() - Constructor for class com.google.errorprone.bugpatterns.NonCanonicalStaticImport
 
NonCanonicalStaticMemberImport - Class in com.google.errorprone.bugpatterns
Members shouldn't be statically by their non-canonical name.
NonCanonicalStaticMemberImport() - Constructor for class com.google.errorprone.bugpatterns.NonCanonicalStaticMemberImport
 
NonDelegatingClassLoader - Class in com.google.errorprone.internal
A non-delegating URLClassLoader that searches its own resource path before the runtime classpath, reversing the usual classloader delegation model.
none() - Static method in class com.google.errorprone.refaster.Choice
The empty Choice.
NonFinalCompileTimeConstant - Class in com.google.errorprone.bugpatterns
Enforce that @CompileTimeConstant parameters are final or effectively final.
NonFinalCompileTimeConstant() - Constructor for class com.google.errorprone.bugpatterns.NonFinalCompileTimeConstant
 
nonNullLiteral() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if it is a literal other than null.
NonOverridingEquals - Class in com.google.errorprone.bugpatterns
Bug checker for equals methods that don't actually override equals.
NonOverridingEquals() - Constructor for class com.google.errorprone.bugpatterns.NonOverridingEquals
 
NonRuntimeAnnotation - Class in com.google.errorprone.bugpatterns
 
NonRuntimeAnnotation() - Constructor for class com.google.errorprone.bugpatterns.NonRuntimeAnnotation
 
not(Matcher<T>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node iff it does not match the given matcher.
nothing() - Static method in class com.google.errorprone.matchers.Matchers
A matcher that matches no AST node.
NotMatches - Annotation Type in com.google.errorprone.refaster.annotation
Specify an error-prone Matcher to further restrict what expressions are matched by the annotated parameter.
NullableConstructor - Class in com.google.errorprone.bugpatterns
 
NullableConstructor() - Constructor for class com.google.errorprone.bugpatterns.NullableConstructor
 
NullablePrimitive - Class in com.google.errorprone.bugpatterns
 
NullablePrimitive() - Constructor for class com.google.errorprone.bugpatterns.NullablePrimitive
 
NullableVoid - Class in com.google.errorprone.bugpatterns
 
NullableVoid() - Constructor for class com.google.errorprone.bugpatterns.NullableVoid
 
nullLit() - Static method in class com.google.errorprone.refaster.ULiteral
 
Nullness - Enum in com.google.errorprone.dataflow.nullnesspropagation
Represents one of the possible nullness values in our nullness analysis.
NullnessAnalysis - Class in com.google.errorprone.dataflow.nullnesspropagation
An interface to the nullness analysis.
NullnessMatcher - Class in com.google.errorprone.matchers
Matches an expression based on the result of the nullness dataflow analysis.
NullnessMatcher(Nullness) - Constructor for class com.google.errorprone.matchers.NullnessMatcher
 
NullTernary - Class in com.google.errorprone.bugpatterns
 
NullTernary() - Constructor for class com.google.errorprone.bugpatterns.NullTernary
 
numberValue(TreePath, Context) - Static method in class com.google.errorprone.dataflow.ConstantPropagationAnalysis
Returns the value of the leaf of exprPath, if it is determined to be a constant (always evaluates to the same numeric value), and null otherwise.
NumericEquality - Class in com.google.errorprone.bugpatterns
 
NumericEquality() - Constructor for class com.google.errorprone.bugpatterns.NumericEquality
 

O

OBJECT_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
of(String) - Static method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
Creates an explanation with one step.
of(T) - Static method in class com.google.errorprone.refaster.Choice
Returns a Choice with only one option, t.
of(CharSequence) - Static method in class com.google.errorprone.refaster.StringName
 
OfKind - Annotation Type in com.google.errorprone.refaster.annotation
Annotation to specify what tree kinds are allowed or disallowed to match a given expression.
onClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
Match the given type exactly.
onClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on types that satisfy the given predicate.
onClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on types that satisfy the given predicate.
onClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on types with the given fully-qualified name.
onClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on the given type exactly.
onClassAny(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on types that are equal to any of the given types.
onClassAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on types that are equal to any of the given types.
onDescendantOf(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on descendants of the given fully-qualified type name.
onDescendantOf(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on descendants of the given type.
onDescendantOfAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on types that are descendants of any of the given types.
onDescendantOfAny(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on types that are descendants of any of the given types.
onDescribed(Description) - Method in class com.google.errorprone.apply.DescriptionBasedDiff
 
onDescribed(Description) - Method in interface com.google.errorprone.DescriptionListener
Reports a suggested modification to the code.
onDescribed(Description) - Method in class com.google.errorprone.JavacErrorDescriptionListener
 
onExactClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on types with the given fully-qualified name.
onExactClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on the given type exactly.
onlyMatchingNode() - Method in class com.google.errorprone.matchers.MultiMatcher.MultiMatchResult
 
OperatorPrecedence - Class in com.google.errorprone.bugpatterns
 
OperatorPrecedence() - Constructor for class com.google.errorprone.bugpatterns.OperatorPrecedence
 
OperatorPrecedence - Enum in com.google.errorprone.util
The precedence for an operator kind in the com.sun.source.tree API.
OptionalEquality - Class in com.google.errorprone.bugpatterns
 
OptionalEquality() - Constructor for class com.google.errorprone.bugpatterns.OptionalEquality
 
OptionalNotPresent - Class in com.google.errorprone.bugpatterns
 
OptionalNotPresent() - Constructor for class com.google.errorprone.bugpatterns.OptionalNotPresent
 
or(Choice<T>) - Method in class com.google.errorprone.refaster.Choice
Returns a choice of the options from this Choice or from other.
OrganizedImports() - Constructor for class com.google.errorprone.apply.ImportOrganizer.OrganizedImports
 
organizeImports(List<ImportOrganizer.Import>) - Method in interface com.google.errorprone.apply.ImportOrganizer
Organize the imports supplied, e.g.
OrphanedFormatString - Class in com.google.errorprone.bugpatterns
 
OrphanedFormatString() - Constructor for class com.google.errorprone.bugpatterns.OrphanedFormatString
 
OverlappingQualifierAndScopeAnnotation - Class in com.google.errorprone.bugpatterns.inject
 
OverlappingQualifierAndScopeAnnotation() - Constructor for class com.google.errorprone.bugpatterns.inject.OverlappingQualifierAndScopeAnnotation
 
Overrides - Class in com.google.errorprone.bugpatterns
Matches the behaviour of javac's overrides Xlint warning.
Overrides() - Constructor for class com.google.errorprone.bugpatterns.Overrides
 
OverridesGuiceInjectableMethod - Class in com.google.errorprone.bugpatterns.inject.guice
This checker matches methods that 1) are not themselves annotated with @Inject (neither javax.inject.Inject nor com.google.inject.Inject) 2) descend from a method that is annotated with @com.google.inject.Inject
OverridesGuiceInjectableMethod() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.OverridesGuiceInjectableMethod
 
OverridesJavaxInjectableMethod - Class in com.google.errorprone.bugpatterns.inject.guice
This checker matches methods that 1) are not themselves annotated with @Inject 2) descend from a method that is annotated with @javax.inject.Inject 3) do not descent from a method that is annotated with @com.google.inject.Inject
OverridesJavaxInjectableMethod() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.OverridesJavaxInjectableMethod
 
OverrideThrowableToString - Class in com.google.errorprone.bugpatterns
Warns against overriding toString() in a Throwable class and suggests getMessage()
OverrideThrowableToString() - Constructor for class com.google.errorprone.bugpatterns.OverrideThrowableToString
 
OverridingMethodsMustInvokeSuper - Annotation Type in com.google.errorprone.annotations
Indicates that methods that override the annotated method must invoke super.theMethod.

P

PackageInfo - Class in com.google.errorprone.bugpatterns
 
PackageInfo() - Constructor for class com.google.errorprone.bugpatterns.PackageInfo
 
PackageLocation - Class in com.google.errorprone.bugpatterns
 
PackageLocation() - Constructor for class com.google.errorprone.bugpatterns.PackageLocation
 
packageMatches(Pattern) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node whose compilation unit's package name matches the given pattern.
packageStartsWith(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node whose compilation unit starts with this prefix.
PARAMETER_COMMENT_PATTERN - Static variable in class com.google.errorprone.bugpatterns.argumentselectiondefects.NamedParameterComment
 
ParameterComment - Class in com.google.errorprone.bugpatterns
 
ParameterComment() - Constructor for class com.google.errorprone.bugpatterns.ParameterComment
 
ParameterMatcherImpl - Class in com.google.errorprone.matchers.method
Matches on a method's formal parameters.
ParameterName - Class in com.google.errorprone.bugpatterns
 
ParameterName() - Constructor for class com.google.errorprone.bugpatterns.ParameterName
 
ParameterNotNullable - Class in com.google.errorprone.bugpatterns.nullness
 
ParameterNotNullable() - Constructor for class com.google.errorprone.bugpatterns.nullness.ParameterNotNullable
 
parentNode(Matcher<? extends Tree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its parent node is matched by the given matcher.
ParentNode - Class in com.google.errorprone.matchers
 
ParentNode(Matcher<Tree>) - Constructor for class com.google.errorprone.matchers.ParentNode
 
parseFlag(String) - Method in class com.google.errorprone.ErrorProneFlags.Builder
Given a String custom flag in the format "-XepOpt:FlagName=Value", places the flag in this builder's dictionary, e.g.
parseString(String, Context) - Static method in class com.google.errorprone.bugpatterns.threadsafety.GuardedByUtils
 
patchFile(URI) - Method in class com.google.errorprone.apply.PatchFileDestination
 
PatchFileDestination - Class in com.google.errorprone.apply
A FileDestination that writes a unix-patch file to rootPath containing the suggested changes.
PatchFileDestination(Path, Path) - Constructor for class com.google.errorprone.apply.PatchFileDestination
 
patchingOptions() - Method in class com.google.errorprone.ErrorProneOptions
 
path() - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
The list of steps in the explanation.
path() - Method in class com.google.errorprone.util.ASTHelpers.TargetType
 
PERFORMANCE - Static variable in class com.google.errorprone.BugPattern.StandardTags
This check detects a potential performance issue, where an easily-identifiable replacement for the code being made will always result in a net positive performance improvement.
Placeholder - Annotation Type in com.google.errorprone.refaster.annotation
Annotation to indicate a placeholder method.
plus(String) - Method in class com.google.errorprone.bugpatterns.threadsafety.ThreadSafety.Violation
Adds a step.
plus(ErrorProneFlags) - Method in class com.google.errorprone.ErrorProneFlags
Returns a new ErrorProneFlags object with the values of two ErrorProneFlags objects added together.
plus(ScannerSupplier) - Method in class com.google.errorprone.scanner.ScannerSupplier
Composes this ScannerSupplier with the other ScannerSupplier.
pos() - Method in class com.google.errorprone.util.ErrorProneToken
 
position - Variable in class com.google.errorprone.fixes.AdjustedPosition
 
postfixWith(Tree, String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
postfixWith(Tree, String) - Static method in class com.google.errorprone.fixes.SuggestedFix
PreconditionsCheckNotNull - Class in com.google.errorprone.bugpatterns
 
PreconditionsCheckNotNull() - Constructor for class com.google.errorprone.bugpatterns.PreconditionsCheckNotNull
 
PreconditionsCheckNotNullPrimitive - Class in com.google.errorprone.bugpatterns
Checks that the 1st argument to Preconditions.checkNotNull() isn't a primitive.
PreconditionsCheckNotNullPrimitive() - Constructor for class com.google.errorprone.bugpatterns.PreconditionsCheckNotNullPrimitive
 
PreconditionsInvalidPlaceholder - Class in com.google.errorprone.bugpatterns
 
PreconditionsInvalidPlaceholder() - Constructor for class com.google.errorprone.bugpatterns.PreconditionsInvalidPlaceholder
 
PredicateIncompatibleType - Class in com.google.errorprone.bugpatterns
 
PredicateIncompatibleType() - Constructor for class com.google.errorprone.bugpatterns.PredicateIncompatibleType
 
PREFIX - Static variable in class com.google.errorprone.ErrorProneFlags
 
prefixWith(Tree, String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
prefixWith(Tree, String) - Static method in class com.google.errorprone.fixes.SuggestedFix
preRegisterFileManager(Context) - Static method in class com.google.errorprone.MaskedClassLoader
An alternative to JavacFileManager.preRegister(Context) that installs a MaskedClassLoader.
pretty(Context, Writer) - Static method in class com.google.errorprone.refaster.Template
 
prettyMethodSignature(Symbol.ClassSymbol, Symbol.MethodSymbol) - Static method in class com.google.errorprone.util.Signatures
Pretty-prints a method signature for use in diagnostics.
prettyType(VisitorState, SuggestedFix.Builder, Type) - Static method in class com.google.errorprone.fixes.SuggestedFixes
prettyType(Type) - Static method in class com.google.errorprone.util.Signatures
Pretty-prints a Type for use in diagnostics, using simple names for class types
previousStatement(Matcher<StatementTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a statement AST node if the previous statement in the enclosing block matches the given matcher.
PrimitiveArrayPassedToVarargsMethod - Class in com.google.errorprone.bugpatterns
 
PrimitiveArrayPassedToVarargsMethod() - Constructor for class com.google.errorprone.bugpatterns.PrimitiveArrayPassedToVarargsMethod
 
PrivateConstructorForNoninstantiableModule - Class in com.google.errorprone.bugpatterns.inject.dagger
 
PrivateConstructorForNoninstantiableModule() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.PrivateConstructorForNoninstantiableModule
 
PrivateConstructorForUtilityClass - Class in com.google.errorprone.bugpatterns
 
PrivateConstructorForUtilityClass() - Constructor for class com.google.errorprone.bugpatterns.PrivateConstructorForUtilityClass
 
PrivateSecurityContractProtoAccess - Class in com.google.errorprone.bugpatterns
Check for non-whitelisted access to private_do_not_access_or_else proto fields.
PrivateSecurityContractProtoAccess() - Constructor for class com.google.errorprone.bugpatterns.PrivateSecurityContractProtoAccess
 
process(Set<? extends TypeElement>, RoundEnvironment) - Method in class com.google.errorprone.DocGenProcessor
process(Set<? extends TypeElement>, RoundEnvironment) - Method in class com.google.errorprone.refaster.annotation.RequiredAnnotationProcessor
 
processArgs(Iterable<String>) - Static method in class com.google.errorprone.ErrorProneOptions
Given a list of command-line arguments, produce the corresponding ErrorProneOptions instance.
processArgs(String[]) - Static method in class com.google.errorprone.ErrorProneOptions
Given a list of command-line arguments, produce the corresponding ErrorProneOptions instance.
processSuppressWarningsValues(List<String>) - Method in class com.google.errorprone.bugpatterns.SuppressWarningsDeprecated
 
ProtocolBufferOrdinal - Class in com.google.errorprone.bugpatterns
Points out if #ordinal() is called on a Protocol Buffer Enum.
ProtocolBufferOrdinal() - Constructor for class com.google.errorprone.bugpatterns.ProtocolBufferOrdinal
 
ProtoFieldNullComparison - Class in com.google.errorprone.bugpatterns
 
ProtoFieldNullComparison() - Constructor for class com.google.errorprone.bugpatterns.ProtoFieldNullComparison
 
ProtoFieldPreconditionsCheckNotNull - Class in com.google.errorprone.bugpatterns
 
ProtoFieldPreconditionsCheckNotNull() - Constructor for class com.google.errorprone.bugpatterns.ProtoFieldPreconditionsCheckNotNull
 
ProtoStringFieldReferenceEquality - Class in com.google.errorprone.bugpatterns
 
ProtoStringFieldReferenceEquality() - Constructor for class com.google.errorprone.bugpatterns.ProtoStringFieldReferenceEquality
 
providesFix - Variable in class com.google.errorprone.BugPatternInstance
 
ProvidesFixChecker - Class in com.google.errorprone.bugpatterns
 
ProvidesFixChecker() - Constructor for class com.google.errorprone.bugpatterns.ProvidesFixChecker
 
ProvidesMethodOutsideOfModule - Class in com.google.errorprone.bugpatterns.inject.guice
 
ProvidesMethodOutsideOfModule() - Constructor for class com.google.errorprone.bugpatterns.inject.guice.ProvidesMethodOutsideOfModule
 
ProvidesNull - Class in com.google.errorprone.bugpatterns.inject.dagger
Bug checker for null-returning methods annotated with @Provides but not @Nullable.
ProvidesNull() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.ProvidesNull
 
put(Diff) - Method in class com.google.errorprone.apply.DiffApplier
 
put(Bindings.Key<?>, Object) - Method in class com.google.errorprone.refaster.Bindings
 
putAll(Map<? extends Bindings.Key<?>, ? extends Object>) - Method in class com.google.errorprone.refaster.Bindings
 
putBinding(Bindings.Key<V>, V) - Method in class com.google.errorprone.refaster.Bindings
 
putBinding(Bindings.Key<V>, V) - Method in class com.google.errorprone.refaster.Unifier
 
putFlag(String, String) - Method in class com.google.errorprone.ErrorProneFlags.Builder
Puts a key-value pair directly in this builder's dictionary.

Q

QualifierOrScopeOnInjectMethod - Class in com.google.errorprone.bugpatterns.inject
 
QualifierOrScopeOnInjectMethod() - Constructor for class com.google.errorprone.bugpatterns.inject.QualifierOrScopeOnInjectMethod
 
QualifierWithTypeUse - Class in com.google.errorprone.bugpatterns.inject
 
QualifierWithTypeUse() - Constructor for class com.google.errorprone.bugpatterns.inject.QualifierWithTypeUse
 
qualifyDocReference(SuggestedFix.Builder, DocTreePath, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Fully qualifies a javadoc reference, e.g.
qualifyType(VisitorState, SuggestedFix.Builder, Symbol) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a human-friendly name of the given Symbol.TypeSymbol for use in fixes.
qualifyType(VisitorState, SuggestedFix.Builder, TypeMirror) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a human-friendly name of the given type for use in fixes.

R

radix() - Method in class com.google.errorprone.util.ErrorProneToken
 
RandomCast - Class in com.google.errorprone.bugpatterns
 
RandomCast() - Constructor for class com.google.errorprone.bugpatterns.RandomCast
 
RandomModInteger - Class in com.google.errorprone.bugpatterns
 
RandomModInteger() - Constructor for class com.google.errorprone.bugpatterns.RandomModInteger
 
range() - Method in class com.google.errorprone.fixes.Replacement
The Range to be replaced.
Reachability - Class in com.google.errorprone.util
An implementation of JLS 14.21 reachability.
Reachability() - Constructor for class com.google.errorprone.util.Reachability
 
ReachabilityFenceUsage - Class in com.google.errorprone.bugpatterns
 
ReachabilityFenceUsage() - Constructor for class com.google.errorprone.bugpatterns.ReachabilityFenceUsage
 
readFile(String) - Method in interface com.google.errorprone.apply.FileSource
 
readFile(String) - Method in class com.google.errorprone.apply.FsFileSource
 
receiverInstance() - Static method in class com.google.errorprone.suppliers.Suppliers
Supplies the expression which gives the instance of an object that will receive the method call.
receiverOfInvocation(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
 
receiverSameAsArgument(int) - Static method in class com.google.errorprone.matchers.Matchers
Matches when the receiver of an instance method is the same reference as a particular argument to the method.
receiverType() - Static method in class com.google.errorprone.suppliers.Suppliers
Supplies the expression which gives the instance of an object that will receive the method call.
RectIntersectReturnValueIgnored - Class in com.google.errorprone.bugpatterns.android
 
RectIntersectReturnValueIgnored() - Constructor for class com.google.errorprone.bugpatterns.android.RectIntersectReturnValueIgnored
 
redirectOutputTo(PrintWriter) - Method in class com.google.errorprone.BaseErrorProneCompiler.Builder
 
redirectOutputTo(PrintWriter) - Method in class com.google.errorprone.ErrorProneCompiler.Builder
 
RedundantThrows - Class in com.google.errorprone.bugpatterns
 
RedundantThrows() - Constructor for class com.google.errorprone.bugpatterns.RedundantThrows
 
REFACTORING - Static variable in class com.google.errorprone.BugPattern.StandardTags
This check performs a refactoring, for example migrating to a new version of an API.
Refaster - Class in com.google.errorprone.refaster
Static utilities to indicate special handling in Refaster templates.
RefasterRule<M extends TemplateMatch,T extends Template<M>> - Class in com.google.errorprone.refaster
A representation of an entire Refaster rule, corresponding to a class with @BeforeTemplates and @AfterTemplates.
RefasterRuleBuilderScanner - Class in com.google.errorprone.refaster
Scanner implementation to extract a single Refaster rule from a ClassTree.
RefasterRuleCompiler - Class in com.google.errorprone.refaster
A javac plugin that compiles Refaster rules to a .analyzer file.
RefasterRuleCompiler() - Constructor for class com.google.errorprone.refaster.RefasterRuleCompiler
 
RefasterRuleCompilerAnalyzer - Class in com.google.errorprone.refaster
TaskListener that receives compilation of a Refaster rule class and outputs a serialized analyzer to the specified path.
ReferenceEquality - Class in com.google.errorprone.bugpatterns
 
ReferenceEquality() - Constructor for class com.google.errorprone.bugpatterns.ReferenceEquality
 
referencesOuter(Tree, Symbol, VisitorState) - Static method in class com.google.errorprone.bugpatterns.CanBeStaticAnalyzer
Returns true if the tree references its enclosing class.
Regexes - Class in com.google.errorprone.util
Utilities for checks that work with regexes.
Regexes() - Constructor for class com.google.errorprone.util.Regexes
 
remove(String) - Method in class com.google.errorprone.apply.ImportStatements
Remove an import from the list of imports.
removeAll(Collection<String>) - Method in class com.google.errorprone.apply.ImportStatements
Removes all imports in a collection to this list of imports.
removeImport(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Remove an import statement as part of this SuggestedFix.
removeModifiers(Tree, VisitorState, Modifier...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Remove modifiers from the given class, method, or field declaration.
removeStaticImport(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Remove a static import statement as part of this SuggestedFix.
RemoveUnusedImports - Class in com.google.errorprone.bugpatterns
 
RemoveUnusedImports() - Constructor for class com.google.errorprone.bugpatterns.RemoveUnusedImports
 
renameMethod(MethodTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Be warned, only changes method name at the declaration.
renameVariable(VariableTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Renames the given VariableTree and its usages in the current compilation unit to replacement.
Repeated - Annotation Type in com.google.errorprone.refaster.annotation
An annotation for repeated Refaster template variables.
replace(Tree, String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
replace(int, int, String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Replace the characters from startPos, inclusive, until endPos, exclusive, with the given string.
replace(Tree, String, int, int) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Replace a tree node with a string, but adjust the start and end positions as well.
replace(Tree, String) - Static method in class com.google.errorprone.fixes.SuggestedFix
replace(int, int, String) - Static method in class com.google.errorprone.fixes.SuggestedFix
Replace the characters from startPos, inclusive, until endPos, exclusive, with the given string.
replace(Tree, String, int, int) - Static method in class com.google.errorprone.fixes.SuggestedFix
Replace a tree node with a string, but adjust the start and end positions as well.
replace(BlockTemplateMatch) - Method in class com.google.errorprone.refaster.BlockTemplate
 
replace(ExpressionTemplateMatch) - Method in class com.google.errorprone.refaster.ExpressionTemplate
Generates a SuggestedFix replacing the specified match (usually of another template) with this template.
replace(M) - Method in class com.google.errorprone.refaster.Template
 
replaceBinding(Bindings.Key<V>, V) - Method in class com.google.errorprone.refaster.Unifier
 
replaceChars(int, int, String) - Method in class com.google.errorprone.apply.SourceFile
Replace the source code between the start and end character positions with a new string.
replaceDocTree(SuggestedFix.Builder, DocTreePath, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Replaces the leaf doctree in the given path with replacement.
replaceLines(List<String>) - Method in class com.google.errorprone.apply.SourceFile
Replace the source code with the new lines of code.
replaceLines(int, int, List<String>) - Method in class com.google.errorprone.apply.SourceFile
Replace the source code between the start and end lines with some new lines of code.
Replacement - Class in com.google.errorprone.fixes
A replaced section of a source file.
Replacement() - Constructor for class com.google.errorprone.fixes.Replacement
 
Replacements - Class in com.google.errorprone.fixes
A collection of Replacements to be made to a source file.
Replacements() - Constructor for class com.google.errorprone.fixes.Replacements
 
replaceWith() - Method in class com.google.errorprone.fixes.Replacement
The source text to appear in the output.
report(ScannerSupplier) - Method in class com.google.errorprone.BaseErrorProneCompiler.Builder
 
report(ScannerSupplier) - Method in class com.google.errorprone.ErrorProneCompiler.Builder
 
reportMatch(Description, T, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
 
reportMatch(Description) - Method in class com.google.errorprone.VisitorState
 
REQUIRE_BLOCK_KEY - Static variable in class com.google.errorprone.refaster.UTemplater
Context key to indicate that templates should be treated as BlockTemplates, regardless of their structure.
RequiredAnnotation - Annotation Type in com.google.errorprone.refaster.annotation
Indicates that an annotation requires the presence of another annotation.
RequiredAnnotationProcessor - Class in com.google.errorprone.refaster.annotation
Enforces @RequiredAnnotation as an annotation processor.
RequiredAnnotationProcessor() - Constructor for class com.google.errorprone.refaster.annotation.RequiredAnnotationProcessor
 
RequiredModifiers - Annotation Type in com.google.errorprone.annotations
Annotation declaring that the target annotation requires all the specified modifiers.
RequiredModifiersChecker - Class in com.google.errorprone.bugpatterns
 
RequiredModifiersChecker() - Constructor for class com.google.errorprone.bugpatterns.RequiredModifiersChecker
 
resolveClass(CharSequence) - Method in class com.google.errorprone.refaster.Inliner
 
resolveEnclosingClass(ExpressionTree) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
 
resolveEnclosingClass(ExpressionTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
resolveExistingMethod(VisitorState, Symbol.TypeSymbol, Name, Iterable<Type>, Iterable<Type>) - Static method in class com.google.errorprone.util.ASTHelpers
Given a Type (base), find the method named name, with the appropriate argTypes and tyargTypes and return its MethodSymbol.
resolveIdentifier(IdentifierTree) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
 
resolveIdentifier(IdentifierTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
resolveMethod(MethodInvocationTree, Name) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
 
resolveMethod(MethodInvocationTree, GuardedByExpression, Name) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
 
resolveMethod(MethodInvocationTree, Name) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
resolveMethod(MethodInvocationTree, GuardedByExpression, Name) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
resolveSelect(GuardedByExpression, MemberSelectTree) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
 
resolveSelect(GuardedByExpression, MemberSelectTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
resolveTypeLiteral(ExpressionTree) - Method in interface com.google.errorprone.bugpatterns.threadsafety.GuardedByBinder.Resolver
 
resolveTypeLiteral(ExpressionTree) - Method in class com.google.errorprone.bugpatterns.threadsafety.GuardedBySymbolResolver
 
RestrictedApi - Annotation Type in com.google.errorprone.annotations
Restrict this method to callsites with a whitelist annotation.
RestrictedApiChecker - Class in com.google.errorprone.bugpatterns
Check for non-whitelisted callers to RestrictedApiChecker.
RestrictedApiChecker() - Constructor for class com.google.errorprone.bugpatterns.RestrictedApiChecker
 
RestrictToEnforcer - Class in com.google.errorprone.bugpatterns.android
Error-prone enforcer that prevents use of internal support library APIs.
RestrictToEnforcer() - Constructor for class com.google.errorprone.bugpatterns.android.RestrictToEnforcer
 
ReturnMissingNullable - Class in com.google.errorprone.bugpatterns.nullness
 
ReturnMissingNullable() - Constructor for class com.google.errorprone.bugpatterns.nullness.ReturnMissingNullable
 
Returns - Class in com.google.errorprone.matchers
Matches a return statement whose returned expression is matched by the given matcher.
Returns(Matcher<? super ExpressionTree>) - Constructor for class com.google.errorprone.matchers.Returns
New matcher for a return statement where the returned expression is matched by the passed returnedMatcher.
returnStatement(Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a return statement where the returned expression is matched by the passed returnedMatcher.
ReturnValueIgnored - Class in com.google.errorprone.bugpatterns
 
ReturnValueIgnored() - Constructor for class com.google.errorprone.bugpatterns.ReturnValueIgnored
 
reverify(Unifier) - Method in class com.google.errorprone.refaster.UPlaceholderExpression
 
rhs() - Method in class com.google.errorprone.bugpatterns.EqualsIncompatibleType.TypeCompatibilityReport
 
run(String[]) - Method in class com.google.errorprone.BaseErrorProneCompiler
 
run(String[], List<JavaFileObject>) - Method in class com.google.errorprone.BaseErrorProneCompiler
 
run(String[], JavaFileManager, List<JavaFileObject>, Iterable<? extends Processor>) - Method in class com.google.errorprone.BaseErrorProneCompiler
 
run(InputStream, OutputStream, OutputStream, String...) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
run(String[]) - Method in class com.google.errorprone.ErrorProneCompiler
 

S

sameArgument(int, int) - Static method in class com.google.errorprone.matchers.Matchers
Matches a MethodInvocation AST node when the arguments at the two given indices are both the same identifier.
sameVariable(ExpressionTree) - Static method in class com.google.errorprone.matchers.Matchers
Matches if this ExpressionTree refers to the same variable as the one passed into the matcher.
sameVariable(ExpressionTree, ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
Determines whether two expressions refer to the same variable.
scan(TreePath, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
Scan a tree from a position identified by a TreePath.
scan(Tree, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
Scan a single node.
Scanner - Class in com.google.errorprone.scanner
TODO(eaftan): I'm worried about this performance of this code, specifically the part that handles SuppressWarnings.
Scanner() - Constructor for class com.google.errorprone.scanner.Scanner
 
ScannerSupplier - Class in com.google.errorprone.scanner
Supplies Scanners and provides access to the backing sets of all BugCheckers and enabled BugCheckers.
ScannerSupplier() - Constructor for class com.google.errorprone.scanner.ScannerSupplier
 
ScopeAnnotationOnInterfaceOrAbstractClass - Class in com.google.errorprone.bugpatterns.inject
 
ScopeAnnotationOnInterfaceOrAbstractClass() - Constructor for class com.google.errorprone.bugpatterns.inject.ScopeAnnotationOnInterfaceOrAbstractClass
 
ScopeOnModule - Class in com.google.errorprone.bugpatterns.inject.dagger
Migrate users who use JSR 330 scopes on Dagger modules.
ScopeOnModule() - Constructor for class com.google.errorprone.bugpatterns.inject.dagger.ScopeOnModule
 
ScopeOrQualifierAnnotationRetention - Class in com.google.errorprone.bugpatterns.inject
 
ScopeOrQualifierAnnotationRetention() - Constructor for class com.google.errorprone.bugpatterns.inject.ScopeOrQualifierAnnotationRetention
 
Select() - Constructor for class com.google.errorprone.bugpatterns.threadsafety.GuardedByExpression.Select
 
selectedIsInstance() - Static method in class com.google.errorprone.matchers.Matchers
Returns true if the expression is a member access on an instance, rather than a static type.
SelfAssignment - Class in com.google.errorprone.bugpatterns
TODO(eaftan): Consider cases where the parent is not a statement or there is no parent?
SelfAssignment() - Constructor for class com.google.errorprone.bugpatterns.SelfAssignment
 
SelfComparison - Class in com.google.errorprone.bugpatterns
Points out if an object is compared to itself.
SelfComparison() - Constructor for class com.google.errorprone.bugpatterns.SelfComparison
 
SelfEquals - Class in com.google.errorprone.bugpatterns
 
SelfEquals() - Constructor for class com.google.errorprone.bugpatterns.SelfEquals
 
setArgs(String...) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
 
setArgs(List<String>) - Method in class com.google.errorprone.CompilationTestHelper
Sets custom command-line arguments for the compilation.
setClasspath(Path) - Method in class com.google.errorprone.ErrorProneExternalCompilerAdapter
 
setClasspathRef(Reference) - Method in class com.google.errorprone.ErrorProneExternalCompilerAdapter
 
setFixChooser(BugCheckerRefactoringTestHelper.FixChooser) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
 
setImportOrder(String) - Method in class com.google.errorprone.BugCheckerRefactoringTestHelper
 
setInformation(Element, V) - Method in class com.google.errorprone.dataflow.LocalStore.Builder
Sets the value for the given variable.
setLowerBound(UType) - Method in class com.google.errorprone.refaster.UTypeVar
 
setMemoryStackSize(String) - Method in class com.google.errorprone.ErrorProneExternalCompilerAdapter
 
setMessage(String) - Method in class com.google.errorprone.matchers.Description.Builder
Set a custom error message for this Description.
setSourceText(CharSequence) - Method in class com.google.errorprone.apply.SourceFile
Clears the current source test for this SourceFile and resets it to the passed-in value.
setupMessageBundle(Context) - Static method in class com.google.errorprone.BaseErrorProneJavaCompiler
Registers our message bundle.
setUpperBound(UType) - Method in class com.google.errorprone.refaster.UTypeVar
 
severities() - Method in class com.google.errorprone.scanner.ScannerSupplier
 
severity(Map<String, BugPattern.SeverityLevel>) - Method in class com.google.errorprone.BugCheckerInfo
 
severity - Variable in class com.google.errorprone.BugPatternInstance
 
severity(Map<String, BugPattern.SeverityLevel>) - Method in class com.google.errorprone.bugpatterns.BugChecker
 
severity - Variable in class com.google.errorprone.matchers.Description
Is this a warning, error, etc.?
severityMap() - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
severityMap() - Method in class com.google.errorprone.scanner.Scanner
Returns a mapping between the canonical names of checks and their BugPattern.SeverityLevel.
ShortCircuitBoolean - Class in com.google.errorprone.bugpatterns
 
ShortCircuitBoolean() - Constructor for class com.google.errorprone.bugpatterns.ShortCircuitBoolean
 
ShortCircuitBoolean.TreeScannerBinary - Class in com.google.errorprone.bugpatterns
Replaces the operators when visiting the binary nodes
ShouldHaveEvenArgs - Class in com.google.errorprone.bugpatterns
Checks that variable argument methods have even number of arguments.
ShouldHaveEvenArgs() - Constructor for class com.google.errorprone.bugpatterns.ShouldHaveEvenArgs
 
Signatures - Class in com.google.errorprone.util
Signature generation.
Signatures() - Constructor for class com.google.errorprone.util.Signatures
 
simpleName() - Method in class com.google.errorprone.bugpatterns.StaticImports.StaticImportInfo
The simple name of the imported member.
SIMPLIFICATION - Static variable in class com.google.errorprone.BugPattern.StandardTags
This check points out a coding pattern that, while functional, has an easier-to-read or faster alternative.
SizeGreaterThanOrEqualsZero - Class in com.google.errorprone.bugpatterns
Finds instances where one uses Collection#size() >= 0 or T[].length > 0.
SizeGreaterThanOrEqualsZero() - Constructor for class com.google.errorprone.bugpatterns.SizeGreaterThanOrEqualsZero
 
SourceCodeEscapers - Class in com.google.errorprone.util
A factory for Escaper instances used to escape strings for safe use in Java.
SourceFile - Class in com.google.errorprone.apply
Representation of a mutable Java source file.
SourceFile(String, CharSequence) - Constructor for class com.google.errorprone.apply.SourceFile
 
specializedMatcher() - Method in class com.google.errorprone.bugpatterns.AbstractReturnValueIgnored
Match whatever additional conditions concrete subclasses want to match (a list of known side-effect-free methods, has a @CheckReturnValue annotation, etc.).
specializedMatcher() - Method in class com.google.errorprone.bugpatterns.android.RectIntersectReturnValueIgnored
 
specializedMatcher() - Method in class com.google.errorprone.bugpatterns.CheckReturnValue
Return a matcher for method invocations in which the method being called has the @CheckReturnValue annotation.
specializedMatcher() - Method in class com.google.errorprone.bugpatterns.FutureReturnValueIgnored
 
specializedMatcher() - Method in class com.google.errorprone.bugpatterns.ReturnValueIgnored
 
splitToLowercaseTerms(String) - Static method in class com.google.errorprone.names.NamingConventions
Split a Java name into terms based on either Camel Case or Underscores.
startPosition() - Method in class com.google.errorprone.fixes.Replacement
The beginning of the replacement range.
startPositionAdjustment - Variable in class com.google.errorprone.fixes.AdjustedPosition