- All Known Implementing Classes:
- Enclosing class:
public static interface MethodInvocationMatcher.Token
A specific value for a property that a method invocation can have.
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. Do not create your own implementations of this interface.
Nested Class SummaryModifier and TypeInterfaceDescription
static classA token specifying the class or interface in which the invoked method was defined.
static classA token limiting the
MethodInvocationMatcher.Token.Kindof invocation to match.
static classA token limiting the name of the method being invoked.
static classA token limiting the types of the formal parameters of the method being invoked.
static classA token specifying that the class of the object on which the method is being invoked must be a subtype of another type.
static classA token specifying the exact type of the object on which the method is being invoked (or the class in which it is defined, for static methods).
typeThe category of properties that this value falls into.
comparisonKeyObject comparisonKey()The value to compare with
MethodInvocationMatcher.TokenType.extract(Context, VisitorState)to determine whether this property matches.