|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkoala.dynamicjava.classinfo.JavaClassInfo
The instances of this class provides informations about class compiled to JVM bytecode.
Field Summary | |
static JavaClassInfo |
BOOLEAN
The boolean info |
static JavaClassInfo |
CLASS
The Class info |
static JavaClassInfo |
DOUBLE
The double info |
static JavaClassInfo |
FLOAT
The float info |
static JavaClassInfo |
INT
The int info |
static JavaClassInfo |
LONG
The long info |
static JavaClassInfo |
STRING
The string info |
Constructor Summary | |
JavaClassInfo(java.lang.Class c)
Creates a new class info |
|
JavaClassInfo(JavaClassInfo c)
Creates a new class info representing an array |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one |
ClassInfo |
getAnonymousDeclaringClass()
Returns the declaring class of an anonymous class or null |
ClassInfo |
getArrayType()
Returns the array type that contains elements of this class |
ClassInfo |
getComponentType()
Returns the component type of this array type |
ConstructorInfo[] |
getConstructors()
Returns the constructor infos for the current class |
ClassInfo[] |
getDeclaredClasses()
Returns the classes and interfaces declared as members of the class represented by this ClassInfo object. |
ClassInfo |
getDeclaringClass()
Returns the declaring class or null |
FieldInfo[] |
getFields()
Returns the field infos for the current class |
ClassInfo[] |
getInterfaces()
Returns the class infos of the interfaces implemented by the class this info represents |
java.lang.Class |
getJavaClass()
Returns the underlying class |
MethodInfo[] |
getMethods()
Returns the method infos for the current class |
int |
getModifiers()
Returns the modifiers flags |
java.lang.String |
getName()
Returns the fully qualified name of the underlying class |
ClassInfo |
getSuperclass()
Returns the class info of the superclass of the class represented by this info |
boolean |
isArray()
Whether this object represents an array |
boolean |
isCompilable()
Whether the underlying class needs compilation |
boolean |
isInterface()
Whether this object represents an interface |
boolean |
isPrimitive()
Whether this object represents a primitive type |
void |
setCompilable(boolean b)
Sets the compilable property |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final JavaClassInfo BOOLEAN
public static final JavaClassInfo INT
public static final JavaClassInfo LONG
public static final JavaClassInfo FLOAT
public static final JavaClassInfo DOUBLE
public static final JavaClassInfo STRING
public static final JavaClassInfo CLASS
Constructor Detail |
public JavaClassInfo(java.lang.Class c)
c
- the java classpublic JavaClassInfo(JavaClassInfo c)
c
- the java classMethod Detail |
public java.lang.Class getJavaClass()
getJavaClass
in interface ClassInfo
public boolean isCompilable()
isCompilable
in interface ClassInfo
public void setCompilable(boolean b)
setCompilable
in interface ClassInfo
public ClassInfo getDeclaringClass()
getDeclaringClass
in interface ClassInfo
public ClassInfo getAnonymousDeclaringClass()
getAnonymousDeclaringClass
in interface ClassInfo
public int getModifiers()
getModifiers
in interface ClassInfo
public java.lang.String getName()
getName
in interface ClassInfo
public ClassInfo getSuperclass()
getSuperclass
in interface ClassInfo
public ClassInfo[] getInterfaces()
getInterfaces
in interface ClassInfo
public FieldInfo[] getFields()
getFields
in interface ClassInfo
public ConstructorInfo[] getConstructors()
getConstructors
in interface ClassInfo
public MethodInfo[] getMethods()
getMethods
in interface ClassInfo
public ClassInfo[] getDeclaredClasses()
getDeclaredClasses
in interface ClassInfo
public ClassInfo getArrayType()
getArrayType
in interface ClassInfo
public boolean equals(java.lang.Object obj)
public boolean isInterface()
isInterface
in interface ClassInfo
public boolean isArray()
isArray
in interface ClassInfo
public boolean isPrimitive()
isPrimitive
in interface ClassInfo
public ClassInfo getComponentType()
getComponentType
in interface ClassInfo
java.lang.IllegalStateException
- if this type do not represent an array
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |