Class ResultUseRule.Evaluation<S>
java.lang.Object
com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.Evaluation<S>
- Type Parameters:
S
- the type of symbols
- Enclosing class:
- ResultUseRule<C,S>
public abstract static class ResultUseRule.Evaluation<S> extends Object
An evaluation that a rule makes.
-
Constructor Summary
Constructors Constructor Description Evaluation()
-
Method Summary
Modifier and Type Method Description static <S> ResultUseRule.Evaluation<S>
create(ResultUseRule<?,S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy)
Creates a newResultUseRule.Evaluation
.abstract S
element()
The specific element in the scope for which the evaluation was made.abstract ResultUsePolicy
policy()
The policy the rule selected.abstract ResultUseRule<?,S>
rule()
The rule that made this evaluation.abstract ResultUseRule.RuleScope
scope()
The scope at which the evaluation was made.
-
Constructor Details
-
Evaluation
public Evaluation()
-
-
Method Details
-
create
public static <S> ResultUseRule.Evaluation<S> create(ResultUseRule<?,S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy)Creates a newResultUseRule.Evaluation
. -
rule
The rule that made this evaluation. -
scope
The scope at which the evaluation was made. -
element
The specific element in the scope for which the evaluation was made. -
policy
The policy the rule selected.
-