Constructor and Description |
---|
JClassWrapper(java.lang.Class cl,
JClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
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() |
equals, getActualTypeArguments, getConstructor, getPrintName, getRawType, getShortName, getSimpleName, hashCode
getAnnotation, isAnnotationPresent, isAnnotationPresent
public JClassWrapper(java.lang.Class cl, JClassLoader loader)
public static JClassWrapper create(java.lang.Class cl)
public java.lang.String getName()
public java.lang.Class getJavaClass()
getJavaClass
in class JClass
public java.lang.Class getWrappedClass()
public JClassLoader getClassLoader()
public boolean isPrimitive()
isPrimitive
in interface JType
isPrimitive
in class JClass
public boolean isArray()
public JClass getComponentType()
getComponentType
in interface JType
getComponentType
in class JClass
public boolean isPublic()
public boolean isAbstract()
isAbstract
in interface JType
isAbstract
in class JClass
public boolean isFinal()
public boolean isInterface()
isInterface
in interface JType
isInterface
in class JClass
public boolean isAssignableTo(java.lang.Class cl)
isAssignableTo
in interface JType
isAssignableTo
in class JClass
public boolean isAssignableFrom(java.lang.Class cl)
isAssignableFrom
in interface JType
isAssignableFrom
in class JClass
public boolean isAssignableFrom(JClass cl)
isAssignableFrom
in interface JType
isAssignableFrom
in class JClass
public JClass getSuperClass()
getSuperClass
in interface JType
getSuperClass
in class JClass
public JClass[] getInterfaces()
getInterfaces
in interface JType
getInterfaces
in class JClass
public JMethod[] getDeclaredMethods()
getDeclaredMethods
in interface JType
getDeclaredMethods
in class JClass
public JMethod[] getMethods()
getMethods
in interface JType
getMethods
in class JClass
public JMethod getMethod(java.lang.String name, JClass[] types)
public JMethod[] getConstructors()
getConstructors
in class JClass
public JField[] getDeclaredFields()
getDeclaredFields
in interface JType
getDeclaredFields
in class JClass
public JField[] getFields()
public JAnnotation getAnnotation(java.lang.String name)
getAnnotation
in class JAnnotationObject
public JAnnotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in class JAnnotationObject