Interface LocalVariableTableAttribute
- All Superinterfaces:
Attribute<LocalVariableTableAttribute>,ClassFileElement
Models the
LocalVariableTable attribute (JVMS 4.7.13), 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:
- 24
-
Method Summary
Modifier and TypeMethodDescriptionReturns debug information for the local variables in this method.static LocalVariableTableAttributeof(List<LocalVariableInfo> locals) Returns aLocalVariableTableattribute.Methods declared in interface java.lang.classfile.Attribute
attributeMapper, attributeName
-
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
-