Top Description Methods
java.lang.classfile.attribute

public sealed Interface LocalVariableTypeInfo

Known Direct Implementers
jdk.internal.classfile.impl.BoundLocalVariableType, jdk.internal.classfile.impl.UnboundAttribute.UnboundLocalVariableTypeInfo
Annotations
@PreviewFeature
feature:CLASSFILE_API
Imports
java.lang.classfile.constantpool.Utf8Entry, jdk.internal.classfile.impl.BoundLocalVariableType, .UnboundAttribute, jdk.internal.javac.PreviewFeature

Models a single local variable in the LocalVariableTypeTableAttribute.
Since
22

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 of the local variable
signature
()

Returns the field signature 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 of the local variable.

Returns:Utf8Entry

the field signature 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