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, writeAll
public 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()
Attribute
public void assignConstants(ClassType cl)
Attribute
assignConstants
in class Attribute
public void write(java.io.DataOutputStream dstr) throws java.io.IOException
Attribute
public void print(ClassTypeWriter dst)