Uses of Enum
com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicy
Packages that use ResultUsePolicy
Package
Description
Checks added to the java compiler which detect common bug patterns.
-
Uses of ResultUsePolicy in com.google.errorprone.bugpatterns
Methods in com.google.errorprone.bugpatterns that return ResultUsePolicyModifier and TypeMethodDescriptionAbstractReturnValueIgnored.getMethodPolicy
(com.sun.source.tree.ExpressionTree expression, VisitorState state) CheckReturnValue.getMethodPolicy
(com.sun.source.tree.ExpressionTree expression, VisitorState state) -
Uses of ResultUsePolicy in com.google.errorprone.bugpatterns.checkreturnvalue
Methods in com.google.errorprone.bugpatterns.checkreturnvalue that return ResultUsePolicyModifier and TypeMethodDescriptionEvaluates the givenmethod
and returns a singleResultUsePolicy
that should apply to it.ResultUsePolicyAnalyzer.getMethodPolicy
(E expression, C context) Returns theResultUsePolicy
for the method used in the givenexpression
.abstract ResultUsePolicy
ResultUseRule.Evaluation.policy()
The policy the rule selected.static ResultUsePolicy
Returns the enum constant of this type with the specified name.static ResultUsePolicy[]
ResultUsePolicy.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.google.errorprone.bugpatterns.checkreturnvalue that return types with arguments of type ResultUsePolicyModifier and TypeMethodDescriptionPackagesRule.evaluate
(com.sun.tools.javac.code.Symbol symbol, VisitorState state) abstract Optional<ResultUsePolicy>
Evaluates the givensymbol
and optionally returns aResultUsePolicy
for it.final Optional<ResultUsePolicy>
ExternalCanIgnoreReturnValue.evaluateMethod
(com.sun.tools.javac.code.Symbol.MethodSymbol method, VisitorState state) abstract Optional<ResultUsePolicy>
ResultUseRule.MethodRule.evaluateMethod
(M method, C context) Evaluates the givenmethod
and optionally returns aResultUsePolicy
for it.Methods in com.google.errorprone.bugpatterns.checkreturnvalue with parameters of type ResultUsePolicyModifier and TypeMethodDescriptionstatic <S> ResultUseRule.Evaluation<S>
ResultUseRule.Evaluation.create
(ResultUseRule<?, S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy) Creates a newResultUseRule.Evaluation
.static ResultUseRule<VisitorState,
com.sun.tools.javac.code.Symbol> Rules.mapAnnotationSimpleName
(String simpleName, ResultUsePolicy policy) Method parameters in com.google.errorprone.bugpatterns.checkreturnvalue with type arguments of type ResultUsePolicyModifier and TypeMethodDescriptionstatic ResultUseRule<VisitorState,
com.sun.tools.javac.code.Symbol> Rules.globalDefault
(Optional<ResultUsePolicy> methodDefault, Optional<ResultUsePolicy> constructorDefault) Returns a simple global rule that always returns the given defaults for methods and constructors.