|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.bytecode.JTypeWrapper
public class JTypeWrapper
Wrapper around the java Class for a JClass.
| Constructor Summary | |
|---|---|
JTypeWrapper(JClassLoader loader,
java.lang.reflect.ParameterizedType type)
|
|
JTypeWrapper(java.lang.reflect.ParameterizedType type,
java.lang.ClassLoader loader)
|
|
| Method Summary | |
|---|---|
static JType |
create(java.lang.reflect.Type type,
java.lang.ClassLoader loader)
|
JType[] |
getActualTypeArguments()
Returns the actual type arguments. |
JClass |
getComponentType()
Returns the component for a class. |
JField[] |
getDeclaredFields()
Returns the declared fields |
JMethod[] |
getDeclaredMethods()
Returns the declared methods |
JField[] |
getFields()
Returns the fields |
JClass[] |
getInterfaces()
Returns the interfaces. |
JMethod |
getMethod(java.lang.String name,
JClass[] param)
Returns the matching method. |
JMethod[] |
getMethods()
Returns the public methods |
java.lang.String |
getName()
Returns the class name. |
java.lang.String |
getPrintName()
Returns the print name. |
JClass |
getRawType()
Returns the actual type arguments. |
JClass |
getSuperClass()
Returns the superclass. |
boolean |
isAbstract()
Returns true for an abstract class |
boolean |
isArray()
Returns true for an array class. |
boolean |
isAssignableFrom(java.lang.Class cl)
Returns true if the jClass is assignable to the class. |
boolean |
isAssignableFrom(JClass cl)
Returns true if the jClass is assignable to the class. |
boolean |
isAssignableTo(java.lang.Class cl)
Returns true if the jClass is assignable to the class. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JTypeWrapper(JClassLoader loader,
java.lang.reflect.ParameterizedType type)
public JTypeWrapper(java.lang.reflect.ParameterizedType type,
java.lang.ClassLoader loader)
| Method Detail |
|---|
public static JType create(java.lang.reflect.Type type,
java.lang.ClassLoader loader)
public java.lang.String getName()
getName in interface JTypepublic java.lang.String getPrintName()
getPrintName in interface JTypepublic JType[] getActualTypeArguments()
getActualTypeArguments in interface JTypepublic JClass getRawType()
getRawType in interface JTypepublic boolean isPrimitive()
isPrimitive in interface JTypepublic boolean isPublic()
isPublic in interface JTypepublic boolean isAbstract()
isAbstract in interface JTypepublic boolean isFinal()
isFinal in interface JTypepublic boolean isInterface()
isInterface in interface JTypepublic JClass getSuperClass()
getSuperClass in interface JTypepublic JClass[] getInterfaces()
getInterfaces in interface JTypepublic boolean isArray()
isArray in interface JTypepublic JClass getComponentType()
getComponentType in interface JTypepublic boolean isAssignableTo(java.lang.Class cl)
isAssignableTo in interface JTypepublic boolean isAssignableFrom(java.lang.Class cl)
isAssignableFrom in interface JTypepublic boolean isAssignableFrom(JClass cl)
isAssignableFrom in interface JTypepublic JMethod[] getDeclaredMethods()
getDeclaredMethods in interface JTypepublic JMethod[] getMethods()
getMethods in interface JType
public JMethod getMethod(java.lang.String name,
JClass[] param)
getMethod in interface JTypepublic JField[] getDeclaredFields()
getDeclaredFields in interface JTypepublic JField[] getFields()
getFields in interface JType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||