|
|||||||||||
| 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 class| Method Detail |
public java.lang.Class getJavaClass()
getJavaClass in interface ClassInfopublic boolean isCompilable()
isCompilable in interface ClassInfopublic void setCompilable(boolean b)
setCompilable in interface ClassInfopublic ClassInfo getDeclaringClass()
getDeclaringClass in interface ClassInfopublic ClassInfo getAnonymousDeclaringClass()
getAnonymousDeclaringClass in interface ClassInfopublic int getModifiers()
getModifiers in interface ClassInfopublic java.lang.String getName()
getName in interface ClassInfopublic ClassInfo getSuperclass()
getSuperclass in interface ClassInfopublic ClassInfo[] getInterfaces()
getInterfaces in interface ClassInfopublic FieldInfo[] getFields()
getFields in interface ClassInfopublic ConstructorInfo[] getConstructors()
getConstructors in interface ClassInfopublic MethodInfo[] getMethods()
getMethods in interface ClassInfopublic ClassInfo[] getDeclaredClasses()
getDeclaredClasses in interface ClassInfopublic ClassInfo getArrayType()
getArrayType in interface ClassInfopublic boolean equals(java.lang.Object obj)
public boolean isInterface()
isInterface in interface ClassInfopublic boolean isArray()
isArray in interface ClassInfopublic boolean isPrimitive()
isPrimitive in interface ClassInfopublic ClassInfo getComponentType()
getComponentType in interface ClassInfojava.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 | ||||||||||