Interface LocalVariableType
- All Superinterfaces:
ClassFileElementPREVIEW,CodeElementPREVIEW,PseudoInstructionPREVIEW
LocalVariableType is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
A pseudo-instruction which models a single entry in the
LocalVariableTypeTableAttributePREVIEW. Delivered as a CodeElementPREVIEW during
traversal of the elements of a CodeModelPREVIEW, according to the setting of
the ClassFile.DebugElementsOptionPREVIEW option.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionendScope()Returns the end range of the local variable scope.name()Returns the local variable name.static LocalVariableTypePREVIEWof(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable type pseudo-instruction.static LocalVariableTypePREVIEWof(int slot, String name, SignaturePREVIEW signature, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable type pseudo-instruction.Returns the local variable signature.Returns the local variable signature.intslot()Returns the local variable slot.Returns the start range of the local variable scope.booleanWrites the local variable to the specified writer
-
Method Details
-
slot
int slot()Returns the local variable slot.- Returns:
- the local variable slot
-
name
-
signature
-
signatureSymbol
-
startScope
-
endScope
-
writeTo
-
of
static LocalVariableTypePREVIEW of(int slot, Utf8EntryPREVIEW nameEntry, Utf8EntryPREVIEW signatureEntry, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable type pseudo-instruction.- Parameters:
slot- the local variable slotnameEntry- the local variable namesignatureEntry- the local variable signaturestartScope- the start range of the local variable scopeendScope- the end range of the local variable scope- Returns:
- a local variable type pseudo-instruction
-
of
static LocalVariableTypePREVIEW of(int slot, String name, SignaturePREVIEW signature, LabelPREVIEW startScope, LabelPREVIEW endScope) Returns a local variable type pseudo-instruction.- Parameters:
slot- the local variable slotname- the local variable namesignature- the local variable signaturestartScope- the start range of the local variable scopeendScope- the end range of the local variable scope- Returns:
- a local variable type pseudo-instruction
-
LocalVariableTypewhen preview features are enabled.