|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.bytecode.ByteCodeElement
recoder.bytecode.ClassFile
public class ClassFile
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| Nested classes/interfaces inherited from interface recoder.abstraction.ProgramModelElement |
|---|
ProgramModelElement.LexicalOrder |
| Field Summary |
|---|
| Fields inherited from class recoder.bytecode.ByteCodeElement |
|---|
accessFlags, service |
| Fields inherited from interface recoder.abstraction.ProgramModelElement |
|---|
LEXICAL_ORDER |
| Fields inherited from interface recoder.bytecode.AccessFlags |
|---|
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
| Fields inherited from interface recoder.abstraction.ProgramModelElement |
|---|
LEXICAL_ORDER |
| Fields inherited from interface recoder.bytecode.AccessFlags |
|---|
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
| Fields inherited from interface recoder.abstraction.ProgramModelElement |
|---|
LEXICAL_ORDER |
| Fields inherited from interface recoder.bytecode.AccessFlags |
|---|
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
| Method Summary | |
|---|---|
ArrayType |
createArrayType()
|
java.util.List<Field> |
getAllFields()
Returns all visible fields that are defined in this class type or any of its supertypes. |
java.util.List<Method> |
getAllMethods()
Returns all visible methods that are defined in this class type or any of its supertypes. |
java.util.List<ClassType> |
getAllSupertypes()
Returns the list of all supertypes of this class type, in topological order, including the class type itself as first element. |
java.util.List<ClassType> |
getAllTypes()
Returns all class types that are inner types of this class type, including visible inherited types. |
java.util.List<AnnotationUseInfo> |
getAnnotations()
Returns a list of Annotations. |
ArrayType |
getArrayType()
|
java.lang.String |
getBinaryName()
Returns the binary name. |
java.util.List<ConstructorInfo> |
getConstructorInfos()
|
java.util.List<? extends Constructor> |
getConstructors()
Returns the constructors locally defined within this class type. |
ClassTypeContainer |
getContainer()
Returns the enclosing package or class type, or method. |
ClassType |
getContainingClassType()
Returns the logical parent type of this member. |
ErasedType |
getErasedType()
|
java.util.List<FieldInfo> |
getFieldInfos()
|
java.util.List<FieldInfo> |
getFields()
Returns the fields locally defined within this class type. |
java.lang.String |
getFullName()
Returns the maximal expanded name including all applicable qualifiers. |
java.lang.String |
getFullSignature()
Returns a full type signature of this type, i.e., the full name plus possible type arguments. |
java.lang.String[] |
getInnerClassNames()
|
java.lang.String[] |
getInterfaceNames()
|
java.lang.String |
getLocation()
|
java.util.List<MethodInfo> |
getMethodInfos()
|
java.util.List<Method> |
getMethods()
Returns the methods locally defined within this class type. |
Package |
getPackage()
Returns the package this element is defined in. |
java.lang.String |
getPhysicalName()
Deprecated. |
java.lang.String |
getSuperClassName()
|
java.util.List<TypeArgumentInfo> |
getSuperClassTypeArguments()
|
java.util.List<TypeArgumentInfo> |
getSuperInterfaceTypeArguments(int ifidx)
|
java.util.List<ClassType> |
getSupertypes()
Returns the list of locally declared supertypes of this class type. |
java.lang.String |
getTypeName()
|
java.util.List<TypeParameterInfo> |
getTypeParameters()
Returns the type parameters of this class type. |
java.util.List<ClassFile> |
getTypes()
Returns the class types locally defined within this container. |
boolean |
isAnnotationType()
Checks if this class type denotes an annotation type |
boolean |
isEnumType()
Checks if this class type denotes an enum type |
boolean |
isInner()
Checks if this type is an inner class, as described in JLS, 3rd edition, §8.1.3 |
boolean |
isInterface()
Checks if this class type denotes an interface (i.e. ordinary interface or annotation type). |
boolean |
isOrdinaryClass()
Checks if this class type denotes an ordinary (i.e. not an enum) class. |
boolean |
isOrdinaryInterface()
Checks if this class type denotes an ordinary (i.e. not annotation type) interface. |
void |
setTypeParameters(java.util.List<TypeParameterInfo> typeParams)
|
java.lang.String |
toString()
|
| Methods inherited from class recoder.bytecode.ByteCodeElement |
|---|
getAccessFlags, getName, getProgramModelInfo, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictFp, isSynchronized, setAccessFlags, setProgramModelInfo, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface recoder.abstraction.ClassType |
|---|
isAbstract |
| Methods inherited from interface recoder.abstraction.ProgramModelElement |
|---|
getProgramModelInfo, setProgramModelInfo |
| Methods inherited from interface recoder.NamedModelElement |
|---|
getName |
| Methods inherited from interface recoder.ModelElement |
|---|
validate |
| Methods inherited from interface recoder.abstraction.Member |
|---|
isFinal, isPrivate, isProtected, isPublic, isStatic, isStrictFp |
| Methods inherited from interface recoder.abstraction.ProgramModelElement |
|---|
getProgramModelInfo, setProgramModelInfo |
| Methods inherited from interface recoder.NamedModelElement |
|---|
getName |
| Methods inherited from interface recoder.ModelElement |
|---|
validate |
| Methods inherited from interface recoder.abstraction.ProgramModelElement |
|---|
getProgramModelInfo, setProgramModelInfo |
| Methods inherited from interface recoder.NamedModelElement |
|---|
getName |
| Methods inherited from interface recoder.ModelElement |
|---|
validate |
| Method Detail |
|---|
public ArrayType getArrayType()
getArrayType in interface Typepublic ArrayType createArrayType()
createArrayType in interface Typepublic final java.lang.String getTypeName()
getTypeName in class ByteCodeElementpublic final java.lang.String getSuperClassName()
public final java.util.List<TypeArgumentInfo> getSuperClassTypeArguments()
public final java.lang.String[] getInterfaceNames()
public final java.util.List<TypeArgumentInfo> getSuperInterfaceTypeArguments(int ifidx)
public final java.util.List<FieldInfo> getFieldInfos()
public final java.util.List<MethodInfo> getMethodInfos()
public final java.util.List<ConstructorInfo> getConstructorInfos()
public final java.lang.String[] getInnerClassNames()
public final java.lang.String getFullName()
ProgramModelElement
getFullName in interface ProgramModelElementpublic java.lang.String getBinaryName()
ProgramModelElement
getBinaryName in interface ProgramModelElement@Deprecated public final java.lang.String getPhysicalName()
getBinaryName() instead.
getBinaryNamepublic final ClassTypeContainer getContainer()
ClassTypeContainer
getContainer in interface ClassTypeContainerpublic ClassType getContainingClassType()
Member
getContainingClassType in interface Memberpublic final Package getPackage()
ClassTypeContainer
getPackage in interface ClassTypeContainerpublic final boolean isInterface()
ClassType
isInterface in interface ClassTypetrue if this object represents an interface,
false otherwise.public boolean isOrdinaryInterface()
ClassType
isOrdinaryInterface in interface ClassTypetrue if this object represents an ordinary interface,
false otherwise.public boolean isAnnotationType()
ClassType
isAnnotationType in interface ClassTypetrue if this object represents an annotation type,
false otherwisepublic boolean isEnumType()
ClassType
isEnumType in interface ClassTypetrue if this object represents an enum type,
false otherwisepublic boolean isOrdinaryClass()
ClassType
isOrdinaryClass in interface ClassTypetrue if this object represents an ordinary class type,
false otherwisepublic final java.util.List<ClassType> getSupertypes()
ClassType
getSupertypes in interface ClassTypepublic final java.util.List<ClassType> getAllSupertypes()
ClassType
getAllSupertypes in interface ClassTypepublic final java.util.List<FieldInfo> getFields()
ClassType
getFields in interface ClassTypepublic final java.util.List<Field> getAllFields()
ClassType
getAllFields in interface ClassTypepublic final java.util.List<Method> getMethods()
ClassType
getMethods in interface ClassTypepublic final java.util.List<Method> getAllMethods()
ClassType
getAllMethods in interface ClassTypepublic final java.util.List<? extends Constructor> getConstructors()
ClassType
getConstructors in interface ClassTypepublic final java.util.List<ClassFile> getTypes()
ClassTypeContainer
getTypes in interface ClassTypeContainerpublic final java.util.List<ClassType> getAllTypes()
ClassType
getAllTypes in interface ClassTypeClassType.getAllSupertypes()public java.util.List<AnnotationUseInfo> getAnnotations()
Member
getAnnotations in interface Memberpublic java.util.List<TypeParameterInfo> getTypeParameters()
ClassType
getTypeParameters in interface ClassTypepublic void setTypeParameters(java.util.List<TypeParameterInfo> typeParams)
public java.lang.String getLocation()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getFullSignature()
TypegetFullName() on primitive types.
getFullSignature in interface Typepublic ErasedType getErasedType()
getErasedType in interface ClassTypepublic boolean isInner()
ClassType
isInner in interface ClassType
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||