@Retention(value=CLASS)
@Target(value=PARAMETER)
public @interface CLocalVariable
name(): The name of the local variable found in the local variable table.ordinal(): The ordinal of the local variable in the local variable table.index(): The variable index of the local variable.name(), ordinal() or index() are set, the local variable will be identified by the name of the method parameter.| 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.
|
boolean |
modifiable
Copy the value of the local variable back to the caller method.
|
java.lang.String |
name
The name of the local variable found in the local variable table.
|
int |
ordinal
The ordinal of the local variable to get from the local variable table.
|
public abstract java.lang.String name
public abstract int ordinal
public abstract int index
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 type.ClassCastException when not careful.