Uses of Enum
com.google.errorprone.bugpatterns.checkreturnvalue.ResultUsePolicy
Package
Description
Checks added to the java compiler which detect common bug patterns.
-
Uses of ResultUsePolicy in com.google.errorprone.bugpatterns
Modifier 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
Modifier and TypeClassDescriptionenum
Policy for use of a method or constructor's result.Modifier 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.Modifier 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.Modifier 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) Modifier 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.