Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class UnboundAttribute.UnboundLocalVariableTypeInfo
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.UnboundAttribute.UnboundLocalVariableTypeInfo
- All Implemented Interfaces:
LocalVariableTypeInfo
- Enclosing class:
UnboundAttribute<T extends Attribute<T>>
public static record UnboundAttribute.UnboundLocalVariableTypeInfo(int startPc, int length, Utf8Entry name, Utf8Entry signature, int slot)
extends Record
implements LocalVariableTypeInfo
-
Constructor Summary
ConstructorsConstructorDescriptionUnboundLocalVariableTypeInfo(int startPc, int length, Utf8Entry name, Utf8Entry signature, int slot) Creates an instance of aUnboundLocalVariableTypeInforecord 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.intlength()Returns the value of thelengthrecord component.name()Returns the value of thenamerecord component.Returns the value of thesignaturerecord component.intslot()Returns the value of theslotrecord component.intstartPc()Returns the value of thestartPcrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UnboundLocalVariableTypeInfo
public UnboundLocalVariableTypeInfo(int startPc, int length, Utf8Entry name, Utf8Entry signature, int slot) Creates an instance of aUnboundLocalVariableTypeInforecord class.- Parameters:
startPc- the value for thestartPcrecord componentlength- the value for thelengthrecord componentname- the value for thenamerecord componentsignature- the value for thesignaturerecord componentslot- the value for theslotrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
startPc
public int startPc()Returns the value of thestartPcrecord component.- Specified by:
startPcin interfaceLocalVariableTypeInfo- Returns:
- the value of the
startPcrecord component
-
length
public int length()Returns the value of thelengthrecord component.- Specified by:
lengthin interfaceLocalVariableTypeInfo- Returns:
- the value of the
lengthrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceLocalVariableTypeInfo- Returns:
- the value of the
namerecord component
-
signature
Returns the value of thesignaturerecord component.- Specified by:
signaturein interfaceLocalVariableTypeInfo- Returns:
- the value of the
signaturerecord component
-
slot
public int slot()Returns the value of theslotrecord component.- Specified by:
slotin interfaceLocalVariableTypeInfo- Returns:
- the value of the
slotrecord component
-