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>
An evaluation that a rule makes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <S> ResultUseRule.Evaluation<S> create(ResultUseRule<?, S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy) Creates a newResultUseRule.Evaluation.abstract Selement()The specific element in the scope for which the evaluation was made.abstract ResultUsePolicypolicy()The policy the rule selected.abstract ResultUseRule<?, S> rule()The rule that made this evaluation.abstract ResultUseRule.RuleScopescope()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.
-