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
Modifier and TypeInterfaceDescriptionstatic class
A token specifying the class or interface in which the invoked method was defined.static class
A token limiting theMethodInvocationMatcher.Token.Kind
of invocation to match.static class
A token limiting the name of the method being invoked.static class
A token limiting the types of the formal parameters of the method being invoked.static class
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
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 TypeMethodDescriptionThe value to compare withMethodInvocationMatcher.TokenType.extract(Context, VisitorState)
to determine whether this property matches.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.
-