Record Class MethodInvocationMatcher.Token.DefinedIn
java.lang.Object
java.lang.Record
com.google.errorprone.matchers.method.MethodInvocationMatcher.Token.DefinedIn
- All Implemented Interfaces:
MethodInvocationMatcher.Token
- Enclosing interface:
MethodInvocationMatcher.Token
public static record MethodInvocationMatcher.Token.DefinedIn(String owner)
extends Record
implements MethodInvocationMatcher.Token
A token specifying the class or interface in which the invoked method was defined.
-
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
Constructors -
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.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.type()The category of properties that this value falls into.
-
Constructor Details
-
DefinedIn
Creates an instance of aDefinedInrecord class.- Parameters:
owner- the value for theownerrecord component
-
-
Method Details
-
create
-
type
Description copied from interface:MethodInvocationMatcher.TokenThe category of properties that this value falls into.- Specified by:
typein interfaceMethodInvocationMatcher.Token
-
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
-
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). -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-