Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class SignaturesImpl.ArrayTypeSigImpl
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.SignaturesImpl.ArrayTypeSigImpl
- All Implemented Interfaces:
Signature,Signature.ArrayTypeSig,Signature.RefTypeSig
- Enclosing class:
SignaturesImpl
public static record SignaturesImpl.ArrayTypeSigImpl(int arrayDepth, Signature elemType)
extends Record
implements Signature.ArrayTypeSig
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glavo.classfile.Signature
Signature.ArrayTypeSig, Signature.BaseTypeSig, Signature.ClassTypeSig, Signature.RefTypeSig, Signature.ThrowableSig, Signature.TypeArg, Signature.TypeParam, Signature.TypeVarSig -
Constructor Summary
ConstructorsConstructorDescriptionArrayTypeSigImpl(int arrayDepth, Signature elemType) Creates an instance of aArrayTypeSigImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thearrayDepthrecord component.Returns the signature of the component type.elemType()Returns the value of theelemTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the raw signature string.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ArrayTypeSigImpl
Creates an instance of aArrayTypeSigImplrecord class.- Parameters:
arrayDepth- the value for thearrayDepthrecord componentelemType- the value for theelemTyperecord component
-
-
Method Details
-
componentSignature
Description copied from interface:Signature.ArrayTypeSigReturns the signature of the component type.- Specified by:
componentSignaturein interfaceSignature.ArrayTypeSig- Returns:
- the signature of the component type
-
signatureString
Description copied from interface:SignatureReturns the raw signature string.- Specified by:
signatureStringin interfaceSignature- Returns:
- the raw signature string
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
arrayDepth
public int arrayDepth()Returns the value of thearrayDepthrecord component.- Returns:
- the value of the
arrayDepthrecord component
-
elemType
Returns the value of theelemTyperecord component.- Returns:
- the value of the
elemTyperecord component
-