public class LocalVariableTypeTable extends LocalTable
| Modifier and Type | Method and Description |
|---|---|
void |
acceptVisit(BCVisitor visit)
Accept a visit from a
BCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one. |
LocalVariableType |
addLocalVariableType()
Add a local to this table.
|
LocalVariableType |
addLocalVariableType(LocalVariableType local)
Import a local from another method/class.
|
LocalVariableType |
addLocalVariableType(String name,
String type)
Add a local to this table.
|
LocalVariableType |
getLocalVariableType(int local)
Return the local with the given locals index, or null if none.
|
LocalVariableType |
getLocalVariableType(String name)
Return the local with the given name, or null if none.
|
LocalVariableType[] |
getLocalVariableTypes()
Return all the locals of this method.
|
LocalVariableType[] |
getLocalVariableTypes(String name)
Return all locals with the given name, or empty array if none.
|
protected Local |
newLocal()
Create a new element of this table.
|
protected Local[] |
newLocalArray(int size)
Create a new array.
|
addLocal, addLocal, addLocal, clear, getCode, getLocal, getLocal, getLocals, getLocals, removeLocal, removeLocal, removeLocal, replaceTarget, setLocals, updateTargetsgetClassLoader, getName, getNameIndex, getOwner, getPool, getProject, isValidaddAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, removeAttribute, removeAttribute, setAttributespublic LocalVariableType[] getLocalVariableTypes()
public LocalVariableType getLocalVariableType(int local)
public LocalVariableType getLocalVariableType(String name)
public LocalVariableType[] getLocalVariableTypes(String name)
public LocalVariableType addLocalVariableType(LocalVariableType local)
public LocalVariableType addLocalVariableType()
public LocalVariableType addLocalVariableType(String name, String type)
public void acceptVisit(BCVisitor visit)
VisitAcceptorBCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one.protected Local newLocal()
LocalTablenewLocal in class LocalTableprotected Local[] newLocalArray(int size)
LocalTablenewLocalArray in class LocalTableCopyright © 2002–2015. All rights reserved.