|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.janino.IClass
|
+--net.janino.ReflectionIClass
An implementation of IClass using "java.lang.reflect".
| Inner classes inherited from class net.janino.IClass |
IClass.IConstructor, IClass.IField, IClass.IInvocable, IClass.IMember, IClass.IMethod |
| Field Summary | |
(package private) static java.lang.String |
cvs_header
|
| Fields inherited from class net.janino.IClass |
BOOLEAN, BYTE, CHAR, CLASS, DOUBLE, ERROR, FLOAT, INT, LONG, OBJECT, PACKAGE, PRIVATE, PROTECTED, PUBLIC, RUNTIME_EXCEPTION, SHORT, STRING, THROWABLE, VOID |
| Method Summary | |
static IClass |
fromClass(java.lang.Class clazz)
|
IClass |
getComponentType()
Returns the component type of the array. Returns "null" for classes, interfaces, primitive types and "void". |
IClass[] |
getDeclaredIClasses()
Returns the classes and interfaces declared as members of the class (but not inherited classes and interfaces). Returns an empty array for an array, primitive type or "void". |
IClass.IConstructor[] |
getDeclaredIConstructors()
Returns all the constructors declared by the class represented by the type. |
IClass.IField[] |
getDeclaredIFields()
Returns the fields of a class or interface (but not inherited fields). Returns an empty array for an array, primitive type or "void". |
IClass.IMethod[] |
getDeclaredIMethods()
Returns the methods of the class or interface (but not inherited methods). Returns an empty array for an array, primitive type or "void". |
java.lang.String |
getDescriptor()
Returns the field descriptor for the type as defined by JVMS 4.3.2. |
IClass[] |
getInterfaces()
Returns the interfaces implemented by the class. Returns the superinterfaces of the interface. Returns "Cloneable" and "Serializable" for arrays. Returns an empty array for primitive types and "void". |
IClass |
getSuperclass()
Returns the superclass of the class. Returns "null" for class "Object", interfaces, arrays, primitive types and "void". |
boolean |
isArray()
Returns "true" if this type represents an array. |
boolean |
isInterface()
Returns "true" if this type represents an interface. |
boolean |
isPrimitive()
Returns "true" if this type represents a primitive type or "void". |
boolean |
isPrimitiveNumeric()
Returns "true" if this type represents "byte", "short", "int", "long", "float" or "double". |
java.lang.String |
toString()
|
| Methods inherited from class net.janino.IClass |
getArrayType, isAssignableFrom |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
static final java.lang.String cvs_header
| Method Detail |
public IClass.IConstructor[] getDeclaredIConstructors()
IClassgetDeclaredIConstructors in class IClasspublic IClass.IMethod[] getDeclaredIMethods()
IClassgetDeclaredIMethods in class IClasspublic IClass.IField[] getDeclaredIFields()
IClassgetDeclaredIFields in class IClasspublic IClass[] getDeclaredIClasses()
IClassgetDeclaredIClasses in class IClasspublic IClass getSuperclass()
IClassgetSuperclass in class IClasspublic IClass[] getInterfaces()
IClassgetInterfaces in class IClasspublic java.lang.String getDescriptor()
IClassgetDescriptor in class IClasspublic boolean isInterface()
IClassisInterface in class IClasspublic boolean isArray()
IClassisArray in class IClasspublic IClass getComponentType()
IClassgetComponentType in class IClasspublic boolean isPrimitive()
IClassisPrimitive in class IClasspublic boolean isPrimitiveNumeric()
IClassisPrimitiveNumeric in class IClasspublic static IClass fromClass(java.lang.Class clazz)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||