Class MethodInvocationMatcher.Rule
java.lang.Object
com.google.errorprone.matchers.method.MethodInvocationMatcher.Rule
- Enclosing class:
MethodInvocationMatcher
A rule describing a set of constraints for a method invocation. For each TokenType, a Rule
specifies 0 or more Tokens describing what values are allowed for that type.
This is part of the low-level API for constructing Rule objects dynamically. Consider using the fluent API from MethodMatcher, and the associated helpers in Matchers, when possible.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MethodInvocationMatcher.Rule
create
(com.google.common.collect.ImmutableMap<MethodInvocationMatcher.TokenType, ? extends Set<MethodInvocationMatcher.Token>> required) Builds a Rule object from a map.abstract com.google.common.collect.ImmutableMap
<MethodInvocationMatcher.TokenType, ? extends Set<MethodInvocationMatcher.Token>> required()
-
Constructor Details
-
Rule
public Rule()
-
-
Method Details
-
create
public static MethodInvocationMatcher.Rule create(com.google.common.collect.ImmutableMap<MethodInvocationMatcher.TokenType, ? extends Set<MethodInvocationMatcher.Token>> required) Builds a Rule object from a map. -
required
public abstract com.google.common.collect.ImmutableMap<MethodInvocationMatcher.TokenType,? extends Set<MethodInvocationMatcher.Token>> required()
-