Uses of Interface
com.google.errorprone.fixes.ErrorPronePosition
Packages that use ErrorPronePosition
Package
Description
Checks added to the java compiler which detect common bug patterns.
Support code for providing automated corrections for defects we find.
A predicate DSL for matching javac AST nodes.
-
Uses of ErrorPronePosition in com.google.errorprone.bugpatterns
Methods in com.google.errorprone.bugpatterns with parameters of type ErrorPronePositionModifier and TypeMethodDescriptionBugChecker.buildDescription(ErrorPronePosition position) Returns a Description builder, which allows you to customize the diagnostic with a custom message or multiple fixes.BugChecker.describeMatch(ErrorPronePosition position) Helper to create a Description for the common case where there is no fix.BugChecker.describeMatch(ErrorPronePosition position, Fix fix) Helper to create a Description for the common case where there is a fix. -
Uses of ErrorPronePosition in com.google.errorprone.fixes
Classes in com.google.errorprone.fixes that implement ErrorPronePositionModifier and TypeClassDescriptionfinal recordDescribes a tree position with adjustments to the start and end indices.final recordAJCDiagnostic.DiagnosticPositionwith a fixed position.final recordDescribes a position that only has a start and end index.Methods in com.google.errorprone.fixes that return ErrorPronePositionModifier and TypeMethodDescriptionstatic ErrorPronePositionstatic ErrorPronePositionErrorPronePosition.from(com.sun.tools.javac.tree.JCTree node) static ErrorPronePositionErrorPronePosition.from(com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition pos) Methods in com.google.errorprone.fixes with parameters of type ErrorPronePositionModifier and TypeMethodDescriptionSuggestedFix.Builder.delete(ErrorPronePosition node) static SuggestedFixSuggestedFix.delete(ErrorPronePosition position) SuggestedFix.Builder.postfixWith(ErrorPronePosition position, String postfix) SuggestedFix.Builder.prefixWith(ErrorPronePosition position, String prefix) SuggestedFix.Builder.replace(ErrorPronePosition position, String replaceWith) -
Uses of ErrorPronePosition in com.google.errorprone.matchers
Fields in com.google.errorprone.matchers declared as ErrorPronePositionModifier and TypeFieldDescriptionfinal ErrorPronePositionDescription.positionThe position of the match.Methods in com.google.errorprone.matchers with parameters of type ErrorPronePositionModifier and TypeMethodDescriptionstatic Description.BuilderDescription.builder(ErrorPronePosition position, String name, @Nullable String link, String message) Returns a new builder forDescriptions.