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

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
 
AccessPath - Class in com.google.errorprone.dataflow
A sequence of field names or autovalue accessors, along with a receiver: either a variable or a reference (explicit or implicit) to this.
AccessPath() - Constructor for class com.google.errorprone.dataflow.AccessPath
 
AccessPathStore<V extends org.checkerframework.errorprone.dataflow.analysis.AbstractValue<V>> - Class in com.google.errorprone.dataflow
Immutable map from local variables or heap access paths to their AbstractValue
AccessPathStore() - Constructor for class com.google.errorprone.dataflow.AccessPathStore
 
AccessPathStore.Builder<V extends org.checkerframework.errorprone.dataflow.analysis.AbstractValue<V>> - Class in com.google.errorprone.dataflow
Builder for AccessPathStore instances.
AccessPathValues<T> - Interface in com.google.errorprone.dataflow
Read-only access to AccessPathStore for convenience.
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
 
add(Replacement, Replacements.CoalescePolicy) - 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(Fix) - Method in class com.google.errorprone.matchers.Description.Builder
Adds a suggested fix for this Description.
addFix(Optional<? extends Fix>) - Method in class com.google.errorprone.matchers.Description.Builder
Deprecated.
prefer referring to empty fixes using SuggestedFix.emptyFix().
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.
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.
addMembers(ClassTree, VisitorState, SuggestedFixes.AdditionPosition, String, String...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a Fix that adds members defined by firstMember (and optionally otherMembers) to the class referenced by classTree.
addMembers(ClassTree, VisitorState, SuggestedFixes.AdditionPosition, Iterable<String>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a Fix that adds members defined by members to the class referenced by classTree.
addModifiers(Tree, VisitorState, Modifier...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Adds modifiers to the given class, method, or field declaration.
addModifiers(Tree, ModifiersTree, VisitorState, Set<Modifier>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Adds modifiers to the given declaration and corresponding modifiers tree.
addOption(SuggestedFix) - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
 
addStaticImport(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Add a static import statement as part of this SuggestedFix.
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.
addSuppressWarnings(SuggestedFix.Builder, VisitorState, String, String, boolean) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Modifies fixBuilder to either create a new @SuppressWarnings element on the closest suppressible node, or add warningToSuppress to that node if there's already a SuppressWarnings annotation there.
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
 
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.
allOf(Iterable<? extends Matcher<? super T>>) - Static method in class com.google.errorprone.matchers.Matchers
Compose several matchers together, such that the composite matches an AST node iff all the given matchers do.
allOf(TypePredicate...) - Static method in class com.google.errorprone.predicates.TypePredicates
 
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.
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
 
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.
annotations() - Method in interface com.google.errorprone.CodeTransformer
Returns a map of annotation data logically applied to this code transformer.
annotations() - Method in class com.google.errorprone.CompositeCodeTransformer
 
annotations() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
annotations(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.scanner.ErrorProneScannerTransformer
 
annotationsAmong(Symbol, Set<? extends Name>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Determines which of a set of annotations are present on a symbol.
AnnotationType - Class in com.google.errorprone.matchers
 
AnnotationType(String) - Constructor for class com.google.errorprone.matchers.AnnotationType
 
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
Deprecated.
Match on any class.
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Deprecated.
Match on any class.
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Deprecated.
Match on any class.
anyFieldInClass(String) - Static method in class com.google.errorprone.matchers.FieldMatchers
 
anyMatch(Predicate<Symbol>) - Method in class com.google.errorprone.util.ErrorProneScope
 
anyMethod() - Static method in class com.google.errorprone.matchers.Matchers
Matches a static or instance method.
anyMethod() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
 
anyOf(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(TypePredicate...) - Static method in class com.google.errorprone.predicates.TypePredicates
 
anything() - Static method in class com.google.errorprone.matchers.Matchers
A matcher that matches any AST node.
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(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.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
 
Array - Enum in com.google.errorprone.predicates.type
Matches arrays.
arrayOf(Supplier<Type>) - Static method in class com.google.errorprone.suppliers.Suppliers
 
arrayTypeForType(Type) - Method in class com.google.errorprone.VisitorState
Build an Array Type from another Type
asEnumValue(Class<T>, AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given attribute to an enum value.
asFlagSet(long) - Static method in class com.google.errorprone.util.ASTHelpers
 
asImportBlock() - Method in class com.google.errorprone.apply.ImportOrganizer.OrganizedImports
Get the organized imports as a block of imports, with blank links between the separate groups.
asIntegerValue(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given attribute to an integer value.
asRule() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodMatcher
Deprecated.
A rule for expressing this matcher as a MethodInvocationMatcher, if possible.
assertEqualsInvocation() - Static method in class com.google.errorprone.matchers.Matchers
Matches calls to the method org.junit.Assert#assertEquals and corresponding methods in JUnit 3.x.
assertionWithCondition(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an assertion AST node if the given matcher matches its condition.
assertNotEqualsInvocation() - Static method in class com.google.errorprone.matchers.Matchers
Matches calls to the method org.junit.Assert#assertNotEquals and corresponding methods in JUnit 3.x.
Asserts - Class in com.google.errorprone.matchers
Matches assert statements which have a condition expression matched by the given matcher.
Asserts(Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.Asserts
 
assertStatement(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an assert statement where the condition is matched by the passed conditionMatcher.
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
 
asStrings(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given annotation value to one or more strings.
asStringValue(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given attribute to an string value.
ASTHelpers - Class in com.google.errorprone.util
This class contains utility methods to work with the javac AST.
ASTHelpers.ScanThrownTypes - Class in com.google.errorprone.util
Scanner for determining what types are thrown by a tree.
ASTHelpers.TargetType - Class in com.google.errorprone.util
asTypes(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given annotation value to one or more annotations.
asTypeValue(AnnotationValue) - Static method in class com.google.errorprone.util.MoreAnnotations
Converts the given attribute to an enum value.

B

base() - Method in class com.google.errorprone.dataflow.AccessPath
If present, base of access path is contained Element; if absent, base is `this`
BaseErrorProneJavaCompiler - Class in com.google.errorprone
An Error Prone compiler that implements JavaCompiler.
BaseErrorProneJavaCompiler(ScannerSupplier) - Constructor for class com.google.errorprone.BaseErrorProneJavaCompiler
 
beforeComments() - Method in class com.google.errorprone.util.Commented
 
binaryNameFromClassname(String) - Method in class com.google.errorprone.VisitorState
Returns the Name object corresponding to the named class, converting it to binary form along the way if necessary (i.e., replacing Foo.Bar with Foo$Bar).
binaryTree(Matcher<ExpressionTree>, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a binary tree if the given matchers match the operands in either order.
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
 
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.
booleanLiteral(boolean) - Static method in class com.google.errorprone.matchers.Matchers
 
BranchedSuggestedFixes - Class in com.google.errorprone.fixes
Helper class for accumulating a branching tree of alternative fixes designed to help build as set of potential fixes with different options in them.
BranchedSuggestedFixes.Builder - Class in com.google.errorprone.fixes
Builder class for BranchedSuggestedFixes
BugChecker - Class in com.google.errorprone.bugpatterns
A base class for implementing bug checkers.
BugChecker() - Constructor for class com.google.errorprone.bugpatterns.BugChecker
 
BugChecker.AnnotatedTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.AnnotationTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ArrayAccessTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ArrayTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.AssertTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.AssignmentTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.BinaryTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.BlockTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.BreakTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.CaseTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.CatchTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ClassTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.CompilationUnitTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.CompoundAssignmentTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ConditionalExpressionTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ContinueTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.DoWhileLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.EmptyStatementTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.EnhancedForLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ExpressionStatementTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ForLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.IdentifierTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.IfTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ImportTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.InstanceOfTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.IntersectionTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.LabeledStatementTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.LambdaExpressionTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.LiteralTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.MemberReferenceTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.MemberSelectTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.MethodInvocationTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.MethodTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ModifiersTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.NewArrayTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.NewClassTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ParameterizedTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ParenthesizedTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.PrimitiveTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ReturnTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.SuppressibleTreePathScanner<A,B> - Class in com.google.errorprone.bugpatterns
A TreePathScanner which skips trees which are suppressed for this check.
BugChecker.SwitchTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.SynchronizedTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.ThrowTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.TryTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.TypeCastTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.TypeParameterTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.UnaryTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.UnionTypeTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.VariableTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.WhileLoopTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugChecker.WildcardTreeMatcher - Interface in com.google.errorprone.bugpatterns
 
BugCheckerInfo - Class in com.google.errorprone
An accessor for information about a single bug checker, including the metadata in the check's @BugPattern annotation and the class that implements the check.
build() - Method in class com.google.errorprone.dataflow.AccessPathStore.Builder
 
build() - Method in class com.google.errorprone.ErrorProneFlags.Builder
 
build() - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
 
build() - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
build() - Method in class com.google.errorprone.matchers.Description.Builder
 
buildDescription(Tree) - Method in class com.google.errorprone.bugpatterns.BugChecker
Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.
buildDescription(JCDiagnostic.DiagnosticPosition) - Method in class com.google.errorprone.bugpatterns.BugChecker
Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.
buildDescription(JCTree) - Method in class com.google.errorprone.bugpatterns.BugChecker
Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.
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.
builder(JCDiagnostic.DiagnosticPosition, String, String, BugPattern.SeverityLevel, String) - Static method in class com.google.errorprone.matchers.Description
Returns a new builder for Descriptions.
builder(JCTree, String, String, BugPattern.SeverityLevel, String) - Static method in class com.google.errorprone.matchers.Description
Returns a new builder for Descriptions.
BYTE_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 

C

canAlias(JavaExpression, JavaExpression) - Method in class com.google.errorprone.dataflow.AccessPathStore
 
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.
canonicalName() - Method in class com.google.errorprone.BugCheckerInfo
 
canonicalName() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
canonicalName() - Method in interface com.google.errorprone.matchers.Suppressible
The canonical name of the check.
castTree(ExpressionTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Casts the given expressionTree to toType, adding parentheses if necessary.
CHAR_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
checkerClass() - Method in class com.google.errorprone.BugCheckerInfo
 
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.
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
 
Class(Matcher<ClassTree>) - Constructor for class com.google.errorprone.matchers.Enclosing.Class
 
classDescriptor(Type, Types) - Static method in class com.google.errorprone.util.Signatures
Returns the binary names of the class.
classLiteral(Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
 
clazz() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
coalesce(String, String) - Method in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
Handle an overlapping insert.
CodeTransformer - Interface in com.google.errorprone
Interface for a transformation over Java source.
com.google.errorprone - package com.google.errorprone
 
com.google.errorprone.apply - package com.google.errorprone.apply
 
com.google.errorprone.bugpatterns - package com.google.errorprone.bugpatterns
 
com.google.errorprone.dataflow - package com.google.errorprone.dataflow
 
com.google.errorprone.dataflow.nullnesspropagation - package com.google.errorprone.dataflow.nullnesspropagation
 
com.google.errorprone.dataflow.nullnesspropagation.inference - package com.google.errorprone.dataflow.nullnesspropagation.inference
 
com.google.errorprone.fixes - package com.google.errorprone.fixes
Support code for providing automated corrections for defects we find.
com.google.errorprone.matchers - package com.google.errorprone.matchers
A predicate DSL for matching javac AST nodes.
com.google.errorprone.matchers.method - package com.google.errorprone.matchers.method
 
com.google.errorprone.names - package com.google.errorprone.names
 
com.google.errorprone.predicates - package com.google.errorprone.predicates
 
com.google.errorprone.predicates.type - package com.google.errorprone.predicates.type
 
com.google.errorprone.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
 
Commented.Position - Enum in com.google.errorprone.util
Identifies the position of a comment relative to the associated treenode.
Comments - Class in com.google.errorprone.util
Utilities for attaching comments to relevant AST nodes
comments() - Method in class com.google.errorprone.util.ErrorProneToken
 
comparisonKey() - Method in interface com.google.errorprone.matchers.method.MethodInvocationMatcher.Token
The value to compare with TokenType#extract(Context, VisitorState) to determine whether this property matches.
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
 
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
 
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
 
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
 
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
 
comparisonKey() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
 
compile(ImmutableList<String>) - Method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler
 
compile(Iterable<MethodInvocationMatcher.Rule>) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher
Constructs a Matcher that matches for method invocations (including constructor invocations) satisfying at least one of the given Rule specifications.
compiledAnyOf(Iterable<Matcher<? super T>>) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher
Compose several matchers together, such that the composite matches an AST node if any of the given matchers do.
compilesWithFix(Fix, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns true if the current compilation would succeed with the given fix applied.
compilesWithFix(Fix, VisitorState, ImmutableList<String>, boolean) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns true if the current compilation would succeed with the given fix applied, using the given additional compiler options, optionally limiting the checking of compilation failures to the compilation unit in which the fix is applied.
CompileTimeConstantExpressionMatcher - Class in com.google.errorprone.matchers
A matcher for compile-time-constant expressions.
CompileTimeConstantExpressionMatcher() - Constructor for class com.google.errorprone.matchers.CompileTimeConstantExpressionMatcher
 
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.
ConstantPropagationAnalysis - Class in com.google.errorprone.dataflow
An interface to the constant propagation analysis.
constructor() - Static method in class com.google.errorprone.matchers.Matchers
Matches a constructor.
constructor(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
 
ConstructorMatchState - Class in com.google.errorprone.matchers.method
The state that is propagated across a match operation for constructors.
ConstructorMatchState() - Constructor for class com.google.errorprone.matchers.method.ConstructorMatchState
 
ConstructorOfClass - 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.
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<? extends V>, Matcher<? super V>) - Static method in class com.google.errorprone.matchers.Matchers
Applies the given matcher recursively to all descendants of an AST node, and matches if any matching descendant node is found.
containsComments(Tree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether the given tree contains any comments in its source.
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.
context - Variable in class com.google.errorprone.VisitorState
 
continueStatement() - Static method in class com.google.errorprone.matchers.Matchers
Matches a continue statement.
convertRegexToLiteral(String) - Static method in class com.google.errorprone.util.Regexes
If the given regexes matches exactly one string, returns that string.
convertToLowerUnderscore(String) - Static method in class com.google.errorprone.names.NamingConventions
 
copy() - Method in class com.google.errorprone.dataflow.AccessPathStore
 
counters() - Method in interface com.google.errorprone.StatisticsCollector
Returns a copy of the counters in this statistics collector.
counters() - Method in class com.google.errorprone.VisitorState
Returns a copy of all of the counters previously added to this VisitorState with VisitorState.incrementCounter(com.google.errorprone.bugpatterns.BugChecker, java.lang.String).
create(JCTree.JCCompilationUnit, ImportOrganizer) - Static method in class com.google.errorprone.apply.DescriptionBasedDiff
 
create(JCTree.JCCompilationUnit) - Static method in class com.google.errorprone.apply.ImportStatements
 
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(int, int, String) - Static method in class com.google.errorprone.fixes.Replacement
Creates a Replacement.
create(Fix, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler
 
create(ImmutableMap<MethodInvocationMatcher.TokenType, ? extends Set<MethodInvocationMatcher.Token>>) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Rule
Builds a Rule object from a map.
create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
 
create(MethodInvocationMatcher.MethodKind) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
 
create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
 
create(ImmutableList<String>) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
 
create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
 
create(String) - Static method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
 
create(Scanner) - Static method in class com.google.errorprone.scanner.ErrorProneScannerTransformer
 
createByScanningForPlugins(ScannerSupplier, ErrorProneOptions, Context) - Static method in class com.google.errorprone.ErrorProneAnalyzer
 
createCollector() - Static method in interface com.google.errorprone.StatisticsCollector
Returns a new statistics collector that will successfully count keys added to it.
createConfiguredForCompilation(Context, DescriptionListener, Map<String, BugPattern.SeverityLevel>, ErrorProneOptions) - Static method in class com.google.errorprone.VisitorState
Return a VisitorState configured for a new compilation, including Error Prone configuration.
createForCustomFindingCollection(Context, DescriptionListener) - Static method in class com.google.errorprone.VisitorState
Return a VisitorState that has no Error Prone configuration, but can report findings to listener.
createForUtilityPurposes(Context) - Static method in class com.google.errorprone.VisitorState
Return a VisitorState that has no Error Prone configuration, and can't report results.
createIgnoringOverlaps(JCTree.JCCompilationUnit, ImportOrganizer) - Static method in class com.google.errorprone.apply.DescriptionBasedDiff
 
createNoOpCollector() - Static method in interface com.google.errorprone.StatisticsCollector
Returns a statistics collector that will ignore any statistics added to it, always returning an empty result for StatisticsCollector.counters().
createPrivateConstructor(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns a no arg private constructor for the ClassTree.
customSuppressionAnnotations() - Method in class com.google.errorprone.BugCheckerInfo
 
customSuppressionAnnotations() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
customSuppressionAnnotations() - Method in interface com.google.errorprone.matchers.Suppressible
Returns the custom suppression annotations for this checker, if custom suppression is used.

D

DAGGER_MAP_KEY_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
DAGGER_PROVIDES_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
DataFlow - Class in com.google.errorprone.dataflow
Provides a wrapper around Analysis.
DataFlow.Result<A extends org.checkerframework.errorprone.dataflow.analysis.AbstractValue<A>,S extends org.checkerframework.errorprone.dataflow.analysis.Store<S>,T extends org.checkerframework.errorprone.dataflow.analysis.TransferFunction<A,S>> - Interface in com.google.errorprone.dataflow
A pair of Analysis and ControlFlowGraph.
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.
defaultSeverity() - Method in class com.google.errorprone.BugCheckerInfo
 
defaultSeverity() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
DefinedIn() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
 
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.
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.
describeMatch(Tree, Fix) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is a fix.
describeMatch(JCTree, Fix) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is a fix.
describeMatch(JCDiagnostic.DiagnosticPosition, 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
Deprecated.
prefer referring to empty fixes using SuggestedFix.emptyFix().
describeMatch(JCDiagnostic.DiagnosticPosition, Optional<? extends Fix>) - Method in class com.google.errorprone.bugpatterns.BugChecker
Deprecated.
prefer referring to empty fixes using SuggestedFix.emptyFix().
Description - Class in com.google.errorprone.matchers
Simple data object containing the information captured about an AST match.
description() - Method in enum com.google.errorprone.util.Visibility
A fragment describing this visibility, to fit in a phrase like "restricted to [...]".
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.
diagnostics() - Method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler.Result
 
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
 
disableable() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
disabled() - Method in class com.google.errorprone.scanner.ScannerSupplier
 
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
 
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.
doStart() - Method in class com.google.errorprone.apply.DiffApplier
 
doStop() - Method in class com.google.errorprone.apply.DiffApplier
 
DOUBLE_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 

E

empty() - Static method in class com.google.errorprone.dataflow.AccessPathStore
 
empty() - Static method in class com.google.errorprone.ErrorProneFlags
 
empty() - Static method in class com.google.errorprone.ErrorProneOptions
 
EMPTY - Static variable in class com.google.errorprone.SuppressionInfo
 
emptyFix() - Static method in class com.google.errorprone.fixes.SuggestedFix
Creates an empty SuggestedFix.
enabled() - Method in class com.google.errorprone.scanner.ScannerSupplier
 
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(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<Tree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node that is enclosed by some node that matches the given matcher.
enclosingPackage(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Return the enclosing PackageSymbol of the given symbol, or null.
endPos() - Method in class com.google.errorprone.util.ErrorProneToken
 
endPosition() - Method in class com.google.errorprone.fixes.Replacement
The end of the replacement range, exclusive.
endPositionAdjustment - Variable in class com.google.errorprone.fixes.AdjustedPosition
 
enhancedForLoop(Matcher<VariableTree>, Matcher<ExpressionTree>, Matcher<StatementTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an enhanced for loop if all the given matchers match.
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
 
equalsMethodDeclaration() - Static method in class com.google.errorprone.matchers.Matchers
Matches Object.equals(java.lang.Object) method declaration.
ErrorProneAnalyzer - Class in com.google.errorprone
A TaskListener that runs Error Prone over attributed compilation units.
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
 
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.
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.
ErrorProneScanner - Class in com.google.errorprone.scanner
Scans the parsed AST, looking for violations of any of the enabled checks.
ErrorProneScanner(BugChecker...) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
Create an error-prone scanner for the given checkers.
ErrorProneScanner(Iterable<BugChecker>) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
Create an error-prone scanner for a non-hardcoded set of checkers.
ErrorProneScanner(Iterable<BugChecker>, Map<String, BugPattern.SeverityLevel>) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
Create an error-prone scanner for a non-hardcoded set of checkers.
ErrorProneScannerTransformer - Class in com.google.errorprone.scanner
Adapter from an ErrorProneScanner to a CodeTransformer.
ErrorProneScannerTransformer() - Constructor for class com.google.errorprone.scanner.ErrorProneScannerTransformer
 
ErrorProneScope - Class in com.google.errorprone.util
A compatibility wrapper around Filter
ErrorProneTimings - Class in com.google.errorprone
A collection of timing data for the runtime of individual checks.
ErrorProneToken - Class in com.google.errorprone.util
Wraps a javac Tokens.Token to return comments in declaration order.
ErrorProneTokens - Class in com.google.errorprone.util
A utility for tokenizing and preserving comments.
ErrorProneTokens(String, Context) - Constructor for class com.google.errorprone.util.ErrorProneTokens
 
ErrorProneTokens(String, int, Context) - Constructor for class com.google.errorprone.util.ErrorProneTokens
 
ErrorProneVersion - Class in com.google.errorprone
The Error Prone version.
Exact - Class in com.google.errorprone.predicates.type
Matches types that exactly match the given type.
Exact(Supplier<Type>) - Constructor for class com.google.errorprone.predicates.type.Exact
 
ExactAny - Class in com.google.errorprone.predicates.type
Matches types that exactly match one of the given types.
ExactAny(Iterable<Supplier<Type>>) - Constructor for class com.google.errorprone.predicates.type.ExactAny
 
EXCEPTION_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
expected - Variable in class com.google.errorprone.predicates.type.DescendantOf
 
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.

F

FieldMatchers - Class in com.google.errorprone.matchers
Static utility methods for creating Matchers for detecting references to fields.
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.
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
 
findClass(Symbol.ClassSymbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the class tree that matches the given symbol within the compilation unit, or null if none was found.
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.
findEnclosingMethod(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Finds the enclosing MethodTree.
findEnclosingNode(TreePath, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Given a TreePath, walks up the tree until it finds a node of the given type.
findIdent(String, VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds a variable declaration with the given name that is in scope at the current location.
findIdent(String, VisitorState, Kinds.KindSelector) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds a declaration with the given name and type that is in scope at the current location.
FindIdentifiers - Class in com.google.errorprone.util
A helper class to find all identifiers in scope at a given program point.
findMatchingMethods(Name, Predicate<Symbol.MethodSymbol>, Type, Types) - Static method in class com.google.errorprone.util.ASTHelpers
Finds all methods in any superclass of startClass with a certain name that match the given predicate.
findMethod(Symbol.MethodSymbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the method tree that matches the given symbol within the compilation unit, or null if none was found.
findPathFromEnclosingNodeToTopLevel(TreePath, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Given a TreePath, finds the first enclosing node of the given type and returns the path from the enclosing node to the top-level CompilationUnitTree.
findPathToEnclosing(Class<? extends Tree>...) - Method in class com.google.errorprone.VisitorState
Returns the TreePath to the nearest tree node of one of the given types.
findReferencedIdentifiers(Tree) - Static method in class com.google.errorprone.util.FindIdentifiers
Find the set of all identifiers referenced within this Tree
findSuperMethod(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.util.ASTHelpers
Finds (if it exists) first (in the class hierarchy) non-interface super method of given method.
findSuperMethodInType(Symbol.MethodSymbol, Type, Types) - Static method in class com.google.errorprone.util.ASTHelpers
 
findSuperMethods(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.util.ASTHelpers
 
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
 
Fix - Interface in com.google.errorprone.fixes
Represents a source code transformation, usually used to fix a bug detected by error-prone.
FixedPosition - Class in com.google.errorprone.fixes
A JCDiagnostic.DiagnosticPosition with a fixed position.
FixedPosition(Tree, int) - Constructor for class com.google.errorprone.fixes.FixedPosition
 
fixes - Variable in class com.google.errorprone.matchers.Description
A list of fixes to suggest in an error message or use in automated refactoring.
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 interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
Deprecated.
Match on types that satisfy the given predicate.
forClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
Deprecated.
Match on the given type exactly.
forClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
Deprecated.
Match on the given type exactly.
forCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.SuppressionInfo
Generates the SuppressionInfo for a CompilationUnitTree.
from(Tree.Kind) - Static method in enum com.google.errorprone.util.OperatorPrecedence
 
fromAnnotations(Collection<String>) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
 
fromAnnotationsOn(Symbol) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
 
fromAnnotationsOn(TypeMirror) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
 
fromBugCheckerClasses(Class<? extends BugChecker>...) - Static method in class com.google.errorprone.scanner.ScannerSupplier
Returns a ScannerSupplier with a specific list of BugChecker classes.
fromBugCheckerClasses(Iterable<Class<? extends BugChecker>>) - Static method in class com.google.errorprone.scanner.ScannerSupplier
Returns a ScannerSupplier with a specific list of BugChecker classes.
fromBugCheckerInfos(Iterable<BugCheckerInfo>) - Static method in class com.google.errorprone.scanner.ScannerSupplier
Returns a ScannerSupplier built from a list of BugCheckerInfos.
fromDefaultAnnotations(Element) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
Walks the syntactically enclosing elements of the given element until it finds a defaulting annotation.
fromFieldAccess(FieldAccessNode) - Static method in class com.google.errorprone.dataflow.AccessPath
Creates an AccessPath from field reads / AutoValue accessor we can track and returns null otherwise (for example, when the receiver of the field access contains an array access or non-AutoValue method call.
fromLocalVariable(LocalVariableNode) - Static method in class com.google.errorprone.dataflow.AccessPath
 
fromMap(Map<String, String>) - Static method in class com.google.errorprone.ErrorProneFlags
 
fromModifiers(Set<Modifier>) - Static method in enum com.google.errorprone.util.Visibility
 
fromNodeIfTrackable(Node) - Static method in class com.google.errorprone.dataflow.AccessPath
Returns an AccessPath representing node if node is representable as an access path and null otherwise
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
 
fromVariableDecl(VariableDeclarationNode) - Static method in class com.google.errorprone.dataflow.AccessPath
 
FsFileDestination - Class in com.google.errorprone.apply
A FileDestination that writes content to a destination on the local filesystem.
FsFileDestination(Path) - Constructor for class com.google.errorprone.apply.FsFileDestination
 
FsFileSource - Class in com.google.errorprone.apply
A FileSource that reads source files from the local filesystem.
FsFileSource(Path) - Constructor for class com.google.errorprone.apply.FsFileSource
 

G

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
 
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
Deprecated.
If annotationClass contains a member that is a Class or an array of them, attempting to access that member from the Error Prone checker code will result in a runtime exception. Instead, operate on sym.getAnnotationMirrors() to meta-syntactically inspect the annotation.
getAnnotation(Symbol, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Deprecated.
If annotationClass contains a member that is a Class or an array of them, attempting to access that member from the Error Prone checker code will result in a runtime exception. Instead, operate on sym.getAnnotationMirrors() to meta-syntactically inspect the annotation.
getAnnotationMirror(AnnotationTree) - Static method in class com.google.errorprone.util.ASTHelpers
Return a mirror of this annotation.
getAnnotationName(AnnotationTree) - Static method in class com.google.errorprone.util.ASTHelpers
 
getAnnotations(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the annotations of the given tree, or an empty list.
getAnnotationsWithSimpleName(List<? extends AnnotationTree>, String) - Static method in class com.google.errorprone.util.ASTHelpers
Returns a list of AnnotationTree with the given simple name.
getAnnotationType(AnnotationTree, Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether anno corresponds to a type annotation, or null if it could not be determined.
getAnnotationValue(Attribute.Compound, String) - Static method in class com.google.errorprone.util.MoreAnnotations
Returns the value of the annotation element-value pair with the given name if it is explicitly set.
getAnnotationWithSimpleName(List<? extends AnnotationTree>, String) - Static method in class com.google.errorprone.util.ASTHelpers
Returns an AnnotationTree with the given simple name, or null.
getArgument(AnnotationTree, String) - Static method in class com.google.errorprone.matchers.AnnotationMatcherUtils
Gets the value for an argument, or null if the argument does not exist.
getAsSequence() - Method in class com.google.errorprone.apply.SourceFile
 
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
 
getConstantExpression(Object) - Method in class com.google.errorprone.VisitorState
Returns the Java source code for a constant expression representing the given constant value.
getConstructors(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the list of all constructors defined in the class (including generated ones).
getConstructors(Symbol.ClassSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the list of all constructors defined in the class.
getControlFlowGraph() - Method in interface com.google.errorprone.dataflow.DataFlow.Result
 
getCustomSuppressionAnnotations(VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
getCustomSuppressionAnnotations(VisitorState) - Method in class com.google.errorprone.scanner.Scanner
Returns a set of all the custom suppression annotation types used by the BugCheckers in thisScanner.
getDeclarationAndTypeAttributes(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns declaration annotations of the given symbol, as well as 'top-level' type annotations, including : Type annotations of the return type of a method.
getDeclarationAndTypeAttributes(Symbol) - Static method in class com.google.errorprone.util.MoreAnnotations
Returns declaration annotations of the given symbol, as well as 'top-level' type annotations, including : Type annotations of the return type of a method.
getDeclaredSymbol(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol declared by a tree.
getDescriptionListener(Log, JCTree.JCCompilationUnit) - Method in interface com.google.errorprone.DescriptionListener.Factory
 
getDiffs(FileSource, String[]) - Method in interface com.google.errorprone.apply.DiffSupplier
Gets the list of differences
getEditDistance(String, String) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
Returns the edit distance between two strings.
getEditDistance(String, String, boolean) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
Returns the edit distance between two strings.
getEditDistance(String, String, boolean, int, int, int) - Static method in class com.google.errorprone.names.NeedlemanWunschEditDistance
Returns the edit distance between two strings.
getElements() - Method in class com.google.errorprone.VisitorState
 
getEnabledChecks() - Method in class com.google.errorprone.scanner.ScannerSupplier
Returns the set of BugCheckerInfos that are enabled in this ScannerSupplier.
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.FixedPosition
 
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.
getEnum(String, Class<T>) - Method in class com.google.errorprone.ErrorProneFlags
Gets the flag value for an enum of the given type, wrapped in an Optional, which is empty if the flag is unset.
getEnumSet(String, Class<T>) - Method in class com.google.errorprone.ErrorProneFlags
Gets the flag value for a comma-separated set of enums of the given type, wrapped in an Optional, which is empty if the flag is unset.
getErasedTypeTree(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the erasure of the given type tree, i.e.
getExcludedPattern() - Method in class com.google.errorprone.ErrorProneOptions
 
getExprNullness(ExpressionTree) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.InferredNullability
Get inferred nullness qualifier for an expression, if possible.
getFieldInitializerNullness(TreePath, Context) - Method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
Returns Nullness of the initializer of the VariableTree at the leaf of the given fieldDeclPath.
getFileName(CompilationUnitTree) - Static method in class com.google.errorprone.util.ASTHelpers
Extract the filename from a CompilationUnitTree, with special handling for jar files.
getFileNameFromUri(URI) - Static method in class com.google.errorprone.util.ASTHelpers
Extract the filename from the URI, with special handling for jar files.
getFixes() - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes
 
getFlags() - Method in class com.google.errorprone.ErrorProneOptions
 
getFlags() - Method in class com.google.errorprone.scanner.ScannerSupplier
 
getFlagsMap() - Method in class com.google.errorprone.ErrorProneFlags
 
getFragmentByChars(int, int) - Method in class com.google.errorprone.apply.SourceFile
Returns a fragment of the source code as a string.
getFragmentByLines(int, int) - Method in class com.google.errorprone.apply.SourceFile
Returns a fragment of the source code between the two stated line numbers.
getGeneratedBy(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the value of the @Generated annotation on enclosing classes, if present.
getGeneratedBy(Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the values of the given symbol's Generated annotations, if present.
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
 
getImportsToRemove() - Method in interface com.google.errorprone.fixes.Fix
 
getImportsToRemove() - Method in class com.google.errorprone.fixes.SuggestedFix
 
getInferredNullability(Tree) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
 
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.
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 List of Strings, wrapped in an Optional, which is empty if the flag is unset.
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.
getModifiedFileUri(VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes.FixCompiler
 
getModifiers(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the modifiers tree of the given class, method, or variable declaration.
getName(String) - Method in class com.google.errorprone.VisitorState
 
getNames() - Method in class com.google.errorprone.VisitorState
 
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
 
getNullnessGenerics(MethodInvocationTree) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.InferredNullability
Get inferred nullness qualifiers for method-generic type variables at a callsite.
getNullnessValue(ExpressionTree, VisitorState, NullnessAnalysis) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the Nullness for an expression as determined by the nullness dataflow analysis.
getOffsetTokens(int, int) - Method in class com.google.errorprone.VisitorState
Returns the list of Tokens.Tokens for source code between the given positions, offset by the start position.
getOffsetTokensForNode(Tree) - Method in class com.google.errorprone.VisitorState
Returns the list of Tokens.Tokens for the given JCTree, offset by the start position of the tree within the overall source.
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.FixedPosition
 
getPreferredPosition() - Method in class com.google.errorprone.fixes.IndexedPosition
 
getRawMessage() - Method in class com.google.errorprone.matchers.Description
Returns the raw message, not including a link or check name.
getReceiver(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the receiver of an expression.
getReceiverType(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the type of a receiver of a method call expression.
getRelevantFileName() - Method in class com.google.errorprone.apply.DescriptionBasedDiff
 
getRelevantFileName() - Method in interface com.google.errorprone.apply.Diff
Gets the name of the file this difference applies to
getRemainingArgs() - Method in class com.google.errorprone.ErrorProneOptions
 
getReplacements(EndPosTable) - Method in interface com.google.errorprone.fixes.Fix
 
getReplacements(EndPosTable) - Method in class com.google.errorprone.fixes.SuggestedFix
 
getResultType(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the type that this expression tree will evaluate to.
getReturnType(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.
getSet(String) - Method in class com.google.errorprone.ErrorProneFlags
Gets the flag value for the given key as a comma-separated Set of Strings, wrapped in an Optional, which is empty if the flag is unset.
getSeverityMap() - Method in class com.google.errorprone.ErrorProneOptions
 
getShortDescription() - Method in interface com.google.errorprone.fixes.Fix
A short description which can be attached to the Fix to differentiate multiple fixes provided to the user.
getShortDescription() - Method in class com.google.errorprone.fixes.SuggestedFix
 
getSourceCode() - Method in class com.google.errorprone.VisitorState
Gets the current source file.
getSourceForNode(Tree) - Method in class com.google.errorprone.VisitorState
Gets the original source code that represents the given node.
getSourceText() - Method in class com.google.errorprone.apply.SourceFile
Returns a copy of the code as a string.
getSourceVersions() - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
getStandardFileManager(DiagnosticListener<? super JavaFileObject>, Locale, Charset) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
getStartPos() - Method in class com.google.errorprone.apply.ImportStatements
Return the start position of the import statements.
getStartPosition() - Method in class com.google.errorprone.fixes.AdjustedPosition
 
getStartPosition() - Method in class com.google.errorprone.fixes.FixedPosition
 
getStartPosition() - Method in class com.google.errorprone.fixes.IndexedPosition
 
getStartPosition(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the start position of the node.
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.
getSymbolFromName(Name) - Method in class com.google.errorprone.VisitorState
Look up the class symbol for a given Name.
getSymbolFromString(String) - Method in class com.google.errorprone.VisitorState
 
getSymbolFromString(Symbol.ModuleSymbol, Name) - Method in class com.google.errorprone.VisitorState
 
getSymbols(Predicate<Symbol>) - Method in class com.google.errorprone.util.ErrorProneScope
 
getSymbols(Predicate<Symbol>, Scope.LookupKind) - Method in class com.google.errorprone.util.ErrorProneScope
 
getSymbolsByName(Name, Predicate<Symbol>) - Method in class com.google.errorprone.util.ErrorProneScope
 
getSymbolsByName(Name, Predicate<Symbol>, Scope.LookupKind) - Method in class com.google.errorprone.util.ErrorProneScope
 
getSymtab() - Method in class com.google.errorprone.VisitorState
 
getTags() - Method in class com.google.errorprone.BugCheckerInfo
 
getTask(Writer, JavaFileManager, DiagnosticListener<? super JavaFileObject>, Iterable<String>, Iterable<String>, Iterable<? extends JavaFileObject>) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
getTextFromComment(Tokens.Comment) - Static method in class com.google.errorprone.util.Comments
Extract the text body from a comment.
getThrownExceptions(Tree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the exceptions thrown by tree.
getThrownTypes() - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
getTokens() - Method in class com.google.errorprone.util.ErrorProneTokens
 
getTokens(String, Context) - Static method in class com.google.errorprone.util.ErrorProneTokens
Returns the tokens for the given source text, including comments.
getTokens(String, int, Context) - Static method in class com.google.errorprone.util.ErrorProneTokens
Returns the tokens for the given source text, including comments, indicating the offset of the source within the overall file.
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.FixedPosition
 
getTree() - Method in class com.google.errorprone.fixes.IndexedPosition
 
getTreeMaker() - Method in class com.google.errorprone.VisitorState
 
getType() - Method in class com.google.errorprone.apply.ImportOrganizer.Import
Return the type to import.
getType(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.
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
 
getUpperBound(TypeVariable) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnnotations
Returns any declared or implied bound for the given type variable, meaning this returns any annotation on the given type variable and otherwise returns NullnessAnnotations.fromDefaultAnnotations(javax.lang.model.element.Element) to find any default in scope of the given type variable.
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(Attribute.Compound, String) - Static method in class com.google.errorprone.util.MoreAnnotations
Returns the value of the annotation element-value pair with the given name if it is explicitly set.
getWorstCaseEditDistance(int, int) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
Calculate the worst case distance between two strings with the given lengths
getWorstCaseEditDistance(int, int, int, int, int) - Static method in class com.google.errorprone.names.NeedlemanWunschEditDistance
Return the worst case edit distance between strings of this length
greatestLowerBound(Nullness) - Method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
 
GUICE_BINDING_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
GUICE_INJECT_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
GUICE_MAP_KEY_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
GUICE_PROVIDES_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
GUICE_SCOPE_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 

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
 
HAS_INJECT_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
hasAnnotation(String) - Static method in class com.google.errorprone.matchers.Matchers
Determines whether an expression has an annotation of the given type.
hasAnnotation(TypeMirror) - Static method in class com.google.errorprone.matchers.Matchers
Determines if an expression has an annotation referred to by the given mirror.
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, String, 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.
hasAnyAnnotation(Class<? extends Annotation>...) - Static method in class com.google.errorprone.matchers.Matchers
 
hasAnyAnnotation(List<? extends TypeMirror>) - Static method in class com.google.errorprone.matchers.Matchers
 
HasArguments - 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.
hasDirectAnnotationWithSimpleName(Tree, String) - Static method in class com.google.errorprone.util.ASTHelpers
Check for the presence of an annotation with a specific simple name directly on this symbol.
hashCode() - Method in class com.google.errorprone.BugCheckerInfo
 
hashCode() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
hashCodeMethodDeclaration() - Static method in class com.google.errorprone.matchers.Matchers
Matches hashCode method declaration.
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(MethodTree, VisitorState) - Static method in class com.google.errorprone.matchers.JUnitMatchers
Checks if a method, or any overridden method, is annotated with any annotation from the org.junit package.
hasMethod(Matcher<MethodTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a class in which at least one method matches the given methodMatcher.
hasModifier(Modifier) - Static method in class com.google.errorprone.matchers.Matchers
Returns true if the Tree node has the expected Modifier.
hasName() - Method in class com.google.errorprone.util.ErrorProneToken
 
hasNullableAnnotation(Symbol) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
 
hasProvidesAnnotation() - Static method in class com.google.errorprone.matchers.InjectMatchers
 
hasRadix() - Method in class com.google.errorprone.util.ErrorProneToken
 
hasSideEffect(ExpressionTree) - Static method in class com.google.errorprone.util.SideEffectAnalysis
Tries to establish whether expression is side-effect free.
hasStringVal() - Method in class com.google.errorprone.util.ErrorProneToken
 
hasTestNgAnnotation(MethodTree, VisitorState) - Static method in class com.google.errorprone.matchers.TestNgMatchers
Checks if a method, or any overridden method, is annotated with any annotation from the org.testng package.
hasTestNgAnnotation(ClassTree) - Static method in class com.google.errorprone.matchers.TestNgMatchers
Checks if a class is annotated with any annotation from the org.testng package.
heap() - Method in class com.google.errorprone.dataflow.AccessPathStore
 

I

IDEA_ORGANIZER - Static variable in interface com.google.errorprone.apply.ImportOrganizer
An ImportOrganizer that organizes imports based on the default format provided by IntelliJ IDEA.
IdeaImportOrganizer - Class in com.google.errorprone.apply
Organizes imports based on the default format provided by IntelliJ IDEA.
IdeaImportOrganizer() - Constructor for class com.google.errorprone.apply.IdeaImportOrganizer
 
identitySupplier(T) - Static method in class com.google.errorprone.suppliers.Suppliers
Supplies what was given.
ignoreLargeCodeGenerators() - Method in class com.google.errorprone.ErrorProneOptions
 
ignoreParens(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Ignores any number of parenthesis wrapping an expression and then applies the passed matcher to that expression.
ignoreUnknownChecks() - Method in class com.google.errorprone.ErrorProneOptions
 
Import() - Constructor for class com.google.errorprone.apply.ImportOrganizer.Import
 
ImportOrderParser - Class in com.google.errorprone
Parse import order strings.
ImportOrganizer - Interface in com.google.errorprone.apply
Organizes import statements when patching files.
ImportOrganizer.Import - Class in com.google.errorprone.apply
Represents an import.
ImportOrganizer.OrganizedImports - Class in com.google.errorprone.apply
Provides support for building a list of imports from groups and formatting it as a block of imports.
importsHaveChanged() - Method in class com.google.errorprone.apply.ImportStatements
 
ImportStatements - Class in com.google.errorprone.apply
Represents a list of import statements.
incrementCounter(String) - Method in interface com.google.errorprone.StatisticsCollector
Adds 1 to the counter for key.
incrementCounter(String, int) - Method in interface com.google.errorprone.StatisticsCollector
Adds count to the counter for key.
incrementCounter(BugChecker, String) - Method in class com.google.errorprone.VisitorState
Increment the counter for a combination of bugChecker's canonical name and key by 1.
incrementCounter(BugChecker, String, int) - Method in class com.google.errorprone.VisitorState
Increment the counter for a combination of bugChecker's canonical name and key by count.
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
 
InferredNullability - Class in com.google.errorprone.dataflow.nullnesspropagation.inference
Results of running NullnessQualifierInference over a method.
InjectMatchers - Class in com.google.errorprone.matchers
Utility constants and matchers related to dependency injection.
inLoop() - Static method in class com.google.errorprone.matchers.Matchers
Matches if the given tree is inside a loop.
inSamePackage(Symbol, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Return true if the given symbol is defined in the current package.
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 class com.google.errorprone.ErrorProneTimings
 
instance(Context) - Static method in class com.google.errorprone.JavacInvocationInstance
 
instanceEqualsInvocation() - Static method in class com.google.errorprone.matchers.Matchers
Matches calls to the method Object.equals(Object) or any override of that method.
instanceField(String, String) - Static method in class com.google.errorprone.matchers.FieldMatchers
 
instanceHashCodeInvocation() - Static method in class com.google.errorprone.matchers.Matchers
Matches calls to the method Object.hashCode() or any override of that method.
instanceMethod() - Static method in class com.google.errorprone.matchers.Matchers
Matches an instance method.
instanceMethod() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
 
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
 
intLiteral(int) - Static method in class com.google.errorprone.matchers.Matchers
 
InvalidCommandLineOptionException - Exception in com.google.errorprone
 
InvalidCommandLineOptionException(String) - Constructor for exception com.google.errorprone.InvalidCommandLineOptionException
 
IS_APPLICATION_OF_AT_INJECT - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_APPLICATION_OF_GUICE_INJECT - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_APPLICATION_OF_JAVAX_INJECT - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_BINDING_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_DAGGER_COMPONENT - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_DAGGER_COMPONENT_OR_MODULE - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
IS_INTERFACE - Static variable in class com.google.errorprone.matchers.Matchers
 
IS_SCOPING_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
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.
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.
isAtLeast10() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns true if the current runtime is JDK 10 or newer.
isAtLeast11() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns true if the current runtime is JDK 11 or newer.
isAtLeast12() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns true if the current runtime is JDK 12 or newer.
isAtLeast13() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns true if the current runtime is JDK 13 or newer.
isAtLeast14() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns true if the current runtime is JDK 14 or newer.
isAtLeast15() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns true if the current runtime is JDK 15 or newer.
isAtLeast16() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns true if the current runtime is JDK 16 or newer.
isAtLeast17() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns true if the current runtime is JDK 17 or newer.
isAtLeast8() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns true if the current runtime is JDK 8 or newer.
isAtLeast9() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns true if the current runtime is JDK 9 or newer.
isAtLeastAsRestrictiveAs(Visibility) - Method in enum com.google.errorprone.util.Visibility
 
isAtMost10() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns true if the current runtime is JDK 10 or earlier.
isAutoValueAccessor(Tree) - Static method in class com.google.errorprone.dataflow.AccessPath
Check whether tree is an AutoValue accessor.
isBoxedPrimitiveType() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its type is a boxed primitive type.
isBugCheckerCode(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the code is in a BugChecker class.
isCastable(Type, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if erasure(s) is castable to erasure(t).
isCheckedExceptionType(Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if t is a subtype of Throwable but not a subtype of RuntimeException or Error.
isConcreteClassWithoutRunWith - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Match a class which appears to be missing a @RunWith annotation.
isConsideredFinal(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns whether symbol is final or effectively final.
isDescendantOf(Supplier<Type>) - Static method in class com.google.errorprone.predicates.TypePredicates
Match sub-types of the given type.
isDescendantOf(String) - Static method in class com.google.errorprone.predicates.TypePredicates
Match sub-types of the given type.
isDescendantOfAny(Iterable<String>) - Static method in class com.google.errorprone.predicates.TypePredicates
Match types that are a sub-type of one of the given types.
isDirectImplementationOf(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches any node that is directly an implementation, but not extension, of the given Class.
isDisableAllChecks() - Method in class com.google.errorprone.ErrorProneOptions
 
isDisableAllWarnings() - Method in class com.google.errorprone.ErrorProneOptions
 
isDropErrorsToWarnings() - Method in class com.google.errorprone.ErrorProneOptions
 
isEmpty() - Method in class com.google.errorprone.apply.DescriptionBasedDiff
 
isEmpty() - Method in class com.google.errorprone.ErrorProneFlags
Whether this Flags object is empty, i.e.
isEmpty() - Method in interface com.google.errorprone.fixes.Fix
 
isEmpty() - Method in class com.google.errorprone.fixes.Replacements
 
isEmpty() - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
isEmpty() - Method in class com.google.errorprone.fixes.SuggestedFix
 
isEnableAllChecksAsWarnings() - Method in class com.google.errorprone.ErrorProneOptions
 
isEnum() - Static method in class com.google.errorprone.matchers.Matchers
Matches if a ClassTree is an enum declaration.
isExactType(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.
isGeneratedConstructor(MethodTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the given tree is a generated constructor.
isHigher(OperatorPrecedence) - Method in enum com.google.errorprone.util.OperatorPrecedence
 
isIgnoreSuppressionAnnotations() - Method in class com.google.errorprone.ErrorProneOptions
 
isInstance(Class<?>) - Static method in class com.google.errorprone.matchers.Matchers
Matches if an AST node is an instance of the given class.
isInstanceField() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node that represents a non-static field.
isJunit3TestCase - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Match a method which appears to be a JUnit 3 test case.
isJUnit3TestClass - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Match a class which appears to be a JUnit 3 test class.
isJUnit4TestClass - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Matches classes which have attributes of only JUnit4 test classes.
isJUnit4TestRunnerOfType(Iterable<String>) - Static method in class com.google.errorprone.matchers.JUnitMatchers
Matches an argument of type Class<T>, where T is a subtype of one of the test runners listed in the TEST_RUNNERS field.
isJUnitTestCode(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the leaf node in the TreePath from state sits somewhere underneath a class or method that is marked as JUnit 3 or 4 test code.
isKnownNonNullReturning() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
isLastStatementInBlock() - Static method in class com.google.errorprone.matchers.Matchers
Matches a statement AST node if the statement is the last statement in the block.
isLocal(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the symbol is directly or indirectly local to a method or variable initializer; see [@code Symbol#isLocal} or Symbol#isDirectlyOrIndirectlyLocal.
isMoreVisibleThan(Visibility) - Method in enum com.google.errorprone.util.Visibility
 
isNonNull() - Static method in class com.google.errorprone.matchers.Matchers
Deprecated.
isNonNullUsingDataflow() - Static method in class com.google.errorprone.matchers.Matchers
Matches if the expression is provably non-null.
isNull() - Static method in class com.google.errorprone.matchers.Matchers
Deprecated.
isNullUsingDataflow() - Static method in class com.google.errorprone.matchers.Matchers
Matches if the expression is provably null.
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.
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.
isSuper(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
 
isSupportedOption(String) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
isSupportedOption(String) - Static method in class com.google.errorprone.ErrorProneOptions
isSuppressed(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, ErrorProneOptions, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
Returns 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.
isTestNgTestCode(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the leaf node in the TreePath from state sits somewhere underneath a class or method that is marked as TestNG test code.
isTestOnlyTarget() - Method in class com.google.errorprone.ErrorProneOptions
 
isThrowingFunctionalInterface(Type, VisitorState) - Static method in class com.google.errorprone.matchers.Matchers
 
isTransient() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node that is transient.
isType(String) - Static method in class com.google.errorprone.matchers.Matchers
 
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'.

J

JAVA_LANG_BOOLEAN_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
JAVA_LANG_INTEGER_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
JAVA_LANG_LONG_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
JAVA_LANG_VOID_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
JavacErrorDescriptionListener - Class in com.google.errorprone
Making our errors appear to the user and break their build.
javaCharEscaper() - Static method in class com.google.errorprone.util.SourceCodeEscapers
Returns an Escaper instance that escapes special characters in a string so it can safely be included in either a Java character literal or string literal.
JavacInvocationInstance - Class in com.google.errorprone
A token uniquely identifying a single invocation of javac.
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
 
JUNIT4_RUN_WITH_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
JUNIT4_TEST_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
JUNIT4_THEORY_ANNOTATION - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
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
 
JUnitMatchers - Class in com.google.errorprone.matchers
Matchers for code patterns which appear to be JUnit-based tests.

K

Kind() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
 
kind() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
 
kind() - Method in class com.google.errorprone.util.ErrorProneToken
 
kindAnyOf(Set<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.
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.

L

leastUpperBound(AccessPathStore<V>) - Method in class com.google.errorprone.dataflow.AccessPathStore
 
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.
LevenshteinEditDistance - Class in com.google.errorprone.names
A utility class for finding the Levenshtein edit distance between strings.
linkUrl() - Method in class com.google.errorprone.BugCheckerInfo
 
linkUrl() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
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.
logFatalError(Log) - Method in error com.google.errorprone.ErrorProneError
logFatalError(Log, Context) - Method in error com.google.errorprone.ErrorProneError
 
LONG_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
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.

M

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
 
matchAnnotatedType(AnnotatedTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AnnotatedTypeTreeMatcher
 
matchAnnotation(AnnotationTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AnnotationTreeMatcher
 
matchArrayAccess(ArrayAccessTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ArrayAccessTreeMatcher
 
matchArrayType(ArrayTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ArrayTypeTreeMatcher
 
matchAssert(AssertTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AssertTreeMatcher
 
matchAssignment(AssignmentTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.AssignmentTreeMatcher
 
matchBinary(BinaryTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.BinaryTreeMatcher
 
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
 
matchBreak(BreakTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.BreakTreeMatcher
 
matchCase(CaseTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CaseTreeMatcher
 
matchCatch(CatchTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CatchTreeMatcher
 
matchClass(ClassTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ClassTreeMatcher
 
matchCompilationUnit(CompilationUnitTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CompilationUnitTreeMatcher
 
matchCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.CompoundAssignmentTreeMatcher
 
matchConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ConditionalExpressionTreeMatcher
 
matchContinue(ContinueTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ContinueTreeMatcher
 
matchDoWhileLoop(DoWhileLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.DoWhileLoopTreeMatcher
 
matchEmptyStatement(EmptyStatementTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.EmptyStatementTreeMatcher
 
matchEnhancedForLoop(EnhancedForLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.EnhancedForLoopTreeMatcher
 
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(T, VisitorState) - Method in class com.google.errorprone.matchers.Enclosing.BlockOrCase
 
matches(Tree, VisitorState) - Method in class com.google.errorprone.matchers.HasIdentifier
 
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(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.NullnessMatcher
 
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
 
matchExpressionReturn(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches the Tree if it returns an expression matching expressionTreeMatcher.
matchExpressionStatement(ExpressionStatementTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ExpressionStatementTreeMatcher
 
matchForLoop(ForLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ForLoopTreeMatcher
 
matchIdentifier(IdentifierTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.IdentifierTreeMatcher
 
matchIf(IfTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.IfTreeMatcher
 
matchImport(ImportTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ImportTreeMatcher
 
matchingMethods(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.
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 interface com.google.errorprone.bugpatterns.BugChecker.LambdaExpressionTreeMatcher
 
matchLiteral(LiteralTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.LiteralTreeMatcher
 
matchMemberReference(MemberReferenceTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MemberReferenceTreeMatcher
 
matchMemberSelect(MemberSelectTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MemberSelectTreeMatcher
 
matchMethod(MethodTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MethodTreeMatcher
 
matchMethodInvocation(MethodInvocationTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.MethodInvocationTreeMatcher
 
matchModifiers(ModifiersTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ModifiersTreeMatcher
 
matchNewArray(NewArrayTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.NewArrayTreeMatcher
 
matchNewClass(NewClassTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.NewClassTreeMatcher
 
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
 
matchReturn(ReturnTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ReturnTreeMatcher
 
matchSingleStatementBlock(Matcher<StatementTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a BlockTree if it single statement block with statement matching statementMatcher.
MatchState - Interface in com.google.errorprone.matchers.method
The state that is propagated across a match operation.
matchSwitch(SwitchTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.SwitchTreeMatcher
 
matchSynchronized(SynchronizedTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.SynchronizedTreeMatcher
 
matchThrow(ThrowTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ThrowTreeMatcher
 
matchTry(TryTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.TryTreeMatcher
 
matchTypeCast(TypeCastTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.TypeCastTreeMatcher
 
matchTypeParameter(TypeParameterTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.TypeParameterTreeMatcher
 
matchUnary(UnaryTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.UnaryTreeMatcher
 
matchUnionType(UnionTypeTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.UnionTypeTreeMatcher
 
matchVariable(VariableTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.VariableTreeMatcher
 
matchWhileLoop(WhileLoopTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.WhileLoopTreeMatcher
 
matchWildcard(WildcardTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.WildcardTreeMatcher
 
memoize(Supplier<T>) - Static method in class com.google.errorprone.VisitorState
Produces a cache for a function that is expected to return the same result throughout a compilation, but requires a VisitorState to compute that result.
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
 
method() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
Method(Matcher<MethodTree>) - Constructor for class com.google.errorprone.matchers.Enclosing.Method
 
methodCallInDeclarationOfThrowingRunnable(VisitorState) - Static method in class com.google.errorprone.matchers.Matchers
 
methodCanBeOverridden(Symbol.MethodSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
Determines whether a method can be overridden.
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
 
MethodInvocationMatcher - Class in com.google.errorprone.matchers.method
The machinery and type definitions necessary to model and compile a single efficient matcher out of a list of MethodMatchers.MethodMatchers.
MethodInvocationMatcher.MethodKind - Enum in com.google.errorprone.matchers.method
The kinds of things that count as a method invocation.
MethodInvocationMatcher.Rule - Class in com.google.errorprone.matchers.method
A rule describing a set of constraints for a method invocation.
MethodInvocationMatcher.Token - Interface in com.google.errorprone.matchers.method
A specific value for a property that a method invocation can have.
MethodInvocationMatcher.Token.DefinedIn - Class in com.google.errorprone.matchers.method
A token specifying the class or interface in which the invoked method was defined.
MethodInvocationMatcher.Token.Kind - Class in com.google.errorprone.matchers.method
A token limiting the MethodInvocationMatcher.Token.Kind of invocation to match.
MethodInvocationMatcher.Token.MethodName - Class in com.google.errorprone.matchers.method
A token limiting the name of the method being invoked.
MethodInvocationMatcher.Token.ParameterTypes - Class in com.google.errorprone.matchers.method
A token limiting the types of the formal parameters of the method being invoked.
MethodInvocationMatcher.Token.ReceiverSupertype - Class in com.google.errorprone.matchers.method
A token specifying that the class of the object on which the method is being invoked must be a subtype of another type.
MethodInvocationMatcher.Token.ReceiverType - Class in com.google.errorprone.matchers.method
A token specifying the exact type of the object on which the method is being invoked (or the class in which it is defined, for static methods).
MethodInvocationMatcher.TokenType - Enum in com.google.errorprone.matchers.method
The kinds of properties a matcher can match against.
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.
MethodMatchers - Class in com.google.errorprone.matchers.method
 
MethodMatchers.AnyMethodMatcher - Interface in com.google.errorprone.matchers.method
Deprecated.
use Matcher<ExpressionTree> instead of referring directly to this type.
MethodMatchers.ConstructorClassMatcher - Interface in com.google.errorprone.matchers.method
Deprecated.
use Matcher<ExpressionTree> instead of referring directly to this type.
MethodMatchers.ConstructorMatcher - Interface in com.google.errorprone.matchers.method
Deprecated.
use Matcher<ExpressionTree> instead of referring directly to this type.
MethodMatchers.InstanceMethodMatcher - Interface in com.google.errorprone.matchers.method
Deprecated.
use Matcher<ExpressionTree> instead of referring directly to this type.
MethodMatchers.MethodClassMatcher - Interface in com.google.errorprone.matchers.method
Deprecated.
use Matcher<ExpressionTree> instead of referring directly to this type.
MethodMatchers.MethodMatcher - Interface in com.google.errorprone.matchers.method
Deprecated.
use Matcher<ExpressionTree> instead of referring directly to this type.
MethodMatchers.MethodNameMatcher - Interface in com.google.errorprone.matchers.method
Deprecated.
use Matcher<ExpressionTree> instead of referring directly to this type.
MethodMatchers.MethodSignatureMatcher - Interface in com.google.errorprone.matchers.method
Deprecated.
use Matcher<ExpressionTree> instead of referring directly to this type.
MethodMatchers.ParameterMatcher - Interface in com.google.errorprone.matchers.method
Deprecated.
use Matcher<ExpressionTree> instead of referring directly to this type.
MethodMatchers.StaticMethodMatcher - Interface in com.google.errorprone.matchers.method
Deprecated.
use Matcher<ExpressionTree> instead of referring directly to this type.
MethodName() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
 
methodName() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
 
methodNameStartsWith(String) - Static method in class com.google.errorprone.matchers.Matchers
Match a method declaration that starts with a given string.
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 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
 
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
The visibility of a member.
methodWithClassAndName(String, String) - Static method in class com.google.errorprone.matchers.Matchers
Match a method declaration with a specific enclosing class and method name.
MoreAnnotations - Class in com.google.errorprone.util
Annotation-related utilities.
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.

N

name() - Method in class com.google.errorprone.util.ErrorProneToken
 
named(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
Deprecated.
Match methods with the given name.
namedAnyOf(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
Deprecated.
Match methods with any of the given names.
namedAnyOf(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
Deprecated.
Match methods with any of the given names.
NamingConventions - Class in com.google.errorprone.names
Utility functions for dealing with Java naming conventions
NeedlemanWunschEditDistance - Class in com.google.errorprone.names
The Needleman-Wunsch algorithm for finding least-cost string edit distances between pairs of strings.
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.
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.
NO_MATCH - Static variable in class com.google.errorprone.matchers.Description
Describes the sentinel value of the case where the match failed.
nodeMatcher - Variable in class com.google.errorprone.matchers.ChildMultiMatcher
The matcher to apply to the subnodes in question.
nonNullLiteral() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if it is a literal other than null.
not(Matcher<T>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node iff it does not match the given matcher.
not(TypePredicate) - Static method in class com.google.errorprone.predicates.TypePredicates
 
nothing() - Static method in class com.google.errorprone.matchers.Matchers
A matcher that matches no AST node.
nullLiteral() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if it is a null literal.
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.
NullnessAnnotations - Class in com.google.errorprone.dataflow.nullnesspropagation
Utilities to extract Nullness from annotations.
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
 
NullnessQualifierInference - Class in com.google.errorprone.dataflow.nullnesspropagation.inference
Eagerly traverse one MethodTree at a time and accumulate constraints between nullness qualifiers.
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.

O

OBJECT_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
onClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
Deprecated.
Match the given type exactly.
onClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
Deprecated.
Match on types with the given fully-qualified name.
onClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Deprecated.
Match on types that satisfy the given predicate.
onClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Deprecated.
Match on types that satisfy the given predicate.
onClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Deprecated.
Match on types with the given fully-qualified name.
onClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Deprecated.
Match on the given type exactly.
onClassAny(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Deprecated.
Match on types that are equal to any of the given types.
onClassAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Deprecated.
Match on types that are equal to any of the given types.
onDescendantOf(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Deprecated.
Match on descendants of the given fully-qualified type name.
onDescendantOf(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Deprecated.
Match on descendants of the given type.
onDescendantOfAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Deprecated.
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
Deprecated.
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
Deprecated.
Match on types with the given fully-qualified name.
onExactClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Deprecated.
Match on the given type exactly.
onExactClassAny(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Deprecated.
Match on types that are exactly the same as any of the the given types.
onExactClassAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Deprecated.
Match on types that are exactly the same as any of the the given types.
onlyMatchingNode() - Method in class com.google.errorprone.matchers.MultiMatcher.MultiMatchResult
 
OperatorPrecedence - Enum in com.google.errorprone.util
The precedence for an operator kind in the com.sun.source.tree API.
OrganizedImports() - Constructor for class com.google.errorprone.apply.ImportOrganizer.OrganizedImports
 
organizeImports(List<ImportOrganizer.Import>) - Method in class com.google.errorprone.apply.IdeaImportOrganizer
 
organizeImports(List<ImportOrganizer.Import>) - Method in interface com.google.errorprone.apply.ImportOrganizer
Organize the imports supplied, e.g.
outermostClass(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the outermost enclosing owning class, or null.
owner() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
 
ownerType() - Method in class com.google.errorprone.matchers.method.ConstructorMatchState
The type of the class in which a member method or constructor is declared.
ownerType() - Method in interface com.google.errorprone.matchers.method.MatchState
The type of the class in which a member method or constructor is declared.

P

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.
ParameterTypes() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
 
parameterTypes() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
 
paramTypes() - Method in interface com.google.errorprone.matchers.method.MatchState
The method's formal parameter types.
parentNode(Matcher<Tree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its parent node is matched by the given matcher.
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.
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.dataflow.AccessPath
 
path() - Method in class com.google.errorprone.util.ASTHelpers.TargetType
 
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
 
position - Variable in class com.google.errorprone.matchers.Description
The position of the match.
postfixWith(Tree, String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
postfixWith(Tree, String) - Static method in class com.google.errorprone.fixes.SuggestedFix
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.
prettyMethodSignature(Symbol.ClassSymbol, Symbol.MethodSymbol) - Static method in class com.google.errorprone.util.Signatures
Pretty-prints a method signature for use in diagnostics.
prettyType(Type, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
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.
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.
put(Diff) - Method in class com.google.errorprone.apply.DiffApplier
 
putFlag(String, String) - Method in class com.google.errorprone.ErrorProneFlags.Builder
Puts a key-value pair directly in this builder's dictionary.

Q

qualifyDocReference(SuggestedFix.Builder, DocTreePath, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Fully qualifies a javadoc reference, e.g.
qualifyStaticImport(String, SuggestedFix.Builder, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Provides a name to use for the (fully qualified) method provided in qualifiedName, trying to static import it if possible.
qualifyType(VisitorState, SuggestedFix.Builder, Symbol) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a human-friendly name of the given Symbol 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.
qualifyType(VisitorState, SuggestedFix.Builder, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a human-friendly name of the given typeName for use in fixes.

R

radix() - Method in class com.google.errorprone.util.ErrorProneToken
 
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
 
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.
ReceiverSupertype() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
 
receiverSupertype() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
 
ReceiverType() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
 
receiverType() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
 
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.
Regexes - Class in com.google.errorprone.util
Utilities for checks that work with regexes.
release() - Static method in class com.google.errorprone.util.RuntimeVersion
Returns the latest --release version.
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
Removes modifiers from the given class, method, or field declaration.
removeModifiers(ModifiersTree, VisitorState, Set<Modifier>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Removes modifiers to the given declaration and corresponding modifiers tree.
removeStaticImport(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Remove a static import statement as part of this SuggestedFix.
removeSuppressWarnings(SuggestedFix.Builder, VisitorState, String) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Modifies fixBuilder to either remove a warningToRemove warning from the closest SuppressWarning node or remove the entire SuppressWarning node if warningToRemove is the only warning in that node.
renameMethod(MethodTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Be warned, only changes method name at the declaration.
renameMethodInvocation(MethodInvocationTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Replaces the name of the method being invoked in tree with replacement.
renameMethodWithInvocations(MethodTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Renames the given MethodTree and its usages in the current compilation unit to replacement.
renameTypeParameter(TypeParameterTree, Tree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Renames a type parameter typeParameter owned by owningTree to typeVarReplacement.
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.
renameVariableUsages(VariableTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Renames usage of the given VariableTree in the current compilation unit to replacement.
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.
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.
replaceIncludingComments(TreePath, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Replaces the tree at path along with any Javadocs/associated single-line comments.
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
 
Replacements.CoalescePolicy - Enum in com.google.errorprone.fixes
A policy for handling overlapping insertions.
replaceWith() - Method in class com.google.errorprone.fixes.Replacement
The source text to appear in the output.
reportMatch(Description, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
 
reportMatch(Description) - Method in class com.google.errorprone.VisitorState
 
required() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Rule
 
requiresParentheses(ExpressionTree, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
 
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.
Result() - Constructor for class com.google.errorprone.fixes.SuggestedFixes.FixCompiler.Result
 
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.
Rule() - Constructor for class com.google.errorprone.matchers.method.MethodInvocationMatcher.Rule
 
run(InputStream, OutputStream, OutputStream, String...) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
RuntimeVersion - Class in com.google.errorprone.util
JDK version string utilities.

S

sameArgument(int, int) - Static method in class com.google.errorprone.matchers.Matchers
Matches a MethodInvocation when the arguments at the two given indices are both the same variable, as determined by ASTHelpers.sameVariable(com.sun.source.tree.ExpressionTree, com.sun.source.tree.ExpressionTree).
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(Tree, B) - Method in class com.google.errorprone.bugpatterns.BugChecker.SuppressibleTreePathScanner
 
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
 
scanResources(TryTree) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
ScanThrownTypes(VisitorState) - Constructor for class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
scope(Scope) - Static method in class com.google.errorprone.util.ASTHelpers
Returns a compatibility adapter around Scope.
SERIALIZATION_METHODS - Static variable in class com.google.errorprone.matchers.Matchers
Method signature of serialization methods.
setInformation(AccessPath, V) - Method in class com.google.errorprone.dataflow.AccessPathStore.Builder
 
setLinkUrl(String) - Method in class com.google.errorprone.matchers.Description.Builder
Set a custom link URL.
setMessage(String) - Method in class com.google.errorprone.matchers.Description.Builder
Set a custom error message for this Description.
setShortDescription(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Sets a custom short description for this fix.
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.
severities() - Method in class com.google.errorprone.scanner.ScannerSupplier
 
severity(Map<String, BugPattern.SeverityLevel>) - Method in class com.google.errorprone.BugCheckerInfo
 
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.
shouldBeVisible(Tree, VisitorState) - Method in enum com.google.errorprone.util.Visibility
Whether tree should be visible from the path in state assuming we're in prod code.
shouldBeVisible(Symbol, VisitorState) - Method in enum com.google.errorprone.util.Visibility
Whether symbol should be visible from the path in state assuming we're in prod code.
SideEffectAnalysis - Class in com.google.errorprone.util
This class is responsible for analyzing an expression and telling if the expression can have side effects.
Signatures - Class in com.google.errorprone.util
Signature generation.
singleStatementReturnMatcher(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Returns a matcher for MethodTree whose implementation contains a single return statement with expression matching the passed expressionTreeMatcher.
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
 
span(Suppressible) - Method in class com.google.errorprone.ErrorProneTimings
Creates a timing span for the given Suppressible.
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
 
startWith(SuggestedFix) - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
 
STATIC_FIRST_ORGANIZER - Static variable in interface com.google.errorprone.apply.ImportOrganizer
An ImportOrganizer that sorts import statements according to the Google Java Style Guide, i.e.
STATIC_LAST_ORGANIZER - Static variable in interface com.google.errorprone.apply.ImportOrganizer
An ImportOrganizer that sorts import statements so that non-static imports come first, and static and non-static separated by blank line.
staticEqualsInvocation() - Static method in class com.google.errorprone.matchers.Matchers
Matches an invocation of a recognized static object equality method such as Objects.equals(java.lang.Object, java.lang.Object).
staticField(String, String) - Static method in class com.google.errorprone.matchers.FieldMatchers
 
staticFieldAccess() - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node which is an expression yielding the indicated static field access.
staticMethod() - Static method in class com.google.errorprone.matchers.Matchers
Matches a static method.
staticMethod() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
 
StatisticsCollector - Interface in com.google.errorprone
A collector of counters keyed by strings.
streamReceivers(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns a Stream of ExpressionTrees resulting from calling ASTHelpers.getReceiver(ExpressionTree) repeatedly until no receiver exists.
STRING_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
stringLiteral(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches a Literal AST node if it is a string literal with the given value.
stringLiteral(Pattern) - Static method in class com.google.errorprone.matchers.Matchers
Matches a Literal AST node if it is a string literal which matches the given Pattern.
StringLiteral - Class in com.google.errorprone.matchers
 
StringLiteral(String) - Constructor for class com.google.errorprone.matchers.StringLiteral
 
StringLiteral(Pattern) - Constructor for class com.google.errorprone.matchers.StringLiteral
 
stringVal() - Method in class com.google.errorprone.util.ErrorProneToken
 
stripParentheses(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Removes any enclosing parentheses from the tree.
stripParentheses(ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
Given an ExpressionTree, removes any enclosing parentheses.
SubContext - Class in com.google.errorprone
A view on top of a Context allowing additional modifications to be added without affecting the underlying Context.
SubContext(Context) - Constructor for class com.google.errorprone.SubContext
 
suggestedExemptingAnnotationSupported(Element) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns true iff suggestExemptingAnnotation() supports this annotation.
SuggestedFix - Class in com.google.errorprone.fixes
 
SuggestedFix.Builder - Class in com.google.errorprone.fixes
Builds SuggestedFixs.
SuggestedFixes - Class in com.google.errorprone.fixes
Factories for constructing Fixes.
SuggestedFixes.AdditionPosition - Enum in com.google.errorprone.fixes
Instructs SuggestedFixes.addMembers(ClassTree, VisitorState, AdditionPosition, String, String...) whether to add the new member(s) at the beginning of the class, or at the end.
SuggestedFixes.FixCompiler - Class in com.google.errorprone.fixes
A class to hold the files from the compilation context, with a diff applied to the currently-processed one; the files can then be recompiled.
SuggestedFixes.FixCompiler.Result - Class in com.google.errorprone.fixes
The result of the compilation.
suggestExemptingAnnotation(String, TreePath, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Create a fix to add a suppression annotation on the surrounding class.
supplier - Variable in class com.google.errorprone.predicates.type.Exact
 
Supplier<T> - Interface in com.google.errorprone.suppliers
Simple supplier pattern, which allows delayed binding to access to runtime elements.
Suppliers - Class in com.google.errorprone.suppliers
 
supportsSuppressWarnings() - Method in class com.google.errorprone.BugCheckerInfo
 
supportsSuppressWarnings() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
supportsSuppressWarnings() - Method in interface com.google.errorprone.matchers.Suppressible
Returns true if this checker can be suppressed using @SuppressWarnings.
suppressedByAnyOf(Set<Name>, VisitorState) - Method in class com.google.errorprone.bugpatterns.BugChecker
 
suppressedByAnyOf(Set<Name>, VisitorState) - Method in interface com.google.errorprone.matchers.Suppressible
 
suppressedState(Suppressible, boolean, VisitorState) - Method in class com.google.errorprone.SuppressionInfo
Returns true if this checker should be considered suppressed given the signals present in this object.
Suppressible - Interface in com.google.errorprone.matchers
 
SuppressibleTreePathScanner() - Constructor for class com.google.errorprone.bugpatterns.BugChecker.SuppressibleTreePathScanner
 
SuppressionInfo - Class in com.google.errorprone
Immutable container of "suppression signals" - annotations or other information gathered from source - that can be used to determine if a specific Suppressible object should be considered suppressed.
SuppressionInfo.SuppressedState - Enum in com.google.errorprone
 
swap(Tree, Tree) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
swap(Tree, Tree) - Static method in class com.google.errorprone.fixes.SuggestedFix
sym() - Method in class com.google.errorprone.matchers.method.ConstructorMatchState
The method being matched.
sym() - Method in interface com.google.errorprone.matchers.method.MatchState
The method being matched.
symbolHasAnnotation(String) - Static method in class com.google.errorprone.matchers.Matchers
Determines whether an expression refers to a symbol that has an annotation of the given type.
symbolHasAnnotation(Class<? extends Annotation>) - Static method in class com.google.errorprone.matchers.Matchers
Determines whether an expression refers to a symbol that has an annotation of the given type.
symbolMatcher(BiPredicate<Symbol, VisitorState>) - Static method in class com.google.errorprone.matchers.Matchers
Match a Tree based solely on the Symbol produced by ASTHelpers.getSymbol(Tree).

T

targetType(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the target type of the tree at the given VisitorState's path, or else null.
TargetType() - Constructor for class com.google.errorprone.util.ASTHelpers.TargetType
 
TermEditDistance - Class in com.google.errorprone.names
A utility class for finding the distance between two identifiers.
TermEditDistance(BiFunction<String, String, Double>, BiFunction<Integer, Integer, Double>) - Constructor for class com.google.errorprone.names.TermEditDistance
Creates a TermEditDistance Object
TermEditDistance() - Constructor for class com.google.errorprone.names.TermEditDistance
 
TEST_CASE - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Matches a JUnit 3 or 4 test case.
TestNgMatchers - Class in com.google.errorprone.matchers
Matchers for code patterns which appear to be TestNG-based tests.
then() - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
 
THROWABLE_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 
Throws - Class in com.google.errorprone.matchers
Matches a throw statement whose thrown expression is matched by the given matcher.
Throws(Matcher<? super ExpressionTree>) - Constructor for class com.google.errorprone.matchers.Throws
New matcher for a throw statement where the thrown item is matched by the passed thrownMatcher.
throwStatement(Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a throw statement where the thrown item is matched by the passed thrownMatcher.
timings() - Method in class com.google.errorprone.ErrorProneTimings
Returns the elapsed durations of each timer.
timingSpan(Suppressible) - Method in class com.google.errorprone.VisitorState
Returns a timing span for the given Suppressible.
toBuilder() - Method in class com.google.errorprone.dataflow.AccessPathStore
 
toModifier() - Method in enum com.google.errorprone.matchers.MethodVisibility.Visibility
 
toString() - Method in class com.google.errorprone.apply.ImportOrganizer.Import
 
toString() - Method in class com.google.errorprone.apply.ImportStatements
Returns a string representation of the imports as Java code in correct order.
toString() - Method in class com.google.errorprone.BugCheckerInfo
 
toString() - Method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
 
toString(JCTree.JCCompilationUnit) - Method in interface com.google.errorprone.fixes.Fix
 
toString(JCTree.JCCompilationUnit) - Method in class com.google.errorprone.fixes.SuggestedFix
 
toString() - Method in class com.google.errorprone.util.ErrorProneToken
 
toStringMethodDeclaration() - Static method in class com.google.errorprone.matchers.Matchers
Matches Object.toString() method declaration.
toType(Class<S>, Matcher<? super S>) - Static method in class com.google.errorprone.matchers.Matchers
Converts the given matcher to one that can be applied to any tree but is only executed when run on a tree of type and returns false for all other tree types.
transformers() - Method in class com.google.errorprone.CompositeCodeTransformer
 
tree() - Method in class com.google.errorprone.util.Commented
 
TrustingNullnessAnalysis - Class in com.google.errorprone.dataflow.nullnesspropagation
An interface to the "trusting" nullness analysis.
type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
 
type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.Kind
 
type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
 
type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ParameterTypes
 
type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
 
type() - Method in class com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverType
 
type() - Method in interface com.google.errorprone.matchers.method.MethodInvocationMatcher.Token
The category of properties that this value falls into.
type() - Method in class com.google.errorprone.util.ASTHelpers.TargetType
 
typeCast(Matcher<Tree>, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a type cast AST node if both of the given matchers match.
typeFromClass(Class<?>) - Static method in class com.google.errorprone.suppliers.Suppliers
Given the class representation of a type, supplies the corresponding type.
typeFromString(String) - Static method in class com.google.errorprone.suppliers.Suppliers
Given the string representation of a type, supplies the corresponding type.
TypePredicate - Interface in com.google.errorprone.predicates
A predicate for testing Types.
typePredicateMatcher(TypePredicate) - Static method in class com.google.errorprone.matchers.Matchers
Match a Tree based solely on the type produced by ASTHelpers.getType(Tree).
TypePredicates - Class in com.google.errorprone.predicates
A collection of TypePredicates.
types - Variable in class com.google.errorprone.predicates.type.DescendantOfAny
 
types - Variable in class com.google.errorprone.predicates.type.ExactAny
 
typeToCompareSupplier - Variable in class com.google.errorprone.matchers.AbstractTypeMatcher
 

U

updateAnnotationArgumentValues(AnnotationTree, String, Collection<String>) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a fix that updates newValues to the parameterName argument for annotation, regardless of whether there is already an argument.

V

valueOf(String) - Static method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.ErrorProneOptions.Severity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.fixes.SuggestedFixes.AdditionPosition
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.matchers.ChildMultiMatcher.MatchType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.MethodKind
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.TokenType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.matchers.MethodVisibility.Visibility
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.predicates.type.Array
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.SuppressionInfo.SuppressedState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.util.Commented.Position
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.util.OperatorPrecedence
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.google.errorprone.util.Visibility
Returns the enum constant of this type with the specified name.
valueOfAccessPath(AccessPath, V) - Method in class com.google.errorprone.dataflow.AccessPathStore
 
valueOfAccessPath(AccessPath, T) - Method in interface com.google.errorprone.dataflow.AccessPathValues
 
values() - Static method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.ErrorProneOptions.Severity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.fixes.Replacements.CoalescePolicy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.fixes.SuggestedFixes.AdditionPosition
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.matchers.ChildMultiMatcher.MatchType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.MethodKind
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.matchers.method.MethodInvocationMatcher.TokenType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.matchers.MethodVisibility.Visibility
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.predicates.type.Array
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.SuppressionInfo.SuppressedState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.util.Commented.Position
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.util.OperatorPrecedence
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.google.errorprone.util.Visibility
Returns an array containing the constants of this enum type, in the order they are declared.
variableInitializer(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches on the initializer of a VariableTree AST node.
variableType(Matcher<Tree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches on the type of a VariableTree AST node.
Visibility - Enum in com.google.errorprone.util
Describes visibilities available via VisibleForTesting annotations, and provides methods to establish whether a given Tree should be visible.
visitAnnotatedType(AnnotatedTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitAnnotation(AnnotationTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitArrayAccess(ArrayAccessTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitArrayType(ArrayTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitAssert(AssertTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitAssignment(AssignmentTree, Void) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
 
visitAssignment(AssignmentTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitBinary(BinaryTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitBlock(BlockTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitBreak(BreakTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitCase(CaseTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitCatch(CatchTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitClass(ClassTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitClass(ClassTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
visitCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitCompoundAssignment(CompoundAssignmentTree, Void) - Method in class com.google.errorprone.util.SideEffectAnalysis
 
visitConditionalExpression(ConditionalExpressionTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitContinue(ContinueTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitDoWhileLoop(DoWhileLoopTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitEmptyStatement(EmptyStatementTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitEnhancedForLoop(EnhancedForLoopTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitExpressionStatement(ExpressionStatementTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitForLoop(ForLoopTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitIdentifier(IdentifierTree, Void) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
 
visitIdentifier(IdentifierTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitIf(IfTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitImport(ImportTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitInstanceOf(InstanceOfTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitIntersectionType(IntersectionTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitLabeledStatement(LabeledStatementTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitLambdaExpression(LambdaExpressionTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitLambdaExpression(LambdaExpressionTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
visitLiteral(LiteralTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitMemberReference(MemberReferenceTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitMemberSelect(MemberSelectTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitMethod(MethodTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitMethod(MethodTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
visitMethodInvocation(MethodInvocationTree, Void) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
 
visitMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitMethodInvocation(MethodInvocationTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
visitMethodInvocation(MethodInvocationTree, Void) - Method in class com.google.errorprone.util.SideEffectAnalysis
 
visitModifiers(ModifiersTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitNewArray(NewArrayTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitNewClass(NewClassTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitNewClass(NewClassTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
visitNewClass(NewClassTree, Void) - Method in class com.google.errorprone.util.SideEffectAnalysis
 
VisitorState - Class in com.google.errorprone
 
VisitorState(Context) - Constructor for class com.google.errorprone.VisitorState
Deprecated.
If VisitorState is needed, use VisitorState.createForUtilityPurposes(com.sun.tools.javac.util.Context), otherwise just use utility methods in ASTHelpers that don't need VisitorSate.
VisitorState(Context, DescriptionListener) - Constructor for class com.google.errorprone.VisitorState
VisitorState(Context, DescriptionListener, Map<String, BugPattern.SeverityLevel>, ErrorProneOptions) - Constructor for class com.google.errorprone.VisitorState
visitParameterizedType(ParameterizedTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitParenthesized(ParenthesizedTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitPrimitiveType(PrimitiveTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitReturn(ReturnTree, Void) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
 
visitReturn(ReturnTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitSwitch(SwitchTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitSynchronized(SynchronizedTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitThrow(ThrowTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitThrow(ThrowTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
visitTry(TryTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitTry(TryTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
visitTypeCast(TypeCastTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitTypeParameter(TypeParameterTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitUnary(UnaryTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitUnary(UnaryTree, Void) - Method in class com.google.errorprone.util.SideEffectAnalysis
 
visitUnionType(UnionTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitVariable(VariableTree, Void) - Method in class com.google.errorprone.dataflow.nullnesspropagation.inference.NullnessQualifierInference
 
visitVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitVariable(VariableTree, Void) - Method in class com.google.errorprone.util.ASTHelpers.ScanThrownTypes
 
visitWhileLoop(WhileLoopTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitWildcard(WildcardTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visualize(CFGVisualizer<?, AccessPathStore<V>, ?>) - Method in class com.google.errorprone.dataflow.AccessPathStore
 
VOID_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 

W

WaitMatchers - Class in com.google.errorprone.matchers
Matchers for method invocations related to Object.wait() and Condition.await();
waitMethod - Static variable in class com.google.errorprone.matchers.WaitMatchers
Matches any wait/await method.
waitMethodWithTimeout - Static variable in class com.google.errorprone.matchers.WaitMatchers
Matches wait/await methods that have a timeout.
widenedUpperBound(AccessPathStore<V>) - Method in class com.google.errorprone.dataflow.AccessPathStore
 
withAnyName() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
Deprecated.
Match methods with any name.
withCustomDefaultSeverity(BugPattern.SeverityLevel) - Method in class com.google.errorprone.BugCheckerInfo
 
withExtendedSuppressions(Symbol, VisitorState, Set<? extends Name>) - Method in class com.google.errorprone.SuppressionInfo
Returns an instance of SuppressionInfo that takes into account any suppression signals present on sym as well as those already stored in this.
withNameMatching(Pattern) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
Deprecated.
Match methods with a name that matches the given regular expression.
withNoParameters() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorClassMatcher
Deprecated.
Match constructors with no formal parameters.
withNoParameters() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodNameMatcher
Deprecated.
Match methods with no formal parameters.
withParameters(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorClassMatcher
Deprecated.
Match constructors whose formal parameters have the given types.
withParameters(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorClassMatcher
Deprecated.
Match constructors whose formal parameters have the given types.
withParameters(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodNameMatcher
Deprecated.
Match methods whose formal parameters have the given types.
withParameters(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodNameMatcher
Deprecated.
Match methods whose formal parameters have the given types.
withParametersOfType(Iterable<Supplier<Type>>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorClassMatcher
Deprecated.
Match constructors whose formal parameters have the given types.
withParametersOfType(Iterable<Supplier<Type>>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodNameMatcher
Deprecated.
Match constructors whose formal parameters have the given types.
withPath(TreePath) - Method in class com.google.errorprone.VisitorState
 
withSignature(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
Deprecated.
Match methods with the given signature.
withSuppression(SuppressionInfo.SuppressedState) - Method in class com.google.errorprone.VisitorState
 
wouldRunInJUnit4 - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Matches a method annotated with @Test but not @Ignore.
writeFile(SourceFile) - Method in class com.google.errorprone.apply.DiscardingFileDestination
 
writeFile(SourceFile) - Method in interface com.google.errorprone.apply.FileDestination
 
writeFile(SourceFile) - Method in class com.google.errorprone.apply.FsFileDestination
 
writeFile(SourceFile) - Method in class com.google.errorprone.apply.PatchFileDestination
 
A B C D E F G H I J K L M N O P Q R S T U V W 
Skip navigation links

Copyright © 2021 Google LLC. All rights reserved.