- 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
-
- 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
-
- 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 CodeTransformer
s 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
-
- 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
-
- 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 Description
s.
- DescriptionBasedDiff - Class in com.google.errorprone.apply
-
- 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
-
- 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
-
- 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
-
- 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.
- 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
-
- 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
-
- fromBugCheckerClasses(Iterable<Class<? extends BugChecker>>) - Static method in class com.google.errorprone.scanner.ScannerSupplier
-
- fromBugCheckerInfos(Iterable<BugCheckerInfo>) - Static method in class com.google.errorprone.scanner.ScannerSupplier
-
- fromMap(Map<String, String>) - Static method in class com.google.errorprone.ErrorProneFlags
-
- fromScanner(Scanner) - Static method in class com.google.errorprone.scanner.ScannerSupplier
-
- 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
-
- 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
-
- 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 BugChecker
s 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
-
- 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
-
- 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.Token
s 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
-
- 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
-
- 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
-
- instance(Context) - Static method in class com.google.errorprone.dataflow.nullnesspropagation.TrustingNullnessAnalysis
-
- 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'.
- 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
-
- 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.
- 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.
- 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
Replacement
s 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
-
- 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
-
- 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
-
- 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
-
- SuggestedFixes - Class in com.google.errorprone.fixes
-
Factories for constructing
Fix
es.
- 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.
- 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
-