LocalVariableTypeTable attribute. Delivered
as a CodeElement during traversal of the elements of a CodeModel,
according to the setting of the ClassFile.DebugElementsOption option.
A local variable type entry is composite:
LocalVariableType( int slot, String name, Signature signature, Label startScope, Label endScope )
slot is u2.
Another model, LocalVariableTypeInfo, also models a local variable
type entry; it has no dependency on a CodeModel and represents of bci
values as ints instead of Labels, and is used as components
of a LocalVariableTypeTableAttribute.
API Note
LocalVariableType is used if a local variable has a parameterized
type, a type argument, or an array type of one of the previous types as its
type. A LocalVariable with the erased type should still be created
for that local variable.
LocalVariableTypeInfo, CodeBuilder::localVariableType, ClassFile.DebugElementsOption
| Modifier and Type | Method and Description |
|---|---|
| public Label | Returns: the end range of the local variable scopeReturns the end range of the local variable scope. |
| public Utf8Entry | |
| public static LocalVariableType | Returns: a local variable type pseudo-instructionthe local variable slot slot, Utf8Entry the local variable name nameEntry, Utf8Entry the local variable signature signatureEntry, Label the start range of the local variable scope startScope, Label the end range of the local variable scope endScope)Returns a local variable type pseudo-instruction. |
| public static LocalVariableType | Returns: a local variable type pseudo-instructionthe local variable slot slot, String the local variable name name, Signature the local variable signature signature, Label the start range of the local variable scope startScope, Label the end range of the local variable scope endScope)Returns a local variable type pseudo-instruction. |
| public Utf8Entry | Returns: the local variable generic signature stringReturns the local variable generic signature string. |
| public default Signature | Returns: the local variable generic signatureReturns the local variable generic signature. |
| public int | |
| public Label | Returns: the start range of the local variable scopeReturns the start range of the local variable scope. |
| endScope | back to summary |
|---|---|
| public Label endScope() Returns the end range of the local variable scope.
| |
| name | back to summary |
|---|---|
| public Utf8Entry name() Returns the local variable name.
| |
| of | back to summary |
|---|---|
| public static LocalVariableType of(int slot, Utf8Entry nameEntry, Utf8Entry signatureEntry, Label startScope, Label endScope) Returns a local variable type pseudo-instruction.
| |
| of | back to summary |
|---|---|
| public static LocalVariableType of(int slot, String name, Signature signature, Label startScope, Label endScope) Returns a local variable type pseudo-instruction.
| |
| signature | back to summary |
|---|---|
| public Utf8Entry signature() Returns the local variable generic signature string. API Note A symbolic generic signature of the local variable is available
through
| |
| signatureSymbol | back to summary |
|---|---|
| public default Signature signatureSymbol() Returns the local variable generic signature.
| |
| slot | back to summary |
|---|---|
| public int slot() Returns the local variable slot.
It is a
| |
| startScope | back to summary |
|---|---|
| public Label startScope() Returns the start range of the local variable scope.
| |