Class ResultUseRule.SymbolRule<C,S>
java.lang.Object
com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule<C,S>
com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.SymbolRule<C,S>
- Type Parameters:
C
- the type of the context object used during evaluationS
- the type of symbols
- Direct Known Subclasses:
PackagesRule
- Enclosing class:
ResultUseRule<C,
S>
A rule that evaluates symbols of any kind to determine a
ResultUsePolicy
to associate
with them.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
ResultUseRule.Evaluation<S>, ResultUseRule.GlobalRule<C,
S>, ResultUseRule.MethodRule<C, S, M extends S>, ResultUseRule.RuleScope, ResultUseRule.SymbolRule<C, S> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal com.google.common.collect.ImmutableSet
<ResultUseRule.RuleScope> scopes()
The scopes this rule applies to.Methods inherited from class com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
evaluate, evaluate, id, toString
-
Constructor Details
-
SymbolRule
public SymbolRule()
-
-
Method Details
-
scopes
Description copied from class:ResultUseRule
The scopes this rule applies to.- Specified by:
scopes
in classResultUseRule<C,
S>
-