Skip navigation links
A B C D E F G H I J K L M N O P Q R S T 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
 
add(String) - Method in class com.google.errorprone.apply.ImportStatements
Add an import to the list of imports.
add(Replacement) - Method in class com.google.errorprone.fixes.Replacements
 
addAll(Collection<String>) - Method in class com.google.errorprone.apply.ImportStatements
Add all imports in a collection to this list of imports.
addAllFixes(List<? extends Fix>) - Method in class com.google.errorprone.matchers.Description.Builder
Add each fix in order.
addFix(Fix) - Method in class com.google.errorprone.matchers.Description.Builder
Adds a suggested fix for this Description.
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.
addModifier(Tree, Modifier, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFix
addModifiers(Tree, VisitorState, Modifier...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Add modifiers to the given class, method, or field declaration.
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(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.
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.
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
 
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
 
AnnotationType - Class in com.google.errorprone.matchers
 
AnnotationType(String) - Constructor for class com.google.errorprone.matchers.AnnotationType
 
Any - Enum in com.google.errorprone.predicates.type
Matches any type.
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.AnyMethodMatcher
Match on any class.
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on any class.
anyClass() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on any class.
anyMethod() - Static method in class com.google.errorprone.matchers.Matchers
Matches a static or instance method.
anyMethod() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
 
anyOf(Iterable<? extends Matcher<? super T>>) - Static method in class com.google.errorprone.matchers.Matchers
Compose several matchers together, such that the composite matches an AST node if any of the given matchers do.
anyOf(Matcher<? super T>...) - Static method in class com.google.errorprone.matchers.Matchers
 
anything() - Static method in class com.google.errorprone.matchers.Matchers
A matcher that matches any AST node.
anyType() - Static method in class com.google.errorprone.predicates.TypePredicates
Match any type.
AppliedFix - Class in com.google.errorprone.fixes
Represents the corrected source which we think was intended, by applying a Fix.
AppliedFix.Applier - Class in com.google.errorprone.fixes
 
Applier(CharSequence, EndPosTable) - Constructor for class com.google.errorprone.fixes.AppliedFix.Applier
 
apply(TreePath, Context, DescriptionListener) - Method in interface com.google.errorprone.CodeTransformer
Apply recursively from the leaf node in the given TreePath.
apply(TreePath, Context, DescriptionListener) - Method in class com.google.errorprone.CompositeCodeTransformer
 
apply(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
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.
assertionWithCondition(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an assertion AST node if the given matcher matches its condition.
Asserts - Class in com.google.errorprone.matchers
Matches assert statements which have a condition expression matched by the given matcher.
Asserts(Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.Asserts
 
assertStatement(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an assert statement where the condition is matched by the passed conditionMatcher.
assignment(Matcher<ExpressionTree>, Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an assignment operator AST node if both of the given matchers match.
ASSISTED_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
ASSISTED_INJECT_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
ASTHelpers - Class in com.google.errorprone.util
This class contains utility methods to work with the javac AST.
ASTHelpers() - Constructor for class com.google.errorprone.util.ASTHelpers
 

B

BaseErrorProneCompiler - Class in com.google.errorprone
An Error Prone compiler that matches the interface of Main.
BaseErrorProneCompiler.Builder - Class in com.google.errorprone
BaseErrorProneJavaCompiler - Class in com.google.errorprone
An Error Prone compiler that implements JavaCompiler.
BaseErrorProneJavaCompiler(ScannerSupplier) - Constructor for class com.google.errorprone.BaseErrorProneJavaCompiler
 
beforeComments() - Method in class com.google.errorprone.util.Commented
 
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.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.BaseErrorProneCompiler.Builder
 
build() - Method in class com.google.errorprone.dataflow.LocalStore.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.
buildDescriptionFromChecker(Tree, BugChecker) - Static method in class com.google.errorprone.BugCheckerInfo
Returns a new builder for Descriptions.
buildDescriptionFromChecker(Tree, BugChecker) - Static method in class com.google.errorprone.bugpatterns.BugChecker
Returns a new builder for Descriptions.
builder() - Static method in class com.google.errorprone.BaseErrorProneCompiler
Returns a BaseErrorProneCompiler builder.
Builder() - Constructor for class com.google.errorprone.BaseErrorProneCompiler.Builder
 
builder() - Static method in class com.google.errorprone.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.
BYTE_TYPE - Static variable in class com.google.errorprone.suppliers.Suppliers
 

C

canAlias(FlowExpressions.Receiver, FlowExpressions.Receiver) - Method in class com.google.errorprone.dataflow.LocalStore
 
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.
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
 
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.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
 
Comments - Class in com.google.errorprone.util
Utilities for attaching comments to relevant AST nodes
Comments() - Constructor for class com.google.errorprone.util.Comments
 
comments() - Method in class com.google.errorprone.util.ErrorProneToken
 
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.
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.
ConstantPropagationAnalysis() - Constructor for class com.google.errorprone.dataflow.ConstantPropagationAnalysis
 
constructor() - Static method in class com.google.errorprone.matchers.Matchers
Matches a constructor.
constructor(ChildMultiMatcher.MatchType, Matcher<MethodTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a class in which any of/all of its constructors match the given constructorMatcher.
constructor() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
 
ConstructorMatcherImpl - Class in com.google.errorprone.matchers.method
Matches constructors, allows refinement on class type.
ConstructorMatcherImpl() - Constructor for class com.google.errorprone.matchers.method.ConstructorMatcherImpl
 
ConstructorOfClass - Class in com.google.errorprone.matchers
Applies the given matcher to the constructor(s) of the given class.
ConstructorOfClass(ChildMultiMatcher.MatchType, Matcher<MethodTree>) - Constructor for class com.google.errorprone.matchers.ConstructorOfClass
 
constructorOfClass(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches a constructor declaration in a specific enclosing class.
constValue(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the compile-time constant value of a tree if it has one, or null.
constValue(Tree, Class<? extends T>) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the compile-time constant value of a tree if it is of type clazz, or null.
Contains - Class in com.google.errorprone.matchers
A matcher that recursively inspects a tree, applying the given matcher to all levels of each tree and returning true if any match is found.
Contains(Matcher<Tree>) - Constructor for class com.google.errorprone.matchers.Contains
 
contains(Matcher<Tree>) - Static method in class com.google.errorprone.matchers.Matchers
Applies the given matcher recursively to all descendants of an AST node, and matches if any matching descendant node is found.
contains(Class<V>, Matcher<V>) - Static method in class com.google.errorprone.matchers.Matchers
Applies the given matcher recursively to all descendants of an AST node, and matches if any matching descendant node is found.
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.
convertToLowerUnderscore(String) - Static method in class com.google.errorprone.names.NamingConventions
 
copy() - Method in class com.google.errorprone.dataflow.LocalStore
 
create(JCTree.JCCompilationUnit, ImportOrganizer) - Static method in class com.google.errorprone.apply.DescriptionBasedDiff
 
create(JCTree.JCCompilationUnit, ImportOrganizer) - Static method in class com.google.errorprone.apply.ImportStatements
 
create(JavaFileObject) - Static method in class com.google.errorprone.apply.SourceFile
 
create(Class<? extends BugChecker>) - Static method in class com.google.errorprone.BugCheckerInfo
 
create(int, int, String) - Static method in class com.google.errorprone.fixes.Replacement
Creates a Replacement.
create(Scanner) - Static method in class com.google.errorprone.scanner.ErrorProneScannerTransformer
 
createByScanningForPlugins(ScannerSupplier, ErrorProneOptions, Context) - Static method in class com.google.errorprone.ErrorProneAnalyzer
 
createIgnoringOverlaps(JCTree.JCCompilationUnit, ImportOrganizer) - Static method in class com.google.errorprone.apply.DescriptionBasedDiff
 
customSuppressionAnnotations() - Method in class com.google.errorprone.BugCheckerInfo
 
customSuppressionAnnotations() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
customSuppressionAnnotations() - Method in interface com.google.errorprone.matchers.Suppressible
Returns the custom suppression annotations for this checker, if custom suppression is used.
customSuppressions - Variable in class com.google.errorprone.SuppressionHelper.SuppressionInfo
 

D

DAGGER_PROVIDES_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
DataFlow - Class in com.google.errorprone.dataflow
Provides a wrapper around Analysis.
DataFlow() - Constructor for class com.google.errorprone.dataflow.DataFlow
 
DataFlow.Result<A extends org.checkerframework.dataflow.analysis.AbstractValue<A>,S extends org.checkerframework.dataflow.analysis.Store<S>,T extends org.checkerframework.dataflow.analysis.TransferFunction<A,S>> - Interface in com.google.errorprone.dataflow
A pair of Analysis and ControlFlowGraph.
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
 
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.matchers
Matches an instance method that is a descendant of a method with the given class and name.
DescendantOf(String, String) - Constructor for class com.google.errorprone.matchers.DescendantOf
 
DescendantOf - Class in com.google.errorprone.predicates.type
Matches sub-types of the given type.
DescendantOf(Supplier<Type>) - Constructor for class com.google.errorprone.predicates.type.DescendantOf
 
DescendantOfAny - Class in com.google.errorprone.predicates.type
Matches types that are a sub-type of one of the given types.
DescendantOfAny(Iterable<Supplier<Type>>) - Constructor for class com.google.errorprone.predicates.type.DescendantOfAny
 
descending() - Method in class com.google.errorprone.fixes.Replacements
Non-overlapping replacements, sorted in descending order by position.
describeMatch(Tree, Fix) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is a fix.
describeMatch(Tree) - Method in class com.google.errorprone.bugpatterns.BugChecker
Helper to create a Description for the common case where there is no fix.
Description - Class in com.google.errorprone.matchers
Simple data object containing the information captured about an AST match.
Description(Tree, String, Fix, BugPattern.SeverityLevel) - Constructor for class com.google.errorprone.matchers.Description
Deprecated.
Description.Builder - Class in com.google.errorprone.matchers
Builder for Descriptions.
DescriptionBasedDiff - Class in com.google.errorprone.apply
Implementation of a Diff that performs the modifications that are passed to its DescriptionBasedDiff.onDescribed(com.google.errorprone.matchers.Description) method, with no formatting.
DescriptionListener - Interface in com.google.errorprone
Strategies for reporting results.
DescriptionListener.Factory - Interface in com.google.errorprone
Factory for creating DescriptionListeners while compiling each file.
descriptor(Type, Types) - Static method in class com.google.errorprone.util.Signatures
Returns a JVMS 4.3.3 method descriptor.
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.
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
 

E

empty() - Static method in class com.google.errorprone.dataflow.LocalStore
 
empty() - Static method in class com.google.errorprone.ErrorProneFlags
 
empty() - Static method in class com.google.errorprone.ErrorProneOptions
 
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<T>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node that is enclosed by some node that matches the given matcher.
enclosingPackage(Symbol) - Static method in class com.google.errorprone.util.ASTHelpers
Return the enclosing PackageSymbol of the given symbol, or null.
endPos() - Method in class com.google.errorprone.util.ErrorProneToken
 
endPosition() - Method in class com.google.errorprone.fixes.Replacement
The end of the replacement range, exclusive.
endPositionAdjustment - Variable in class com.google.errorprone.fixes.AdjustedPosition
 
enhancedForLoop(Matcher<VariableTree>, Matcher<ExpressionTree>, Matcher<StatementTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an enhanced for loop if all the given matchers match.
enumValues(Symbol.TypeSymbol) - Static method in class com.google.errorprone.util.ASTHelpers
 
equals(Object) - Method in class com.google.errorprone.BugCheckerInfo
 
equals(Object) - Method in class com.google.errorprone.bugpatterns.BugChecker
 
equals(Object) - Method in class com.google.errorprone.dataflow.LocalStore
 
ErrorProneAnalyzer - Class in com.google.errorprone
A TaskListener that runs Error Prone over attributed compilation units.
ErrorProneAnalyzer(ScannerSupplier, ErrorProneOptions, Context) - Constructor for class com.google.errorprone.ErrorProneAnalyzer
 
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.
ErrorPronePlugins() - Constructor for class com.google.errorprone.ErrorPronePlugins
 
ErrorProneScanner - Class in com.google.errorprone.scanner
Scans the parsed AST, looking for violations of any of the enabled checks.
ErrorProneScanner(BugChecker...) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
Create an error-prone scanner for a non-hardcoded set of checkers.
ErrorProneScanner(Iterable<BugChecker>) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
Create an error-prone scanner for a non-hardcoded set of checkers.
ErrorProneScanner(Iterable<BugChecker>, Map<String, BugPattern.SeverityLevel>) - Constructor for class com.google.errorprone.scanner.ErrorProneScanner
Create an error-prone scanner for a non-hardcoded set of checkers.
ErrorProneScannerTransformer - Class in com.google.errorprone.scanner
Adapter from an ErrorProneScanner to a CodeTransformer.
ErrorProneScannerTransformer() - Constructor for class com.google.errorprone.scanner.ErrorProneScannerTransformer
 
ErrorProneToken - Class in com.google.errorprone.util
Wraps a javac Tokens.Token to return comments in declaration order.
ErrorProneTokens - Class in com.google.errorprone.util
A utility for tokenizing and preserving comments.
ErrorProneTokens(String, Context) - Constructor for class com.google.errorprone.util.ErrorProneTokens
 
ErrorProneVersion - Class in com.google.errorprone
The Error Prone version.
ErrorProneVersion() - Constructor for class com.google.errorprone.ErrorProneVersion
 
Exact - Class in com.google.errorprone.predicates.type
Matches types that exactly match the given type.
Exact(Supplier<Type>) - Constructor for class com.google.errorprone.predicates.type.Exact
 
ExactAny - Class in com.google.errorprone.predicates.type
Matches types that exactly match one of the given types.
ExactAny(Iterable<Supplier<Type>>) - Constructor for class com.google.errorprone.predicates.type.ExactAny
 
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
Run 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.
extendSuppressionSets(Symbol, Type, Set<String>, Set<Class<? extends Annotation>>, boolean, VisitorState) - Method in class com.google.errorprone.SuppressionHelper
Extend suppression sets for both @SuppressWarnings and custom suppression annotations.

F

FileDestination - Interface in com.google.errorprone.apply
 
FileSource - Interface in com.google.errorprone.apply
 
filter(Predicate<? super BugCheckerInfo>) - Method in class com.google.errorprone.scanner.ScannerSupplier
Filters this ScannerSupplier based on the provided predicate.
filterFixes(Predicate<? super Fix>) - Method in class com.google.errorprone.matchers.Description
 
findAllFields(Type, VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds all the visible fields declared or inherited in the target class
findAllIdents(VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds the set of all bare variable identifiers in scope at the current location.
findClass(String) - Method in class com.google.errorprone.MaskedClassLoader
 
findCommentsForArguments(NewClassTree, VisitorState) - Static method in class com.google.errorprone.util.Comments
Attach comments to nodes on arguments of constructor calls.
findCommentsForArguments(MethodInvocationTree, VisitorState) - Static method in class com.google.errorprone.util.Comments
Attach comments to nodes on arguments of method calls.
findEnclosing(Class<? extends T>...) - Method in class com.google.errorprone.VisitorState
Find the first enclosing tree node of one of the given types.
findEnclosingNode(TreePath, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Given a TreePath, walks up the tree until it finds a node of the given type.
findIdent(String, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
findIdent(String, VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds a variable declaration with the given name that is in scope at the current location.
findIdent(String, VisitorState, Kinds.KindSelector) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds a declaration with the given name and type that is in scope at the current location.
FindIdentifiers - Class in com.google.errorprone.util
A helper class to find all identifiers in scope at a given program point.
findMatchingMethods(Name, Predicate<Symbol.MethodSymbol>, Type, Types) - Static method in class com.google.errorprone.util.ASTHelpers
Finds all methods in any superclass of startClass with a certain name that match the given predicate.
findPathFromEnclosingNodeToTopLevel(TreePath, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Given a TreePath, finds the first enclosing node of the given type and returns the path from the enclosing node to the top-level CompilationUnitTree.
findPathToEnclosing(Class<? extends Tree>...) - Method in class com.google.errorprone.VisitorState
Returns the TreePath to the nearest tree node of one of the given types.
findReferencedIdentifiers(Tree) - Static method in class com.google.errorprone.util.FindIdentifiers
Find the set of all identifiers referenced within this Tree
findSuperMethod(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.util.ASTHelpers
Finds (if it exists) first (in the class hierarchy) non-interface super method of given method.
findSuperMethodInType(Symbol.MethodSymbol, Type, Types) - Static method in class com.google.errorprone.util.ASTHelpers
 
findSuperMethods(Symbol.MethodSymbol, Types) - Static method in class com.google.errorprone.util.ASTHelpers
 
findUnusedIdentifiers(VisitorState) - Static method in class com.google.errorprone.util.FindIdentifiers
Finds all variable declarations which are unused at this point in the AST (i.e.
finished(TaskEvent) - Method in class com.google.errorprone.ErrorProneAnalyzer
 
Fix - Interface in com.google.errorprone.fixes
Represents a source code transformation, usually used to fix a bug detected by error-prone.
fixes - Variable in class com.google.errorprone.matchers.Description
A list of fixes to suggest in an error message or use in automated refactoring.
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(String) - Method in class com.google.errorprone.matchers.method.ConstructorMatcherImpl
 
forClass(Supplier<Type>) - Method in class com.google.errorprone.matchers.method.ConstructorMatcherImpl
 
forClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
Match on the given type exactly.
forClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorMatcher
Match on the given type exactly.
from(Tree.Kind) - Static method in enum com.google.errorprone.util.OperatorPrecedence
 
fromBugCheckerClasses(Class<? extends BugChecker>...) - Static method in class com.google.errorprone.scanner.ScannerSupplier
Returns a ScannerSupplier with a specific list of BugChecker classes.
fromBugCheckerClasses(Iterable<Class<? extends BugChecker>>) - Static method in class com.google.errorprone.scanner.ScannerSupplier
Returns a ScannerSupplier with a specific list of BugChecker classes.
fromBugCheckerInfos(Iterable<BugCheckerInfo>) - Static method in class com.google.errorprone.scanner.ScannerSupplier
Returns a ScannerSupplier built from a list of BugCheckerInfos.
fromMap(Map<String, String>) - Static method in class com.google.errorprone.ErrorProneFlags
 
fromScanner(Scanner) - Static method in class com.google.errorprone.scanner.ScannerSupplier
Returns a ScannerSupplier that just returns the Scanner that was passed in.
fromSource(CharSequence, EndPosTable) - Static method in class com.google.errorprone.fixes.AppliedFix
 
fromStrings(Iterable<String>) - Static method in class com.google.errorprone.suppliers.Suppliers
 
FsFileDestination - Class in com.google.errorprone.apply
A FileDestination that writes content to a destination on the local filesystem.
FsFileDestination(Path) - Constructor for class com.google.errorprone.apply.FsFileDestination
 
FsFileSource - Class in com.google.errorprone.apply
A FileSource that reads source files from the local filesystem.
FsFileSource(Path) - Constructor for class com.google.errorprone.apply.FsFileSource
 

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
Retrieve an annotation, considering annotation inheritance.
getAnnotation(Symbol, Class<T>) - Static method in class com.google.errorprone.util.ASTHelpers
Retrieve an annotation, considering annotation inheritance.
getAnnotationName(AnnotationTree) - Static method in class com.google.errorprone.util.ASTHelpers
 
getAnnotationWithSimpleName(List<? extends AnnotationTree>, String) - Static method in class com.google.errorprone.util.ASTHelpers
Returns an AnnotationTree with the given simple name, or null.
getArgument(AnnotationTree, String) - Static method in class com.google.errorprone.matchers.AnnotationMatcherUtils
Gets the value for an argument, or null if the argument does not exist.
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
 
getConstructors(ClassTree) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the list of all constructors defined in the class (including generated ones).
getControlFlowGraph() - Method in interface com.google.errorprone.dataflow.DataFlow.Result
 
getCustomSuppressionAnnotations() - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
getCustomSuppressionAnnotations() - Method in class com.google.errorprone.scanner.Scanner
Returns a set of all the custom suppression annotation types used by the BugCheckers in thisScanner.
getDeclaredSymbol(Tree) - Static method in class com.google.errorprone.util.ASTHelpers
Gets the symbol declared by a tree.
getDescriptionListener(Log, JCTree.JCCompilationUnit) - Method in interface com.google.errorprone.DescriptionListener.Factory
 
getDiffs(FileSource, String[]) - Method in interface com.google.errorprone.apply.DiffSupplier
Gets the list of differences
getEditDistance(String, String) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
Returns the edit distance between two strings.
getEditDistance(String, String, boolean) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
Returns the edit distance between two strings.
getEditDistance(String, String, boolean, int, int, int) - Static method in class com.google.errorprone.names.NeedlemanWunschEditDistance
Returns the edit distance between two strings.
getEnabledChecks() - Method in class com.google.errorprone.scanner.ScannerSupplier
Returns the set of BugCheckerInfos that are enabled in this ScannerSupplier.
getEndPos() - Method in class com.google.errorprone.apply.ImportStatements
Return the end position of the import statements.
getEndPosition(EndPosTable) - Method in class com.google.errorprone.fixes.AdjustedPosition
 
getEndPosition(EndPosTable) - Method in class com.google.errorprone.fixes.IndexedPosition
 
getEndPosition(Tree) - Method in class com.google.errorprone.VisitorState
Returns the end position of the node, or -1 if it is not available.
getFieldInitializerNullness(TreePath, Context) - Method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
Returns Nullness of the initializer of the VariableTree at the leaf of the given fieldDeclPath.
getFileNameFromUri(URI) - Static method in class com.google.errorprone.util.ASTHelpers
Extract the filename from the URI, with special handling for jar files.
getFixes() - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes
 
getFlags() - Method in class com.google.errorprone.ErrorProneOptions
 
getFlags() - Method in class com.google.errorprone.scanner.ScannerSupplier
 
getFlagsMap() - Method in class com.google.errorprone.ErrorProneFlags
 
getFragmentByChars(int, int) - Method in class com.google.errorprone.apply.SourceFile
Returns a fragment of the source code as a string.
getFragmentByLines(int, int) - Method in class com.google.errorprone.apply.SourceFile
Returns a fragment of the source code between the two stated line numbers.
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
 
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 ImmutableList 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.
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
 
getNewCodeSnippet() - Method in class com.google.errorprone.fixes.AppliedFix
 
getNormalizedEditDistance(String, String, boolean) - Static method in class com.google.errorprone.names.LevenshteinEditDistance
Returns a normalized edit distance between 0 and 1.
getNormalizedEditDistance(String, String, boolean, int, int, int) - Static method in class com.google.errorprone.names.NeedlemanWunschEditDistance
Returns a normalized edit distance between 0 and 1.
getNormalizedEditDistance(String, String) - Method in class com.google.errorprone.names.TermEditDistance
 
getNullness(TreePath, Context) - Method in class com.google.errorprone.dataflow.nullnesspropagation.NullnessAnalysis
Returns the Nullness of the leaf of exprPath.
getNullness(TreePath, Context) - Method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
Returns the Nullness of the leaf of exprPath.
getNullnessAnalysis() - Method in class com.google.errorprone.VisitorState
 
getNullnessValue(ExpressionTree, VisitorState, NullnessAnalysis) - Static method in class com.google.errorprone.util.ASTHelpers
Returns the Nullness for an expression as determined by the nullness dataflow analysis.
getPath() - Method in class com.google.errorprone.apply.SourceFile
Returns the path for this source file
getPath() - Method in class com.google.errorprone.VisitorState
 
getPreferredPosition() - Method in class com.google.errorprone.fixes.AdjustedPosition
 
getPreferredPosition() - Method in class com.google.errorprone.fixes.IndexedPosition
 
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.
getSeverityMap() - Method in class com.google.errorprone.ErrorProneOptions
 
getSourceCode() - Method in class com.google.errorprone.VisitorState
Gets the current source file.
getSourceForNode(Tree) - Method in class com.google.errorprone.VisitorState
Gets the original source code that represents the given node.
getSourceText() - Method in class com.google.errorprone.apply.SourceFile
Returns a copy of the code as a string.
getSourceVersions() - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
getStandardFileManager(DiagnosticListener<? super JavaFileObject>, Locale, Charset) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
getStartPos() - Method in class com.google.errorprone.apply.ImportStatements
Return the start position of the import statements.
getStartPosition() - Method in class com.google.errorprone.fixes.AdjustedPosition
 
getStartPosition() - Method in class com.google.errorprone.fixes.IndexedPosition
 
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.
getSymbolFromString(String) - Method in class com.google.errorprone.VisitorState
 
getSymtab() - Method in class com.google.errorprone.VisitorState
 
getTags() - Method in class com.google.errorprone.BugCheckerInfo
 
getTask(Writer, JavaFileManager, DiagnosticListener<? super JavaFileObject>, Iterable<String>, Iterable<String>, Iterable<? extends JavaFileObject>) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
getTextFromComment(Tokens.Comment) - Static method in class com.google.errorprone.util.Comments
Extract the text body from a comment.
getTokens() - Method in class com.google.errorprone.util.ErrorProneTokens
 
getTokens(String, Context) - Static method in class com.google.errorprone.util.ErrorProneTokens
Returns the tokens for the given source text, including comments.
getTokensForNode(Tree) - Method in class com.google.errorprone.VisitorState
Returns the list of Tokens.Tokens for the given JCTree.
getTree() - Method in class com.google.errorprone.fixes.AdjustedPosition
 
getTree() - Method in class com.google.errorprone.fixes.IndexedPosition
 
getTreeMaker() - Method in class com.google.errorprone.VisitorState
 
getType() - Method in class com.google.errorprone.apply.ImportOrganizer.Import
Return the type to import.
getType(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(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.
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_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(Class<? extends Annotation>) - Static method in class com.google.errorprone.matchers.Matchers
Determines whether an expression has an annotation of the given class.
hasAnnotation(Symbol, String, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Determines whether a symbol has an annotation of the given type.
hasAnnotation(Symbol, Class<? extends Annotation>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Check for the presence of an annotation, considering annotation inheritance.
hasAnnotation(Tree, Class<? extends Annotation>, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Check for the presence of an annotation, considering annotation inheritance.
hasAnnotationOnAnyOverriddenMethod(String) - Static method in class com.google.errorprone.matchers.Matchers
Matches if a method or any method it overrides has an annotation of the given type.
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.
hasDOToutput() - Method in class com.google.errorprone.dataflow.LocalStore
 
hashCode() - Method in class com.google.errorprone.BugCheckerInfo
 
hashCode() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
hashCode() - Method in class com.google.errorprone.dataflow.LocalStore
 
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.
hasJUnitAnnotation - Static variable in class com.google.errorprone.matchers.JUnitMatchers
 
hasMethod(Matcher<MethodTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches a class in which at least one method matches the given methodMatcher.
hasModifier(Modifier) - Static method in class com.google.errorprone.matchers.Matchers
Returns true if the Tree node has the expected Modifier.
hasNullableAnnotation(Element) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
 
hasProvidesAnnotation() - Static method in class com.google.errorprone.matchers.InjectMatchers
 

I

identitySupplier(T) - Static method in class com.google.errorprone.suppliers.Suppliers
Supplies what was given.
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.
ImportOrderParser() - Constructor for class com.google.errorprone.ImportOrderParser
 
ImportOrganizer - Interface in com.google.errorprone.apply
Organizes import statements when patching files.
ImportOrganizer.Import - Class in com.google.errorprone.apply
Represents an import.
ImportOrganizer.OrganizedImports - Class in com.google.errorprone.apply
Provides support for building a list of imports from groups and formatting it as a block of imports.
ImportStatements - Class in com.google.errorprone.apply
Represents a list of import statements.
ImportStatements(JCTree.JCExpression, List<JCTree.JCImport>, EndPosTable) - Constructor for class com.google.errorprone.apply.ImportStatements
 
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
 
inGeneratedCode - Variable in class com.google.errorprone.SuppressionHelper.SuppressionInfo
 
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.
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.
InstanceMethod - Class in com.google.errorprone.matchers
Matches an instance method expression.
InstanceMethod(Matcher<? super ExpressionTree>, String) - Constructor for class com.google.errorprone.matchers.InstanceMethod
 
instanceMethod() - Static method in class com.google.errorprone.matchers.Matchers
Matches an instance method.
instanceMethod(Matcher<? super ExpressionTree>, String) - Static method in class com.google.errorprone.matchers.Matchers
instanceMethod() - Static method in class com.google.errorprone.matchers.method.MethodMatchers
 
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_SCOPING_ANNOTATION - Static variable in class com.google.errorprone.matchers.InjectMatchers
 
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.
isCastable(Type, Type, VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if erasure(s) is castable to erasure(t).
isConcreteClassWithoutRunWith - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Match a class which appears to be missing a @RunWith annotation.
isDescendantOf(Supplier<Type>) - Static method in class com.google.errorprone.predicates.TypePredicates
Match sub-types of the given type.
isDescendantOf(String) - Static method in class com.google.errorprone.predicates.TypePredicates
Match sub-types of the given type.
isDescendantOfAny(Iterable<String>) - Static method in class com.google.errorprone.predicates.TypePredicates
Match types that are a sub-type of one of the given types.
isDescendantOfMethod(String, String) - Static method in class com.google.errorprone.matchers.Matchers
Matches an instance method that is a descendant of the instance method specified by the class name and method name.
isDisableAllChecks() - Method in class com.google.errorprone.ErrorProneOptions
 
isDropErrorsToWarnings() - Method in class com.google.errorprone.ErrorProneOptions
 
isEmpty() - Method in class com.google.errorprone.apply.DescriptionBasedDiff
 
isEmpty() - Method in class com.google.errorprone.ErrorProneFlags
Whether this Flags object is empty, i.e.
isEmpty() - Method in interface com.google.errorprone.fixes.Fix
 
isEmpty() - Method in class com.google.errorprone.fixes.Replacements
 
isEmpty() - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
isEmpty() - Method in class com.google.errorprone.fixes.SuggestedFix
 
isEnableAllChecksAsWarnings() - Method in class com.google.errorprone.ErrorProneOptions
 
isExactType(String) - Static method in class com.google.errorprone.predicates.TypePredicates
Match types that are exactly equal.
isExactType(Supplier<Type>) - Static method in class com.google.errorprone.predicates.TypePredicates
Match types that are exactly equal.
isExactTypeAny(Iterable<String>) - Static method in class com.google.errorprone.predicates.TypePredicates
Match types that are exactly equal to any of the given types.
isField() - Static method in class com.google.errorprone.matchers.Matchers
Matches if a VariableTree is a field declaration, as opposed to a local variable, enum constant, parameter to a method, etc.
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
 
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.
isJUnitTestCode(VisitorState) - Static method in class com.google.errorprone.util.ASTHelpers
Returns true if the leaf node in the TreePath from state sits somewhere underneath a class or method that is marked as JUnit 3 or 4 test code.
isKnownNonNullReturning() - Method in interface com.google.errorprone.dataflow.nullnesspropagation.MethodInfo
 
IsLastStatementInBlock<T extends com.sun.source.tree.StatementTree> - Class in com.google.errorprone.matchers
A matcher that returns true if the statement is the final statement in the block.
IsLastStatementInBlock() - Constructor for class com.google.errorprone.matchers.IsLastStatementInBlock
 
isLastStatementInBlock() - Static method in class com.google.errorprone.matchers.Matchers
Matches a statement AST node if the statement is the last statement in the block.
isNonNull() - Static method in class com.google.errorprone.matchers.Matchers
Matches if the expression is provably non-null.
isNull() - Static method in class com.google.errorprone.matchers.Matchers
Matches if the expression is provably null.
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.
isSupportedOption(String) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 
isSupportedOption(String) - Static method in class com.google.errorprone.ErrorProneOptions
isSuppressed(Tree) - Method in class com.google.errorprone.bugpatterns.BugChecker
Returns true if the given tree is annotated with a @SuppressWarnings that disables this bug checker.
isSuppressed(Symbol) - Method in class com.google.errorprone.bugpatterns.BugChecker
Returns true if the given symbol is annotated with a @SuppressWarnings that disables this bug checker.
isSuppressed(Suppressible, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
Returns true if this checker should be suppressed on the current tree path.
isSuppressed(Suppressible, Set<String>, Set<Class<? extends Annotation>>, BugPattern.SeverityLevel, boolean, boolean) - Static method in class com.google.errorprone.SuppressionHelper
Returns true if this checker should be suppressed on the current tree path.
isTestCaseDescendant - Static variable in class com.google.errorprone.matchers.JUnitMatchers
Matches a class that inherits from TestCase.
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_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.
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
 
JUnit4TestClassMatcher() - Constructor for class com.google.errorprone.matchers.JUnitMatchers.JUnit4TestClassMatcher
 
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.
JUnitMatchers() - Constructor for class com.google.errorprone.matchers.JUnitMatchers
 
JUnitMatchers.JUnit4TestClassMatcher - Class in com.google.errorprone.matchers
 

K

kind() - Method in class com.google.errorprone.util.ErrorProneToken
 
kindIs(Tree.Kind) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node of a given kind, for example, an Annotation or a switch block.

L

leastUpperBound(LocalStore<V>) - Method in class com.google.errorprone.dataflow.LocalStore
 
leastUpperBound(Nullness) - Method in enum com.google.errorprone.dataflow.nullnesspropagation.Nullness
 
length() - Method in class com.google.errorprone.fixes.Replacement
The length of the input text to be replaced.
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
 
listenToDiagnostics(DiagnosticListener<? super JavaFileObject>) - Method in class com.google.errorprone.BaseErrorProneCompiler.Builder
 
loadPlugins(ScannerSupplier, Context) - Static method in class com.google.errorprone.ErrorPronePlugins
 
loadVersionFromPom() - Static method in class com.google.errorprone.ErrorProneVersion
Loads the Error Prone version.
LocalStore<V extends org.checkerframework.dataflow.analysis.AbstractValue<V>> - Class in com.google.errorprone.dataflow
Immutable map from each local variable to its AbstractValue.
LocalStore.Builder<V extends org.checkerframework.dataflow.analysis.AbstractValue<V>> - Class in com.google.errorprone.dataflow
Builder for LocalStore instances.
LocalVariableValues<T> - Interface in com.google.errorprone.dataflow
Read-only access to LocalStore for convenience.
logFatalError(Log) - Method in error com.google.errorprone.ErrorProneError
 
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

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(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.DescendantOf
 
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.Enclosing.BlockOrCase
 
matches(Tree, VisitorState) - Method in class com.google.errorprone.matchers.HasIdentifier
 
matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.InstanceMethod
 
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.IsLastStatementInBlock
 
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.IsSameType
 
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.IsSubtypeOf
 
matches(ClassTree, VisitorState) - Method in class com.google.errorprone.matchers.JUnitMatchers.JUnit4TestClassMatcher
 
matches(T, VisitorState) - Method in interface com.google.errorprone.matchers.Matcher
 
matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodInvocation
 
matches(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodInvocationArgument
 
matches(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodInvocationMethodSelect
 
matches(MethodTree, VisitorState) - Method in class com.google.errorprone.matchers.MethodVisibility
 
matches() - Method in class com.google.errorprone.matchers.MultiMatcher.MultiMatchResult
True if the MultiMatcher matched the nodes expected.
matches(T, VisitorState) - Method in class com.google.errorprone.matchers.NextStatement
 
matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.NullnessMatcher
 
matches(Tree, VisitorState) - Method in class com.google.errorprone.matchers.ParentNode
 
matches(StatementTree, VisitorState) - Method in class com.google.errorprone.matchers.Returns
 
matches(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.StringLiteral
 
matches(StatementTree, VisitorState) - Method in class com.google.errorprone.matchers.Throws
 
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
 
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
 
matchResult(ExpressionTree, VisitorState) - Method in class com.google.errorprone.matchers.method.ConstructorMatcherImpl
 
matchResult(ExpressionTree, MatchState, VisitorState) - Method in class com.google.errorprone.matchers.method.MethodSignatureMatcherImpl
 
matchResult(ExpressionTree, MatchState, VisitorState) - Method in class com.google.errorprone.matchers.method.ParameterMatcherImpl
 
matchReturn(ReturnTree, VisitorState) - Method in interface com.google.errorprone.bugpatterns.BugChecker.ReturnTreeMatcher
 
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
 
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
 
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(ChildMultiMatcher.MatchType, Matcher<VariableTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches if the given matcher matches all of/any of the parameters to this method.
MethodHasParameters - Class in com.google.errorprone.matchers
Matches if the given matcher matches all of/any of the parameters to this method.
MethodHasParameters(ChildMultiMatcher.MatchType, Matcher<VariableTree>) - Constructor for class com.google.errorprone.matchers.MethodHasParameters
 
methodHasVisibility(MethodVisibility.Visibility) - Static method in class com.google.errorprone.matchers.Matchers
 
MethodInfo - Interface in com.google.errorprone.dataflow.nullnesspropagation
Represents a Java method.
methodInvocation(Matcher<ExpressionTree>, ChildMultiMatcher.MatchType, Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if it is a method invocation and the given matchers match.
methodInvocation(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if it is a method invocation and the method select matches methodSelectMatcher.
MethodInvocation - Class in com.google.errorprone.matchers
Matches a method invocation based on a matcher for the method select (receiver + method identifier) and one for the arguments.
MethodInvocation(Matcher<ExpressionTree>, ChildMultiMatcher.MatchType, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.MethodInvocation
Creates a new matcher for method invocations based on a method select and an argument matcher.
MethodInvocationArgument - Class in com.google.errorprone.matchers
Applies an Expression matcher to an argument of a MethodInvocation by position.
MethodInvocationArgument(int, Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.MethodInvocationArgument
 
MethodInvocationMethodSelect - Class in com.google.errorprone.matchers
Adapts a matcher on MethodInvocationTree to match the MethodSelect of the MethodInvocation.
MethodInvocationMethodSelect(Matcher<ExpressionTree>) - Constructor for class com.google.errorprone.matchers.MethodInvocationMethodSelect
 
methodIsConstructor() - Static method in class com.google.errorprone.matchers.Matchers
 
methodIsNamed(String) - Static method in class com.google.errorprone.matchers.Matchers
Match a method declaration with a specific name.
MethodMatchers - Class in com.google.errorprone.matchers.method
 
MethodMatchers() - Constructor for class com.google.errorprone.matchers.method.MethodMatchers
 
MethodMatchers.AnyMethodMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.ConstructorClassMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.ConstructorMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.InstanceMethodMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.MethodClassMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.MethodNameMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.MethodSignatureMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.ParameterMatcher - Interface in com.google.errorprone.matchers.method
 
MethodMatchers.StaticMethodMatcher - Interface in com.google.errorprone.matchers.method
 
MethodNameMatcherImpl - Class in com.google.errorprone.matchers.method
Matchers that select on method name.
methodNameStartsWith(String) - Static method in class com.google.errorprone.matchers.Matchers
Match a method declaration that starts with a given string.
methodReceiverMatcher(Matcher<? super ExpressionTree>) - Static method in class com.google.errorprone.matchers.InstanceMethod
 
methodReturns(Matcher<? super Tree>) - Static method in class com.google.errorprone.matchers.Matchers
 
methodReturns(Supplier<Type>) - Static method in class com.google.errorprone.matchers.Matchers
 
methodReturnsNonNull() - Static method in class com.google.errorprone.matchers.Matchers
Matches a whitelisted method invocation that is known to never return null
methodReturnsNonPrimitiveType() - Static method in class com.google.errorprone.matchers.Matchers
Match a method that returns a non-primitive type.
methodSelect(Matcher<ExpressionTree>) - Static method in class com.google.errorprone.matchers.Matchers
 
MethodSignatureMatcherImpl - Class in com.google.errorprone.matchers.method
Matches on method signature.
MethodVisibility - Class in com.google.errorprone.matchers
A matcher for method visibility (public, private, protected, or default).
MethodVisibility(MethodVisibility.Visibility) - Constructor for class com.google.errorprone.matchers.MethodVisibility
 
MethodVisibility.Visibility - Enum in com.google.errorprone.matchers
 
methodWithClassAndName(String, String) - Static method in class com.google.errorprone.matchers.Matchers
Match a method declaration with a specific enclosing class and method name.
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
Match methods with the given name.
NamingConventions - Class in com.google.errorprone.names
Utility functions for dealing with Java naming conventions
NamingConventions() - Constructor for class com.google.errorprone.names.NamingConventions
 
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.
NextStatement<T extends com.sun.source.tree.StatementTree> - Class in com.google.errorprone.matchers
A matcher for the next statement following a given statement.
NextStatement(Matcher<StatementTree>) - Constructor for class com.google.errorprone.matchers.NextStatement
 
NO_MATCH - Static variable in class com.google.errorprone.matchers.Description
Describes the sentinel value of the case where the match failed.
node - Variable in class com.google.errorprone.matchers.Description
The AST node that matched.
nodeMatcher - Variable in class com.google.errorprone.matchers.ChildMultiMatcher
The matcher to apply to the subnodes in question.
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.
nothing() - Static method in class com.google.errorprone.matchers.Matchers
A matcher that matches no AST node.
Nullness - Enum in com.google.errorprone.dataflow.nullnesspropagation
Represents one of the possible nullness values in our nullness analysis.
NullnessAnalysis - Class in com.google.errorprone.dataflow.nullnesspropagation
An interface to the nullness analysis.
NullnessMatcher - Class in com.google.errorprone.matchers
Matches an expression based on the result of the nullness dataflow analysis.
NullnessMatcher(Nullness) - Constructor for class com.google.errorprone.matchers.NullnessMatcher
 
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
Match the given type exactly.
onClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on types with satisfy the given predicate.
onClass(TypePredicate) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on types with satisfy the given predicate.
onClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on types with the given fully-qualified name.
onClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on the given type exactly.
onClassAny(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on types that are equal to any of the given types.
onClassAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.StaticMethodMatcher
Match on types that are equal to any of the given types.
onDescendantOf(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on descendants of the given fully-qualified type name.
onDescendantOf(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on descendants of the given type.
onDescendantOfAny(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on types that are descendants of any of the given types.
onDescendantOfAny(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on types that are descendants of any of the given types.
onDescribed(Description) - Method in class com.google.errorprone.apply.DescriptionBasedDiff
 
onDescribed(Description) - Method in interface com.google.errorprone.DescriptionListener
Reports a suggested modification to the code.
onDescribed(Description) - Method in class com.google.errorprone.JavacErrorDescriptionListener
 
onExactClass(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on types with the given fully-qualified name.
onExactClass(Supplier<Type>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.InstanceMethodMatcher
Match on the given type exactly.
onlyMatchingNode() - Method in class com.google.errorprone.matchers.MultiMatcher.MultiMatchResult
 
OperatorPrecedence - 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 interface com.google.errorprone.apply.ImportOrganizer
Organize the imports supplied, e.g.

P

ParameterMatcherImpl - Class in com.google.errorprone.matchers.method
Matches on a method's formal parameters.
parentNode(Matcher<? extends Tree>) - Static method in class com.google.errorprone.matchers.Matchers
Matches an AST node if its parent node is matched by the given matcher.
ParentNode - Class in com.google.errorprone.matchers
 
ParentNode(Matcher<Tree>) - Constructor for class com.google.errorprone.matchers.ParentNode
 
parseFlag(String) - Method in class com.google.errorprone.ErrorProneFlags.Builder
Given a String custom flag in the format "-XepOpt:FlagName=Value", places the flag in this builder's dictionary, e.g.
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
 
plus(ErrorProneFlags) - Method in class com.google.errorprone.ErrorProneFlags
Returns a new ErrorProneFlags object with the values of two ErrorProneFlags objects added together.
plus(ScannerSupplier) - Method in class com.google.errorprone.scanner.ScannerSupplier
Composes this ScannerSupplier with the other ScannerSupplier.
pos() - Method in class com.google.errorprone.util.ErrorProneToken
 
position - Variable in class com.google.errorprone.fixes.AdjustedPosition
 
postfixWith(Tree, String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
postfixWith(Tree, String) - Static method in class com.google.errorprone.fixes.SuggestedFix
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) - Static method in class com.google.errorprone.util.Signatures
Pretty-prints a Type for use in diagnostics, using simple names for class types
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.
qualifyType(VisitorState, SuggestedFix.Builder, Symbol) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a human-friendly name of the given Symbol.TypeSymbol for use in fixes.
qualifyType(VisitorState, SuggestedFix.Builder, TypeMirror) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Returns a human-friendly name of the given type for use in fixes.

R

radix() - Method in class com.google.errorprone.util.ErrorProneToken
 
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.
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.
redirectOutputTo(PrintWriter) - Method in class com.google.errorprone.BaseErrorProneCompiler.Builder
 
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.
removeModifier(Tree, Modifier, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFix
removeModifiers(Tree, VisitorState, Modifier...) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Remove modifiers from the given class, method, or field declaration.
removeStaticImport(String) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
Remove a static import statement as part of this SuggestedFix.
renameMethod(MethodTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Be warned, only changes method name at the declaration.
renameVariable(VariableTree, String, VisitorState) - Static method in class com.google.errorprone.fixes.SuggestedFixes
Renames the given VariableTree and its usages in the current compilation unit to replacement.
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.
replaceLines(List<String>) - Method in class com.google.errorprone.apply.SourceFile
Replace the source code with the new lines of code.
replaceLines(int, int, List<String>) - Method in class com.google.errorprone.apply.SourceFile
Replace the source code between the start and end lines with some new lines of code.
Replacement - Class in com.google.errorprone.fixes
A replaced section of a source file.
Replacement() - Constructor for class com.google.errorprone.fixes.Replacement
 
Replacements - Class in com.google.errorprone.fixes
A collection of Replacements to be made to a source file.
Replacements() - Constructor for class com.google.errorprone.fixes.Replacements
 
replaceWith() - Method in class com.google.errorprone.fixes.Replacement
The source text to appear in the output.
report(ScannerSupplier) - Method in class com.google.errorprone.BaseErrorProneCompiler.Builder
 
reportMatch(Description, T, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
 
reportMatch(Description) - Method in class com.google.errorprone.VisitorState
 
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.
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.
run(String[]) - Method in class com.google.errorprone.BaseErrorProneCompiler
 
run(String[], List<JavaFileObject>) - Method in class com.google.errorprone.BaseErrorProneCompiler
 
run(String[], JavaFileManager, List<JavaFileObject>, Iterable<? extends Processor>) - Method in class com.google.errorprone.BaseErrorProneCompiler
 
run(InputStream, OutputStream, OutputStream, String...) - Method in class com.google.errorprone.BaseErrorProneJavaCompiler
 

S

sameArgument(int, int) - Static method in class com.google.errorprone.matchers.Matchers
Matches a MethodInvocation AST node when the arguments at the two given indices are both the same identifier.
sameVariable(ExpressionTree) - Static method in class com.google.errorprone.matchers.Matchers
Matches if this ExpressionTree refers to the same variable as the one passed into the matcher.
sameVariable(ExpressionTree, ExpressionTree) - Static method in class com.google.errorprone.util.ASTHelpers
Determines whether two expressions refer to the same variable.
scan(TreePath, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
Scan a tree from a position identified by a TreePath.
scan(Tree, VisitorState) - Method in class com.google.errorprone.scanner.Scanner
Scan a single node.
Scanner - Class in com.google.errorprone.scanner
TODO(eaftan): I'm worried about this performance of this code, specifically the part that handles SuppressWarnings.
Scanner() - Constructor for class com.google.errorprone.scanner.Scanner
 
ScannerSupplier - Class in com.google.errorprone.scanner
Supplies Scanners and provides access to the backing sets of all BugCheckers and enabled BugCheckers.
ScannerSupplier() - Constructor for class com.google.errorprone.scanner.ScannerSupplier
 
selectedIsInstance() - Static method in class com.google.errorprone.matchers.Matchers
Returns true if the expression is a member access on an instance, rather than a static type.
setInformation(Element, V) - Method in class com.google.errorprone.dataflow.LocalStore.Builder
Sets the value for the given variable.
setMessage(String) - Method in class com.google.errorprone.matchers.Description.Builder
Set a custom error message for this Description.
setSourceText(CharSequence) - Method in class com.google.errorprone.apply.SourceFile
Clears the current source test for this SourceFile and resets it to the passed-in value.
setupMessageBundle(Context) - Static method in class com.google.errorprone.BaseErrorProneJavaCompiler
Registers our message bundle.
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.
Signatures - Class in com.google.errorprone.util
Signature generation.
Signatures() - Constructor for class com.google.errorprone.util.Signatures
 
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
 
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.
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
 
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
 
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
 
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() - Constructor for class com.google.errorprone.fixes.SuggestedFixes
 
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
 
Suppliers() - Constructor for class com.google.errorprone.suppliers.Suppliers
 
suppressibility() - Method in class com.google.errorprone.BugCheckerInfo
 
suppressibility() - Method in class com.google.errorprone.bugpatterns.BugChecker
 
suppressibility() - Method in interface com.google.errorprone.matchers.Suppressible
Returns how this checker can be suppressed (e.g., via @SuppressWarnings or a custom suppression annotation.
Suppressible - Interface in com.google.errorprone.matchers
 
SuppressionHelper - Class in com.google.errorprone
Encapsulates the logic of handling suppressions, both via @SuppressWarnings and via custom suppression annotations.
SuppressionHelper(Set<Class<? extends Annotation>>, VisitorState) - Constructor for class com.google.errorprone.SuppressionHelper
 
SuppressionHelper.SuppressionInfo - Class in com.google.errorprone
Container for information about suppressions.
SuppressionInfo(Set<String>, Set<Class<? extends Annotation>>, boolean) - Constructor for class com.google.errorprone.SuppressionHelper.SuppressionInfo
 
suppressWarningsStrings - Variable in class com.google.errorprone.SuppressionHelper.SuppressionInfo
 
swap(Tree, Tree) - Method in class com.google.errorprone.fixes.SuggestedFix.Builder
 
swap(Tree, Tree) - Static method in class com.google.errorprone.fixes.SuggestedFix
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.

T

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
 
then() - Method in class com.google.errorprone.fixes.BranchedSuggestedFixes.Builder
 
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.
toBuilder() - Method in class com.google.errorprone.dataflow.LocalStore
 
toDOToutput() - Method in class com.google.errorprone.dataflow.LocalStore
 
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 class com.google.errorprone.dataflow.LocalStore
 
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
 
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.
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.
TypePredicates - Class in com.google.errorprone.predicates
A collection of TypePredicates.
TypePredicates() - Constructor for class com.google.errorprone.predicates.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
 

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.matchers.ChildMultiMatcher.MatchType
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.Any
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.util.OperatorPrecedence
Returns the enum constant of this type with the specified name.
valueOfLocalVariable(LocalVariableNode, V) - Method in class com.google.errorprone.dataflow.LocalStore
 
valueOfLocalVariable(LocalVariableNode, T) - Method in interface com.google.errorprone.dataflow.LocalVariableValues
Provides the nullness values of local variables (as far as they can be determined).
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.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.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.Any
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.util.OperatorPrecedence
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.
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, 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
 
visitCompilationUnit(CompilationUnitTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitCompoundAssignment(CompoundAssignmentTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
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, 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
 
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
 
visitMethodInvocation(MethodInvocationTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
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
 
VisitorState - Class in com.google.errorprone
 
VisitorState(Context) - Constructor for class com.google.errorprone.VisitorState
 
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, 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
 
visitTry(TryTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
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
 
visitUnionType(UnionTypeTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitVariable(VariableTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitWhileLoop(WhileLoopTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
visitWildcard(WildcardTree, VisitorState) - Method in class com.google.errorprone.scanner.ErrorProneScanner
 
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();
WaitMatchers() - Constructor for class com.google.errorprone.matchers.WaitMatchers
 
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.
withAnyName() - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
Match methods with any name.
withCustomDefaultSeverity(BugPattern.SeverityLevel) - Method in class com.google.errorprone.BugCheckerInfo
 
withNameMatching(Pattern) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
Match methods with a name that matches the given regular expression.
withParameters(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorClassMatcher
Match constructors whose formal parameters have the given types.
withParameters(Iterable<Supplier<Type>>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.ConstructorClassMatcher
Match constructors whose formal parameters have the given types.
withParameters(String...) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodNameMatcher
Match methods whose formal parameters have the given types.
withParameters(Iterable<String>) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodNameMatcher
Match methods whose formal parameters have the given types.
withParameters(String...) - Method in class com.google.errorprone.matchers.method.MethodNameMatcherImpl
 
withParameters(Iterable<String>) - Method in class com.google.errorprone.matchers.method.MethodNameMatcherImpl
 
withPath(TreePath) - Method in class com.google.errorprone.VisitorState
 
withSignature(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
Match methods with the given signature.
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 V W 
Skip navigation links

Copyright © 2017. All rights reserved.