|
TechTrader Bytecode Toolkit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.techtrader.modules.tools.bytecode.InnerClass
Represents an inner class. TODO: add high-level operations for manipulating the type of the inner class.
Constructor Summary | |
protected |
InnerClass(InnerClassesAttribute owner)
Protected constructor. |
protected |
InnerClass(String name,
InnerClassesAttribute owner)
Protected constructor. |
Method Summary | |
void |
acceptVisit(BCVisitor visit)
|
int |
getAccessFlags()
Get the access flags on the inner class. |
int |
getIndex()
Get the index into the constant pool of the ClassEntry that describeds this class. |
String |
getName()
Get the name of this field. |
int |
getNameIndex()
Get the index into the constant pool of the UTF8Entry that holds the name of the class. |
int |
getOuterClassIndex()
Get the index into the constant pool of the ClassEntry describing the outer class. |
InnerClassesAttribute |
getOwner()
Inner classes are owned by InnerClassesAttributes. |
protected void |
invalidate()
Used to invalidate an inner class when removed, so that it can no longer affect the constant pool. |
boolean |
isAbstract()
Manipulate the class access flags. |
boolean |
isFinal()
Manipulate the inner class access flags. |
boolean |
isInterface()
Manipulate the class access flags. |
boolean |
isPrivate()
Manipulate the inner class access flags. |
boolean |
isProtected()
Manipulate the inner class access flags. |
boolean |
isPublic()
Manipulate the inner class access flags. |
boolean |
isStatic()
Manipulate the inner class access flags. |
void |
makePrivate()
Manipulate the inner class access flags. |
void |
makeProtected()
Manipulate the inner class access flags. |
void |
makePublic()
Manipulate the inner class access flags. |
protected void |
readData(DataInput in)
|
void |
setAbstract(boolean on)
Manipulate the class access flags. |
void |
setAccessFlags(int accessFlags)
Set the access flags on the inner class. |
void |
setFinal(boolean on)
Manipulate the inner class access flags. |
void |
setIndex(int index)
Set the index into the constant pool of the ClassEntry that describeds this class. |
void |
setInterface(boolean on)
Manipulate the class access flags. |
void |
setName(String name)
Set the name of this field. |
void |
setNameIndex(int nameIndex)
Set the index into the constant pool of the UTF8Entry that holds the name of the class. |
void |
setOuterClassIndex(int ownerIndex)
Set the index into the constant pool of the ClassEntry describing the outer class. |
void |
setStatic(boolean on)
Manipulate the inner class access flags. |
protected void |
writeData(DataOutput out)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected InnerClass(InnerClassesAttribute owner)
protected InnerClass(String name, InnerClassesAttribute owner)
Method Detail |
protected void invalidate()
public InnerClassesAttribute getOwner()
public int getAccessFlags()
public void setAccessFlags(int accessFlags)
public boolean isPublic()
public void makePublic()
public boolean isProtected()
public void makeProtected()
public boolean isPrivate()
public void makePrivate()
public boolean isFinal()
public void setFinal(boolean on)
public boolean isStatic()
public void setStatic(boolean on)
public boolean isInterface()
public void setInterface(boolean on)
public boolean isAbstract()
public void setAbstract(boolean on)
public int getIndex()
public void setIndex(int index)
public int getNameIndex()
public void setNameIndex(int nameIndex)
public String getName()
public void setName(String name)
public int getOuterClassIndex()
public void setOuterClassIndex(int ownerIndex)
protected void readData(DataInput in) throws IOException
protected void writeData(DataOutput out) throws IOException
public void acceptVisit(BCVisitor visit)
|
TechTrader Bytecode Toolkit | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |