Uses of Class
com.google.errorprone.bugpatterns.checkreturnvalue.ResultUseRule
Packages that use ResultUseRule
-
Uses of ResultUseRule in com.google.errorprone.bugpatterns.checkreturnvalue
Subclasses of ResultUseRule in com.google.errorprone.bugpatterns.checkreturnvalueModifier and TypeClassDescriptionfinal classExternal source of information about @CanIgnoreReturnValue-equivalent API's.final classA rule that enables checking for methods belonging to a set of packages or any of their subpackages.static classA global rule that is evaluated when none of the more specific rules determine aResultUsePolicyfor a method.static classResultUseRule.MethodRule<C, S, M extends S>A rule that evaluates methods and constructors to determine aResultUsePolicyfor them.static classA rule that evaluates symbols of any kind to determine aResultUsePolicyto associate with them.Methods in com.google.errorprone.bugpatterns.checkreturnvalue that return ResultUseRuleModifier and TypeMethodDescriptionstatic ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> AutoValueRules.autoBuilders()Returns a rule forabstractmethods on@AutoBuildertypes.static ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> AutoValueRules.autoValueBuilders()Returns a rule forabstractmethods on@AutoValue.Buildertypes.static ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> AutoValueRules.autoValues()Returns a rule forabstractmethods on@AutoValuetypes.static ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> DaggerRules.componentBuilders()Returns a rule that handles@dagger.Component.Buildertypes, making their fluent setter methods' results ignorable.static ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> ExternalCanIgnoreReturnValue.externalIgnoreList()Returns a rule using an external list of APIs to ignore.static 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.static ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> Rules.mapAnnotationSimpleName(String simpleName, ResultUsePolicy policy) static ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> Rules.mapInheritedAnnotationSimpleName(String simpleName, ResultUsePolicy policy) Returns aResultUseRulethat maps annotations on the current symbol, or on super methods if the symbol is a method symbol, with the givensimpleNameto the givenpolicy.static ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> ProtoRules.mutableProtos()Returns a rule that handles mutable protos, making their fluent setter methods' results ignorable.static ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> DaggerRules.productionComponentBuilders()Returns a rule that handles@dagger.producers.ProductionComponent.Buildertypes, making their fluent setter methods' results ignorable.static ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> DaggerRules.productionSubcomponentBuilders()Returns a rule that handles@dagger.producers.ProductionSubcomponent.Buildertypes, making their fluent setter methods' results ignorable.static ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> ProtoRules.protoBuilders()Returns a rule that handles proto builders, making their fluent setter methods' results ignorable.ResultUseRule<?, S> ResultUseRule.Evaluation.rule()Returns the value of therulerecord component.static ResultUseRule<VisitorState, com.sun.tools.javac.code.Symbol> DaggerRules.subcomponentBuilders()Returns a rule that handles@dagger.Subcomponent.Buildertypes, making their fluent setter methods' results ignorable.Methods in com.google.errorprone.bugpatterns.checkreturnvalue with parameters of type ResultUseRuleModifier and TypeMethodDescriptionResultUsePolicyEvaluator.Builder.addRule(ResultUseRule<C, S> rule) Adds the givenrule.ResultUsePolicyEvaluator.Builder.addRules(ResultUseRule<C, S>... rules) Adds all the givenrules.static <S> ResultUseRule.Evaluation<S> ResultUseRule.Evaluation.create(ResultUseRule<?, S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy) Creates a newResultUseRule.Evaluation.Method parameters in com.google.errorprone.bugpatterns.checkreturnvalue with type arguments of type ResultUseRuleModifier and TypeMethodDescriptionResultUsePolicyEvaluator.Builder.addRules(Iterable<? extends ResultUseRule<C, S>> rules) Adds all the givenrules.Constructors in com.google.errorprone.bugpatterns.checkreturnvalue with parameters of type ResultUseRuleModifierConstructorDescriptionEvaluation(ResultUseRule<?, S> rule, ResultUseRule.RuleScope scope, S element, ResultUsePolicy policy) Creates an instance of aEvaluationrecord class.