public class LocalVariableInfo extends Object
| Constructor and Description |
|---|
LocalVariableInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
int startPc,
int length,
Type type)
Adds some information about this local variable (slot).
|
String |
getName(int offset)
Returns the name of the local variable that uses this local variable slot at the given bytecode offset.
|
Type |
getType(int offset)
Returns the type of the local variable that uses this local variable slot at the given bytecode offset.
|
public LocalVariableInfo()
public void add(String name, int startPc, int length, Type type) throws LocalVariableInfoInconsistentException
name - variable namestartPc - Range in which the variable is valid.length - length of ...type - variable typeLocalVariableInfoInconsistentException - if the new information conflicts with already gathered information.public String getName(int offset)
offset - bytecode offset.public Type getType(int offset)
offset - bytecode offset.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.