public class LocalVarsAttr extends Attribute
| Modifier and Type | Field and Description |
|---|---|
Scope |
current_scope |
| Constructor and Description |
|---|
LocalVarsAttr(CodeAttr code)
Add a new LocalVarsAttr to a CodeAttr.
|
LocalVarsAttr(Method method)
Create, but don't link into method.code's attributes list (yet).
|
| Modifier and Type | Method and Description |
|---|---|
VarEnumerator |
allVars() |
void |
assignConstants(ClassType cl)
Add any needed constant pool entries for this Attribute.
|
void |
enterScope(Scope scope) |
int |
getCount() |
int |
getLength()
Return the length of the attribute in bytes.
|
Method |
getMethod() |
boolean |
isEmpty() |
void |
preserveVariablesUpto(Scope scope)
Mark scopes upto specified scope as 'preserved'.
|
void |
print(ClassTypeWriter dst) |
void |
write(java.io.DataOutputStream dstr)
Write out the contents of the Attribute.
|
addToFrontOf, assignConstants, count, get, getConstants, getContainer, getLengthAll, getName, getNameIndex, getNext, isSkipped, setContainer, setName, setNameIndex, setNext, setSkipped, setSkipped, writeAllpublic Scope current_scope
public LocalVarsAttr(CodeAttr code)
public LocalVarsAttr(Method method)
public final Method getMethod()
public VarEnumerator allVars()
public void enterScope(Scope scope)
public void preserveVariablesUpto(Scope scope)
public final boolean isEmpty()
public final int getCount()
public final int getLength()
Attributepublic void assignConstants(ClassType cl)
AttributeassignConstants in class Attributepublic void write(java.io.DataOutputStream dstr)
throws java.io.IOException
Attributepublic void print(ClassTypeWriter dst)