|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectserp.bytecode.InnerClass
public class InnerClass
Any referenced class that is not a package member is represented by this structure. This includes member classes and interfaces.
| Method Summary | |
|---|---|
void |
acceptVisit(BCVisitor visit)
Accept a visit from a BCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one. |
int |
getAccessFlags()
Return the access flags of the inner class. |
ClassLoader |
getClassLoader()
Return the class loader to use when loading related classes. |
BCClass |
getDeclarerBC()
Return the type for this instruction. |
int |
getDeclarerIndex()
Return the ConstantPool index of the ClassEntry that
describes the declaring class, or 0 if this class is not a member class. |
String |
getDeclarerName()
Return the full name of the declaring class, or null if unset/not a member. |
Class |
getDeclarerType()
Return the type of the declaring class. |
String |
getName()
Return the simple name of this inner class, or null if anonymous. |
int |
getNameIndex()
Return the ConstantPool index of the UTF8Entry that
describes the simple name this class is referred to in source, or
0 for anonymous classes. |
InnerClasses |
getOwner()
Inner classes are stored in an InnerClasses attribute. |
ConstantPool |
getPool()
Return the constant pool of the current class. |
Project |
getProject()
Return the project of the current class. |
Class |
getType()
Return the type of the inner class. |
BCClass |
getTypeBC()
Return the type for this instruction. |
int |
getTypeIndex()
Return the ConstantPool index of the ClassEntry that
describes this class, or 0 if none. |
String |
getTypeName()
Return the full name of the inner class, or null if unset. |
boolean |
isAbstract()
Manipulate the class access flags. |
boolean |
isAnnotation()
Manipulate the inner class access flags. |
boolean |
isEnum()
Manipulate the inner 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. |
boolean |
isSynthetic()
Manipulate the inner class access flags. |
boolean |
isValid()
Return false if this entity has been removed from its parent; in this case the results of any operations on the entity are undefined. |
void |
makePrivate()
Manipulate the inner class access flags. |
void |
makeProtected()
Manipulate the inner class access flags. |
void |
makePublic()
Manipulate the inner class access flags. |
void |
setAbstract(boolean on)
Manipulate the class access flags. |
void |
setAccessFlags(int accessFlags)
Set the access flags of the inner class. |
void |
setAnnotation(boolean on)
Manipulate the inner class access flags. |
void |
setDeclarer(BCClass type)
Set the type of this declaring class. |
void |
setDeclarer(Class type)
Set the type of this declaring class. |
void |
setDeclarer(String type)
Set the type of this declaring class. |
void |
setDeclarerIndex(int ownerIndex)
Set the ConstantPool index of the ClassEntry that
describes the declaring class, or 0 if this class is not a member class. |
void |
setEnum(boolean on)
Manipulate the inner class access flags. |
void |
setFinal(boolean on)
Manipulate the inner class access flags. |
void |
setInterface(boolean on)
Manipulate the class access flags. |
void |
setName(String name)
Set the simple name of this inner class. |
void |
setNameIndex(int nameIndex)
Set the ConstantPool index of the UTF8Entry that
describes the simple name this class is referred to in source, or
0 for anonymous classes. |
void |
setStatic(boolean on)
Manipulate the inner class access flags. |
void |
setSynthetic(boolean on)
Manipulate the inner class access flags. |
void |
setType(BCClass type)
Set the type of this inner class. |
void |
setType(Class type)
Set the type of this inner class. |
void |
setType(String type)
Set the type of this inner class. |
void |
setTypeIndex(int index)
Set the ConstantPool index of the ClassEntry that
describes this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public InnerClasses getOwner()
InnerClasses attribute.
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 boolean isSynthetic()
public void setSynthetic(boolean on)
public boolean isAnnotation()
public void setAnnotation(boolean on)
public boolean isEnum()
public void setEnum(boolean on)
public int getNameIndex()
ConstantPool index of the UTF8Entry that
describes the simple name this class is referred to in source, or
0 for anonymous classes.
public void setNameIndex(int nameIndex)
ConstantPool index of the UTF8Entry that
describes the simple name this class is referred to in source, or
0 for anonymous classes.
public String getName()
public void setName(String name)
public int getTypeIndex()
ConstantPool index of the ClassEntry that
describes this class, or 0 if none.
public void setTypeIndex(int index)
ConstantPool index of the ClassEntry that
describes this class.
public String getTypeName()
public Class getType()
public BCClass getTypeBC()
public void setType(String type)
public void setType(Class type)
public void setType(BCClass type)
public int getDeclarerIndex()
ConstantPool index of the ClassEntry that
describes the declaring class, or 0 if this class is not a member class.
public void setDeclarerIndex(int ownerIndex)
ConstantPool index of the ClassEntry that
describes the declaring class, or 0 if this class is not a member class.
public String getDeclarerName()
public Class getDeclarerType()
public BCClass getDeclarerBC()
public void setDeclarer(String type)
public void setDeclarer(Class type)
public void setDeclarer(BCClass type)
public Project getProject()
BCEntity
getProject in interface BCEntitypublic ConstantPool getPool()
BCEntity
getPool in interface BCEntitypublic ClassLoader getClassLoader()
BCEntity
getClassLoader in interface BCEntitypublic boolean isValid()
BCEntity
isValid in interface BCEntitypublic void acceptVisit(BCVisitor visit)
VisitAcceptorBCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one.
acceptVisit in interface VisitAcceptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||