| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectReflWrap.ClassInfo
public class ClassInfo
Wrapper around java.lang.Class Retrieve information about classes at runtime.
| Field Summary | |
|---|---|
| private  java.lang.String | fqcnFully qualified name of the class | 
| private  java.lang.Class | klasseThe underlying class | 
| private  java.lang.reflect.Method[] | mMethods in original order | 
| private  java.lang.reflect.Method[] | m_ordMethods in correct order according to the interface definition | 
| private  java.lang.String | namePrettified name of the class | 
| Constructor Summary | |
|---|---|
| ClassInfo(java.lang.Class klasse)Constructor from an available Class object | |
| ClassInfo(java.lang.String FQCN)Constructor from a fully-qualified classname. | |
| Method Summary | ||
|---|---|---|
|  java.lang.Class | _class()Get the underlying Class object | |
|  java.lang.String | _package()Get the name of the package this class is part of | |
|  java.lang.Class | arrayType()Retrieve the base type of an array | |
|  java.lang.String | clstr()Retrieve a String of the code to generate a new object of this class. | |
| static java.lang.String | cncs2java(java.lang.String name) | |
|  java.lang.reflect.Constructor[] | constructors()Get all constructors for this class | |
| static void | dumpMethods(java.lang.Class klasse)Debugging method which prints all declared methods to the screen | |
|  boolean | equals(java.lang.Object data)Compare ClassInfo objects | |
|  java.lang.reflect.Field[] | fields()Get the members of this class | |
|  java.lang.String | filename()Get the filename of this class | |
|  java.lang.String | fqcn()Get the fully-qualified classname of this class | |
|  java.lang.String | fqcncs()Get the fully-qualified classname in C++ notation | |
|  java.lang.String | fqsuperclass()Get the fully-qualified name of this class' superclass | |
|  boolean | hasMethod(java.lang.String name)Check whether a certain method was declared in this class | |
|  boolean | implementing(java.lang.String klass)Check if a certain interface is implemented by this class | |
|  java.lang.Class[] | interfaces()Get all interfaces which are implemented by this class | |
| 
 | isAnot(C klass)Checks if a certain Annotation is present | |
|  boolean | isArray()Check whether or not this Class is an array type | |
|  java.lang.reflect.Method[] | meth_here()Get only the methods which are declared in this class | |
|  java.util.LinkedList<java.lang.String> | methodList()Debugging helper | |
|  java.lang.reflect.Method[] | methods()Get the all methods this class provides | |
|  java.lang.String | name()Get the simple name of the class | |
| private static java.lang.reflect.Method[] | orderMethods(java.lang.reflect.Method[] old_m)Orders methods according to static FunctionIDs (FIDs) | |
|  java.lang.Class | sclass()Get the class object of the superclass | |
|  java.lang.String | superclass()Get the name of this class' superclass | |
|  java.lang.String | toString()Get a string representation of this object | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
private java.lang.Class klasse
private java.lang.String name
private java.lang.String fqcn
private java.lang.reflect.Method[] m
private java.lang.reflect.Method[] m_ord
| Constructor Detail | 
|---|
public ClassInfo(java.lang.String FQCN)
          throws java.lang.ClassNotFoundException
FQCN - fully-qualified classname
java.lang.ClassNotFoundExceptionpublic ClassInfo(java.lang.Class klasse)
klasse - Class object| Method Detail | 
|---|
private static java.lang.reflect.Method[] orderMethods(java.lang.reflect.Method[] old_m)
old_m - Array of all available methods in this class
public <C extends java.lang.Class<? extends java.lang.annotation.Annotation>> boolean isAnot(C klass)
klass - Requested Annotation
public java.lang.String fqcn()
public java.lang.String fqcncs()
public static java.lang.String cncs2java(java.lang.String name)
public java.lang.String filename()
public java.lang.String _package()
public java.lang.String name()
public java.lang.Class _class()
public java.lang.reflect.Method[] methods()
public java.lang.reflect.Method[] meth_here()
public java.lang.reflect.Constructor[] constructors()
public java.lang.Class[] interfaces()
public boolean implementing(java.lang.String klass)
klass - Fully-qualified classname of the interface
public java.lang.String superclass()
public java.lang.String fqsuperclass()
public java.lang.Class sclass()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.reflect.Field[] fields()
public static void dumpMethods(java.lang.Class klasse)
klasse - Requested classpublic java.lang.Class arrayType()
public java.lang.String clstr()
public boolean equals(java.lang.Object data)
equals in class java.lang.Objectdata - ClassInfo object
public boolean isArray()
public java.util.LinkedList<java.lang.String> methodList()
public boolean hasMethod(java.lang.String name)
name - Name of the method
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||