Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class UnboundAttribute.UnboundRecordComponentInfo
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.UnboundAttribute.UnboundRecordComponentInfo
- All Implemented Interfaces:
RecordComponentInfo,AttributedElement,ClassfileElement
- Enclosing class:
UnboundAttribute<T extends Attribute<T>>
-
Constructor Summary
ConstructorsConstructorDescriptionUnboundRecordComponentInfo(Utf8Entry name, Utf8Entry descriptor, List<Attribute<?>> attributes) Creates an instance of aUnboundRecordComponentInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.Returns 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.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.AttributedElement
findAttribute, findAttributesMethods inherited from interface org.glavo.classfile.attribute.RecordComponentInfo
descriptorSymbol
-
Constructor Details
-
UnboundRecordComponentInfo
public UnboundRecordComponentInfo(Utf8Entry name, Utf8Entry descriptor, List<Attribute<?>> attributes) Creates an instance of aUnboundRecordComponentInforecord class.- Parameters:
name- the value for thenamerecord componentdescriptor- the value for thedescriptorrecord componentattributes- the value for theattributesrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceRecordComponentInfo- Returns:
- the value of the
namerecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Specified by:
descriptorin interfaceRecordComponentInfo- Returns:
- the value of the
descriptorrecord component
-
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfaceAttributedElement- Returns:
- the value of the
attributesrecord component
-