APIdia Launch Partner
Top Description Methods
java.lang.classfile.attribute

public sealed Interface LocalVariableTypeInfo

permits UnboundLocalVariableTypeInfo, BoundLocalVariableType
Known Direct Implementers
jdk.internal.classfile.impl.BoundLocalVariableType, jdk.internal.classfile.impl.UnboundAttribute.UnboundLocalVariableTypeInfo
Imports
java.lang.classfile.constantpool.Utf8Entry, java.lang.classfile.instruction.LocalVariableType, jdk.internal.classfile.impl.BoundLocalVariableType, .UnboundAttribute

Models a single local variable in the LocalVariableTypeTableAttribute.
Since
24
Java Virtual Machine Specification
4.7.14 The LocalVariableTypeTable Attribute
See Also
LocalVariableTypeTableAttribute#localVariableTypes(), LocalVariableType

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the length of the region of the code array in which this variable is in scope
length
()

Returns the length of the region of the code array in which this variable is in scope.

public Utf8Entry

Returns:

the name of the local variable
name
()

Returns the name of the local variable.

public Utf8Entry

Returns:

the field signature string of the local variable
signature
()

Returns the field signature string of the local variable.

public int

Returns:

the index into the local variable array of the current frame which holds this local variable
slot
()

Returns the index into the local variable array of the current frame which holds this local variable.

public int

Returns:

the index into the code array, inclusive at which the scope of this variable begins
startPc
()

Returns the index into the code array, inclusive at which the scope of this variable begins.

Method Detail

lengthback to summary
public int length()

Returns the length of the region of the code array in which this variable is in scope.

Returns:int

the length of the region of the code array in which this variable is in scope

nameback to summary
public Utf8Entry name()

Returns the name of the local variable.

Returns:Utf8Entry

the name of the local variable

signatureback to summary
public Utf8Entry signature()

Returns the field signature string of the local variable.

Returns:Utf8Entry

the field signature string of the local variable

slotback to summary
public int slot()

Returns the index into the local variable array of the current frame which holds this local variable.

Returns:int

the index into the local variable array of the current frame which holds this local variable

startPcback to summary
public int startPc()

Returns the index into the code array, inclusive at which the scope of this variable begins.

Returns:int

the index into the code array, inclusive at which the scope of this variable begins