Class ResultUseRule.GlobalRule<C,S>
- java.lang.Object
-
- com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule<C,S>
-
- com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule.GlobalRule<C,S>
-
- Type Parameters:
C
- the type of the context object used during evaluationS
- the type of symbols
- Enclosing class:
- ResultUseRule<C,S>
public abstract static class ResultUseRule.GlobalRule<C,S> extends ResultUseRule<C,S>
A global rule that is evaluated when none of the more specific rules determine aResultUsePolicy
for a method.
-
-
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
Constructors Constructor Description GlobalRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
scopes
public final com.google.common.collect.ImmutableSet<ResultUseRule.RuleScope> scopes()
Description copied from class:ResultUseRule
The scopes this rule applies to.- Specified by:
scopes
in classResultUseRule<C,S>
-
-