Interface MethodInvocationMatcher.Token
- All Known Implementing Classes:
MethodInvocationMatcher.Token.DefinedIn
,MethodInvocationMatcher.Token.Kind
,MethodInvocationMatcher.Token.MethodName
,MethodInvocationMatcher.Token.ParameterTypes
,MethodInvocationMatcher.Token.ReceiverSupertype
,MethodInvocationMatcher.Token.ReceiverType
- Enclosing class:
- MethodInvocationMatcher
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 Summary
Nested Classes Modifier and Type Interface 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 theMethodInvocationMatcher.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). -
Method Summary
Modifier and Type Method Description Object
comparisonKey()
The value to compare withMethodInvocationMatcher.TokenType.extract(Context, VisitorState)
to determine whether this property matches.MethodInvocationMatcher.TokenType
type()
The category of properties that this value falls into.
-
Method Details
-
type
The category of properties that this value falls into. -
comparisonKey
Object comparisonKey()The value to compare withMethodInvocationMatcher.TokenType.extract(Context, VisitorState)
to determine whether this property matches.
-