Class MethodInvocationMatcher.Token.ReceiverSupertype
java.lang.Object
com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.ReceiverSupertype
- All Implemented Interfaces:
MethodInvocationMatcher.Token
- Enclosing interface:
- MethodInvocationMatcher.Token
public abstract static class MethodInvocationMatcher.Token.ReceiverSupertype extends Object implements MethodInvocationMatcher.Token
A token specifying that the class of the object on which the method is being invoked must be
a subtype of another type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.errorprone.matchers.method.MethodInvocationMatcher.Token
MethodInvocationMatcher.Token.DefinedIn, MethodInvocationMatcher.Token.Kind, MethodInvocationMatcher.Token.MethodName, MethodInvocationMatcher.Token.ParameterTypes, MethodInvocationMatcher.Token.ReceiverSupertype, MethodInvocationMatcher.Token.ReceiverType
-
Constructor Summary
Constructors Constructor Description ReceiverSupertype()
-
Method Summary
Modifier and Type Method Description Object
comparisonKey()
The value to compare withMethodInvocationMatcher.TokenType.extract(Context, VisitorState)
to determine whether this property matches.static MethodInvocationMatcher.Token.ReceiverSupertype
create(String receiverSupertype)
abstract String
receiverSupertype()
MethodInvocationMatcher.TokenType
type()
The category of properties that this value falls into.
-
Constructor Details
-
ReceiverSupertype
public ReceiverSupertype()
-
-
Method Details
-
receiverSupertype
-
type
Description copied from interface:MethodInvocationMatcher.Token
The category of properties that this value falls into.- Specified by:
type
in interfaceMethodInvocationMatcher.Token
-
create
-
comparisonKey
Description copied from interface:MethodInvocationMatcher.Token
The value to compare withMethodInvocationMatcher.TokenType.extract(Context, VisitorState)
to determine whether this property matches.- Specified by:
comparisonKey
in interfaceMethodInvocationMatcher.Token
-