Record Class JMethodLocation
java.lang.Object
java.lang.Record
honeyroasted.jype.metadata.location.JMethodLocation
- All Implemented Interfaces:
JGenericDeclarationLocation
public record JMethodLocation(JClassLocation containing, String name, JClassLocation returnType, List<JClassLocation> parameters)
extends Record
implements JGenericDeclarationLocation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJMethodLocation(JClassLocation containing, String name, JClassLocation returnType, List<JClassLocation> parameters) Creates an instance of aJMethodLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanname()Returns the value of thenamerecord component.static JMethodLocationof(Constructor<?> cons) static JMethodLocationstatic JMethodLocationof(String name, JClassLocation containing, MethodTypeDesc desc) Returns the value of theparametersrecord component.Returns the value of thereturnTyperecord component.toString()Returns a string representation of this record class.
-
Field Details
-
CONSTRUCTOR_NAME
- See Also:
-
STATIC_INITIALIZER_NAME
- See Also:
-
-
Constructor Details
-
JMethodLocation
public JMethodLocation(JClassLocation containing, String name, JClassLocation returnType, List<JClassLocation> parameters) Creates an instance of aJMethodLocationrecord class.- Parameters:
containing- the value for thecontainingrecord componentname- the value for thenamerecord componentreturnType- the value for thereturnTyperecord componentparameters- the value for theparametersrecord component
-
-
Method Details
-
of
-
simpleName
-
of
-
of
-
isConstructor
public boolean isConstructor() -
containingClass
- Specified by:
containingClassin interfaceJGenericDeclarationLocation
-
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). -
containing
Returns the value of thecontainingrecord component.- Returns:
- the value of the
containingrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-