Module org.glavo.classfile
Package org.glavo.classfile.attribute
Interface LocalVariableTypeTableAttribute
- All Superinterfaces:
Attribute<LocalVariableTypeTableAttribute>,ClassFileElement,WritableElement<LocalVariableTypeTableAttribute>
- All Known Implementing Classes:
BoundAttribute.BoundLocalVariableTypeTableAttribute,UnboundAttribute.UnboundLocalVariableTypeTableAttribute
public sealed interface LocalVariableTypeTableAttribute
extends Attribute<LocalVariableTypeTableAttribute>
permits BoundAttribute.BoundLocalVariableTypeTableAttribute, UnboundAttribute.UnboundLocalVariableTypeTableAttribute
Models the
LocalVariableTypeTable 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.LineNumbersOption option.
The attribute permits multiple instances in a given location.
The attribute was introduced in the Java SE Platform version 5.0.
- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionReturns debug information for the local variables in this method.of(List<LocalVariableTypeInfo> locals) Returns aLocalVariableTypeTableattribute.Methods inherited from interface org.glavo.classfile.Attribute
attributeMapper, attributeNameMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
Method Details
-
localVariableTypes
List<LocalVariableTypeInfo> localVariableTypes()Returns debug information for the local variables in this method.- Returns:
- debug information for the local variables in this method
-
of
Returns aLocalVariableTypeTableattribute.- Parameters:
locals- the local variable descriptions- Returns:
- a
LocalVariableTypeTableattribute
-