Module org.glavo.classfile
Package org.glavo.classfile.impl
Record Class UnboundAttribute.UnboundLocalVariableInfo
java.lang.Object
java.lang.Record
org.glavo.classfile.impl.UnboundAttribute.UnboundLocalVariableInfo
- All Implemented Interfaces:
LocalVariableInfo
- Enclosing class:
UnboundAttribute<T extends Attribute<T>>
public static record UnboundAttribute.UnboundLocalVariableInfo(int startPc, int length, Utf8Entry name, Utf8Entry type, int slot)
extends Record
implements LocalVariableInfo
-
Constructor Summary
ConstructorsConstructorDescriptionUnboundLocalVariableInfo(int startPc, int length, Utf8Entry name, Utf8Entry type, int slot) Creates an instance of aUnboundLocalVariableInforecord 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.intslot()Returns the value of theslotrecord component.intstartPc()Returns the value of thestartPcrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glavo.classfile.attribute.LocalVariableInfo
typeSymbol
-
Constructor Details
-
UnboundLocalVariableInfo
Creates an instance of aUnboundLocalVariableInforecord class.- Parameters:
startPc- the value for thestartPcrecord componentlength- the value for thelengthrecord componentname- the value for thenamerecord componenttype- the value for thetyperecord 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 interfaceLocalVariableInfo- Returns:
- the value of the
startPcrecord component
-
length
public int length()Returns the value of thelengthrecord component.- Specified by:
lengthin interfaceLocalVariableInfo- Returns:
- the value of the
lengthrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceLocalVariableInfo- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceLocalVariableInfo- Returns:
- the value of the
typerecord component
-
slot
public int slot()Returns the value of theslotrecord component.- Specified by:
slotin interfaceLocalVariableInfo- Returns:
- the value of the
slotrecord component
-