|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.techtrader.modules.tools.bytecode
Class InnerClass

java.lang.Objectcom.techtrader.modules.tools.bytecode.InnerClass
- All Implemented Interfaces:
- Constants
- public class InnerClass
- extends java.lang.Object
- implements Constants
- extends java.lang.Object
Represents an inner class. TODO: add high-level operations for manipulating the type of the inner class.
| Field Summary | |
private int |
_access
|
private int |
_index
|
private int |
_nameIndex
|
private InnerClassesAttribute |
_owner
|
private int |
_ownerIndex
|
| Constructor Summary | |
protected |
InnerClass(InnerClassesAttribute owner)
Protected constructor. |
protected |
InnerClass(java.lang.String name,
InnerClassesAttribute owner)
Protected constructor. |
| Method Summary | |
void |
acceptVisit(com.techtrader.modules.tools.bytecode.visitor.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. |
java.lang.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(java.io.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(java.lang.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(java.io.DataOutput out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
_nameIndex
private int _nameIndex
_index
private int _index
_ownerIndex
private int _ownerIndex
_access
private int _access
_owner
private InnerClassesAttribute _owner
| Constructor Detail |
InnerClass
protected InnerClass(InnerClassesAttribute owner)
- Protected constructor. Used when reading from a .class file.
InnerClass
protected InnerClass(java.lang.String name, InnerClassesAttribute owner)
- Protected constructor. Used when adding inner classes programmatically.
| Method Detail |
invalidate
protected void invalidate()
- Used to invalidate an inner class when removed, so that it can
no longer affect the constant pool.
getOwner
public InnerClassesAttribute getOwner()
- Inner classes are owned by InnerClassesAttributes.
getAccessFlags
public int getAccessFlags()
- Get the access flags on the inner class.
setAccessFlags
public void setAccessFlags(int accessFlags)
- Set the access flags on the inner class.
isPublic
public boolean isPublic()
- Manipulate the inner class access flags.
makePublic
public void makePublic()
- Manipulate the inner class access flags.
isProtected
public boolean isProtected()
- Manipulate the inner class access flags.
makeProtected
public void makeProtected()
- Manipulate the inner class access flags.
isPrivate
public boolean isPrivate()
- Manipulate the inner class access flags.
makePrivate
public void makePrivate()
- Manipulate the inner class access flags.
isFinal
public boolean isFinal()
- Manipulate the inner class access flags.
setFinal
public void setFinal(boolean on)
- Manipulate the inner class access flags.
isStatic
public boolean isStatic()
- Manipulate the inner class access flags.
setStatic
public void setStatic(boolean on)
- Manipulate the inner class access flags.
isInterface
public boolean isInterface()
- Manipulate the class access flags.
setInterface
public void setInterface(boolean on)
- Manipulate the class access flags.
isAbstract
public boolean isAbstract()
- Manipulate the class access flags.
setAbstract
public void setAbstract(boolean on)
- Manipulate the class access flags.
getIndex
public int getIndex()
- Get the index into the constant pool of the ClassEntry that describeds
this class.
setIndex
public void setIndex(int index)
- Set the index into the constant pool of the ClassEntry that describeds
this class.
getNameIndex
public int getNameIndex()
- Get the index into the constant pool of the UTF8Entry that holds
the name of the class.
setNameIndex
public void setNameIndex(int nameIndex)
- Set the index into the constant pool of the UTF8Entry that holds
the name of the class.
getName
public java.lang.String getName()
- Get the name of this field.
setName
public void setName(java.lang.String name)
- Set the name of this field.
getOuterClassIndex
public int getOuterClassIndex()
- Get the index into the constant pool of the ClassEntry describing
the outer class.
setOuterClassIndex
public void setOuterClassIndex(int ownerIndex)
- Set the index into the constant pool of the ClassEntry describing
the outer class.
readData
protected void readData(java.io.DataInput in) throws java.io.IOException
writeData
protected void writeData(java.io.DataOutput out) throws java.io.IOException
acceptVisit
public void acceptVisit(com.techtrader.modules.tools.bytecode.visitor.BCVisitor visit)
|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.techtrader.modules.tools.bytecode.InnerClass