Module org.glavo.classfile
Package org.glavo.classfile.attribute
Interface LocalVariableTableAttribute
- All Superinterfaces:
Attribute<LocalVariableTableAttribute>,ClassFileElement,WritableElement<LocalVariableTableAttribute>
- All Known Implementing Classes:
BoundAttribute.BoundLocalVariableTableAttribute,UnboundAttribute.UnboundLocalVariableTableAttribute
public sealed interface LocalVariableTableAttribute
extends Attribute<LocalVariableTableAttribute>
permits BoundAttribute.BoundLocalVariableTableAttribute, UnboundAttribute.UnboundLocalVariableTableAttribute
Models the
LocalVariableTable attribute , which can appear
on a Code attribute, and records debug information about local
variables.
Delivered as a LocalVariable when traversing the
elements of a CodeModel, according to the setting of the
ClassFile.DebugElementsOption option.
The attribute permits multiple instances in a given location.
- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionReturns debug information for the local variables in this method.static LocalVariableTableAttributeof(List<LocalVariableInfo> locals) Returns aLocalVariableTableattribute.Methods inherited from interface org.glavo.classfile.Attribute
attributeMapper, attributeNameMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
localVariables
List<LocalVariableInfo> localVariables()Returns debug information for the local variables in this method.- Returns:
- debug information for the local variables in this method
-
of
Returns aLocalVariableTableattribute.- Parameters:
locals- the local variable descriptions- Returns:
- a
LocalVariableTableattribute
-