|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.classfile.TypeReference
edu.rit.classfile.ArrayOrClassReference
edu.rit.classfile.ClassReference
edu.rit.classfile.ClassDescription
public abstract class ClassDescription
Class ClassDescription encapsulates the information needed both to refer to and to describe a class or interface. This includes the class's fully-qualified name, superclass, superinterfaces, access flags, fields, and subroutines (methods, constructors, and class initializer). In the documentation below, the term "described class" means "the class or interface described by this class description object."
Method Summary | |
---|---|
List |
getFields()
Returns a list of the described class's fields. |
List |
getSubroutines()
Returns a list of the described class's subroutines (methods, constructors, and class initializers). |
ClassReference |
getSuperclass()
Returns the described class's superclass. |
List |
getSuperinterfaces()
Returns a list of the described class's superinterfaces. |
boolean |
isAbstract()
Returns true if the described class is abstract, that is, cannot be directly instantiated. |
boolean |
isFinal()
Returns true if the described class is final, that is, cannot be subclassed. |
boolean |
isInterface()
Returns true if the described class is an interface. |
boolean |
isPublic()
Returns true if the described class is public, that is, can be accessed from outside its package. |
Methods inherited from class edu.rit.classfile.ClassReference |
---|
getClassName, getSimpleName |
Methods inherited from class edu.rit.classfile.ArrayOrClassReference |
---|
getClassInternalName |
Methods inherited from class edu.rit.classfile.TypeReference |
---|
equals, getTypeDescriptor, getWordCount, hashCode, read, toString, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean isPublic()
public boolean isFinal()
public boolean isInterface()
public boolean isAbstract()
public ClassReference getSuperclass()
public List getSuperinterfaces()
ClassReference
. The superinterfaces appear in the
list in the order they were declared. If there are no superinterfaces,
the returned list's size is zero.
public List getFields()
FieldDescription
. The fields appear in the list in the
order they were declared. If there are no fields, the returned list's
size is zero.
public List getSubroutines()
SubroutineDescription
. The subroutines appear in
the list in the order they were declared. If there are no subroutines,
the returned list's size is zero.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |