|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.bytecode.Attribute gnu.bytecode.LocalVarsAttr
public class LocalVarsAttr
Field Summary | |
---|---|
Scope |
current_scope
|
Constructor Summary | |
---|---|
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). |
Method Summary | |
---|---|
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. |
Methods inherited from class gnu.bytecode.Attribute |
---|
addToFrontOf, assignConstants, count, get, getContainer, getLengthAll, getName, getNameIndex, getNext, isSkipped, setContainer, setName, setNameIndex, setNext, setSkipped, setSkipped, writeAll |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Scope current_scope
Constructor Detail |
---|
public LocalVarsAttr(CodeAttr code)
public LocalVarsAttr(Method method)
Method Detail |
---|
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
getLength
in class Attribute
public void assignConstants(ClassType cl)
Attribute
assignConstants
in class Attribute
public void write(java.io.DataOutputStream dstr) throws java.io.IOException
Attribute
write
in class Attribute
java.io.IOException
public void print(ClassTypeWriter dst)
print
in class Attribute
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |