Record Class JSignature.Type
java.lang.Object
java.lang.Record
honeyroasted.jype.metadata.signature.JSignature.Type
- All Implemented Interfaces:
JSignature,JSignature.InformalType
- Enclosing interface:
JSignature
public static record JSignature.Type(JDescriptor.Type descriptor)
extends Record
implements JSignature.InformalType
-
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
ConstructorsConstructorDescriptionType(JDescriptor.Type descriptor) Creates an instance of aTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantoString()Returns a string representation of this record class.
-
Constructor Details
-
Type
Creates an instance of aTyperecord class.- Parameters:
descriptor- the value for thedescriptorrecord component
-
-
Method Details
-
toString
-
isPrimitive
public boolean isPrimitive() -
asParameterized
-
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). -
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-