public static interface MethodInvocationMatcher.Token
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.
Modifier and Type | Interface and Description |
---|---|
static class |
MethodInvocationMatcher.Token.DefinedIn
A token specifying the class or interface in which the invoked method was defined.
|
static class |
MethodInvocationMatcher.Token.Kind
A token limiting the
MethodInvocationMatcher.Token.Kind of invocation to match. |
static class |
MethodInvocationMatcher.Token.MethodName
A token limiting the name of the method being invoked.
|
static class |
MethodInvocationMatcher.Token.ParameterTypes
A token limiting the types of the formal parameters of the method being invoked.
|
static class |
MethodInvocationMatcher.Token.ReceiverSupertype
A token specifying that the class of the object on which the method is being invoked must be
a subtype of another type.
|
static class |
MethodInvocationMatcher.Token.ReceiverType
A 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).
|
Modifier and Type | Method and Description |
---|---|
Object |
comparisonKey()
The value to compare with
TokenType#extract(Context, VisitorState) to determine
whether this property matches. |
MethodInvocationMatcher.TokenType |
type()
The category of properties that this value falls into.
|
MethodInvocationMatcher.TokenType type()
Object comparisonKey()
TokenType#extract(Context, VisitorState)
to determine
whether this property matches.Copyright © 2019. All rights reserved.