@Retention(value=CLASS)
@Target(value=PARAMETER)
public @interface CLocalVariable
| Modifier and Type | Optional Element and Description |
|---|---|
int |
index
The var index of the local variable to get
|
int |
loadOpcode
The opcode used to load the variable
Allowed Values: - ILOAD - LLOAD - FLOAD - DLOAD - ALOAD |
boolean |
modifiable
Copy the value of the local variable back to the caller method
When marking a local variable as modifiable the type of the method parameter is deciding the type of the stored local variable You can use Object to get any non-primitive variable, but it will be stored back as an Object and not as the original typeThis may cause a ClassCastException when not careful |
java.lang.String |
name
The name of the local variable found in the local variable table
The local variable table is optional in the class file but is required for the name resolution Use the index if no local variable table is present |
public abstract java.lang.String name
public abstract int loadOpcode
public abstract boolean modifiable
Object to get any non-primitive variable, but it will be stored back as an Object and not as the original typeClassCastException when not careful