Record Class MethodInvocationMatcher.Token.MethodName
java.lang.Object
java.lang.Record
com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.MethodName
- All Implemented Interfaces:
MethodInvocationMatcher.Token
- Enclosing interface:
MethodInvocationMatcher.Token
public static record MethodInvocationMatcher.Token.MethodName(String methodName)
extends Record
implements MethodInvocationMatcher.Token
A token limiting the name of the method being invoked.
-
Nested Class Summary
Nested classes/interfaces inherited from interface MethodInvocationMatcher.Token
MethodInvocationMatcher.Token.DefinedIn, MethodInvocationMatcher.Token.Kind, MethodInvocationMatcher.Token.MethodName, MethodInvocationMatcher.Token.ParameterTypes, MethodInvocationMatcher.Token.ReceiverSupertype, MethodInvocationMatcher.Token.ReceiverType -
Constructor Summary
ConstructorsConstructorDescriptionMethodName(String methodName) Creates an instance of aMethodNamerecord class. -
Method Summary
Modifier and TypeMethodDescriptionThe value to compare withMethodInvocationMatcher.TokenType.extract(Context, VisitorState)to determine whether this property matches.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themethodNamerecord component.final StringtoString()Returns a string representation of this record class.type()The category of properties that this value falls into.
-
Constructor Details
-
MethodName
Creates an instance of aMethodNamerecord class.- Parameters:
methodName- the value for themethodNamerecord component
-
-
Method Details
-
comparisonKey
Description copied from interface:MethodInvocationMatcher.TokenThe value to compare withMethodInvocationMatcher.TokenType.extract(Context, VisitorState)to determine whether this property matches.- Specified by:
comparisonKeyin interfaceMethodInvocationMatcher.Token
-
type
Description copied from interface:MethodInvocationMatcher.TokenThe category of properties that this value falls into.- Specified by:
typein interfaceMethodInvocationMatcher.Token
-
create
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-