Record Class JSignature.ClassDeclaration
java.lang.Object
java.lang.Record
honeyroasted.jype.metadata.signature.JSignature.ClassDeclaration
- All Implemented Interfaces:
JSignature,JSignature.Declaration,JSignature.GenericDeclaration
- Enclosing interface:
JSignature
public static record JSignature.ClassDeclaration(List<JSignature.VarTypeDeclaration> vars, JSignature.InformalType superclass, List<JSignature.InformalType> interfaces)
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
ConstructorsConstructorDescriptionClassDeclaration(List<JSignature.VarTypeDeclaration> vars, JSignature.InformalType superclass, List<JSignature.InformalType> interfaces) Creates an instance of aClassDeclarationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterfacesrecord component.Returns the value of thesuperclassrecord component.toString()Returns a string representation of this record class.vars()Returns the value of thevarsrecord component.
-
Constructor Details
-
ClassDeclaration
public ClassDeclaration(List<JSignature.VarTypeDeclaration> vars, JSignature.InformalType superclass, List<JSignature.InformalType> interfaces) Creates an instance of aClassDeclarationrecord class.- Parameters:
vars- the value for thevarsrecord componentsuperclass- the value for thesuperclassrecord componentinterfaces- the value for theinterfacesrecord 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
-
superclass
Returns the value of thesuperclassrecord component.- Returns:
- the value of the
superclassrecord component
-
interfaces
Returns the value of theinterfacesrecord component.- Returns:
- the value of the
interfacesrecord component
-