Record Class JSignature.MethodDeclaration
java.lang.Object
java.lang.Record
honeyroasted.jype.metadata.signature.JSignature.MethodDeclaration
- All Implemented Interfaces:
JSignature,JSignature.Declaration,JSignature.GenericDeclaration
- Enclosing interface:
JSignature
public static record JSignature.MethodDeclaration(List<JSignature.VarTypeDeclaration> vars, List<JSignature.InformalType> parameters, JSignature.InformalType returnType, List<JSignature.InformalType> exceptions)
extends Record
implements JSignature.GenericDeclaration
-
Nested Class Summary
Nested classes/interfaces inherited from interface honeyroasted.jype.metadata.signature.JSignature
JSignature.Array, JSignature.ClassDeclaration, JSignature.Declaration, JSignature.Declared, JSignature.GenericDeclaration, JSignature.InformalType, JSignature.IntersectionType, JSignature.MethodDeclaration, JSignature.Parameterized, JSignature.Type, JSignature.VarType, JSignature.VarTypeDeclaration, JSignature.WildType -
Constructor Summary
ConstructorsConstructorDescriptionMethodDeclaration(List<JSignature.VarTypeDeclaration> vars, List<JSignature.InformalType> parameters, JSignature.InformalType returnType, List<JSignature.InformalType> exceptions) Creates an instance of aMethodDeclarationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theparametersrecord component.Returns the value of thereturnTyperecord component.toString()Returns a string representation of this record class.vars()Returns the value of thevarsrecord component.
-
Constructor Details
-
MethodDeclaration
public MethodDeclaration(List<JSignature.VarTypeDeclaration> vars, List<JSignature.InformalType> parameters, JSignature.InformalType returnType, List<JSignature.InformalType> exceptions) Creates an instance of aMethodDeclarationrecord class.- Parameters:
vars- the value for thevarsrecord componentparameters- the value for theparametersrecord componentreturnType- the value for thereturnTyperecord componentexceptions- the value for theexceptionsrecord component
-
-
Method Details
-
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). -
vars
Returns the value of thevarsrecord component.- Specified by:
varsin interfaceJSignature.GenericDeclaration- Returns:
- the value of the
varsrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
exceptions
Returns the value of theexceptionsrecord component.- Returns:
- the value of the
exceptionsrecord component
-