|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.bytecode.JAnnotationObject
com.caucho.bytecode.JClass
com.caucho.bytecode.JClassWrapper
public class JClassWrapper
Wrapper around the java Class for a JClass.
| Field Summary |
|---|
| Fields inherited from class com.caucho.bytecode.JClass |
|---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, OBJECT, SHORT, STRING, VOID |
| Constructor Summary | |
|---|---|
JClassWrapper(java.lang.Class cl,
JClassLoader loader)
|
|
| Method Summary | |
|---|---|
static JClassWrapper |
create(java.lang.Class cl)
|
JAnnotation |
getAnnotation(java.lang.String name)
Returns the annotation. |
JClassLoader |
getClassLoader()
Returns the loader. |
JClass |
getComponentType()
Returns the component type for a primitive class. |
JMethod[] |
getConstructors()
Returns the public constructors. |
JAnnotation[] |
getDeclaredAnnotations()
Returns the annotation. |
JField[] |
getDeclaredFields()
Returns the declared methods. |
JMethod[] |
getDeclaredMethods()
Returns the declared methods. |
JField[] |
getFields()
Returns the declared methods. |
JClass[] |
getInterfaces()
Returns the superclass |
java.lang.Class |
getJavaClass()
Returns the Java class. |
JMethod |
getMethod(java.lang.String name,
JClass[] types)
Returns the matching methods. |
JMethod[] |
getMethods()
Returns the public methods. |
java.lang.String |
getName()
Returns the class name. |
JClass |
getSuperClass()
Returns the superclass |
java.lang.Class |
getWrappedClass()
Returns the class. |
boolean |
isAbstract()
Returns true for an abstract class |
boolean |
isArray()
Returns true for a primitive class. |
boolean |
isAssignableFrom(java.lang.Class cl)
Returns true for assignability. |
boolean |
isAssignableFrom(JClass cl)
Returns true for assignability. |
boolean |
isAssignableTo(java.lang.Class cl)
Returns true for assignability. |
boolean |
isFinal()
Returns true for a final class |
boolean |
isInterface()
Returns true for an interface |
boolean |
isPrimitive()
Returns true for a primitive class. |
boolean |
isPublic()
Returns true for a public class. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.bytecode.JClass |
|---|
equals, getActualTypeArguments, getConstructor, getPrintName, getRawType, getShortName, getSimpleName, hashCode |
| Methods inherited from class com.caucho.bytecode.JAnnotationObject |
|---|
getAnnotation, isAnnotationPresent, isAnnotationPresent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JClassWrapper(java.lang.Class cl,
JClassLoader loader)
| Method Detail |
|---|
public static JClassWrapper create(java.lang.Class cl)
public java.lang.String getName()
getName in interface JTypegetName in class JClasspublic java.lang.Class getJavaClass()
getJavaClass in class JClasspublic java.lang.Class getWrappedClass()
public JClassLoader getClassLoader()
public boolean isPrimitive()
isPrimitive in interface JTypeisPrimitive in class JClasspublic boolean isArray()
isArray in interface JTypeisArray in class JClasspublic JClass getComponentType()
getComponentType in interface JTypegetComponentType in class JClasspublic boolean isPublic()
isPublic in interface JTypeisPublic in class JClasspublic boolean isAbstract()
isAbstract in interface JTypeisAbstract in class JClasspublic boolean isFinal()
isFinal in interface JTypeisFinal in class JClasspublic boolean isInterface()
isInterface in interface JTypeisInterface in class JClasspublic boolean isAssignableTo(java.lang.Class cl)
isAssignableTo in interface JTypeisAssignableTo in class JClasspublic boolean isAssignableFrom(java.lang.Class cl)
isAssignableFrom in interface JTypeisAssignableFrom in class JClasspublic boolean isAssignableFrom(JClass cl)
isAssignableFrom in interface JTypeisAssignableFrom in class JClasspublic JClass getSuperClass()
getSuperClass in interface JTypegetSuperClass in class JClasspublic JClass[] getInterfaces()
getInterfaces in interface JTypegetInterfaces in class JClasspublic JMethod[] getDeclaredMethods()
getDeclaredMethods in interface JTypegetDeclaredMethods in class JClasspublic JMethod[] getMethods()
getMethods in interface JTypegetMethods in class JClass
public JMethod getMethod(java.lang.String name,
JClass[] types)
getMethod in interface JTypegetMethod in class JClasspublic JMethod[] getConstructors()
getConstructors in class JClasspublic JField[] getDeclaredFields()
getDeclaredFields in interface JTypegetDeclaredFields in class JClasspublic JField[] getFields()
getFields in interface JTypegetFields in class JClasspublic JAnnotation getAnnotation(java.lang.String name)
getAnnotation in class JAnnotationObjectpublic JAnnotation[] getDeclaredAnnotations()
getDeclaredAnnotations in class JAnnotationObjectpublic java.lang.String toString()
toString in class JClass
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||