public abstract class JClass extends JAnnotationObject implements JType
Modifier and Type | Field and Description |
---|---|
static JClass |
BOOLEAN |
static JClass |
BYTE |
static JClass |
CHAR |
static JClass |
DOUBLE |
static JClass |
FLOAT |
static JClass |
INT |
static JClass |
LONG |
static JClass |
OBJECT |
static JClass |
SHORT |
static JClass |
STRING |
static JClass |
VOID |
Constructor and Description |
---|
JClass() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if equals.
|
JType[] |
getActualTypeArguments()
Returns the parameter types.
|
JClass |
getComponentType()
Returns the component for a class.
|
JMethod |
getConstructor(JClass[] param)
Returns a matching constructor.
|
abstract JMethod[] |
getConstructors()
Returns the constructors.
|
abstract JField[] |
getDeclaredFields()
Returns the declared fields
|
abstract JMethod[] |
getDeclaredMethods()
Returns the declared methods
|
abstract JField[] |
getFields()
Returns the fields
|
abstract JClass[] |
getInterfaces()
Returns the interfaces.
|
java.lang.Class |
getJavaClass()
Returns the Java class.
|
abstract JMethod |
getMethod(java.lang.String name,
JClass[] param)
Returns the matching method.
|
abstract JMethod[] |
getMethods()
Returns the public methods
|
abstract java.lang.String |
getName()
Returns the class name.
|
java.lang.String |
getPrintName()
Returns the printable name.
|
JClass |
getRawType()
Returns the raw type.
|
java.lang.String |
getShortName()
Returns a printable version of a class.
|
java.lang.String |
getSimpleName()
Returns the class name.
|
abstract JClass |
getSuperClass()
Returns the superclass.
|
int |
hashCode()
Returns the hash code
|
abstract boolean |
isAbstract()
Returns true for an abstract class
|
abstract boolean |
isArray()
Returns true for an array class.
|
abstract boolean |
isAssignableFrom(java.lang.Class cl)
Returns true if the jClass is assignable to the class.
|
abstract boolean |
isAssignableFrom(JClass cl)
Returns true if the jClass is assignable to the class.
|
abstract boolean |
isAssignableTo(java.lang.Class cl)
Returns true if the jClass is assignable to the class.
|
abstract boolean |
isFinal()
Returns true for a final class
|
abstract boolean |
isInterface()
Returns true for an interface
|
abstract boolean |
isPrimitive()
Returns true for a primitive class.
|
abstract boolean |
isPublic()
Returns true for a public class.
|
java.lang.String |
toString() |
getAnnotation, getAnnotation, getDeclaredAnnotations, isAnnotationPresent, isAnnotationPresent
public static final JClass VOID
public static final JClass BOOLEAN
public static final JClass BYTE
public static final JClass SHORT
public static final JClass INT
public static final JClass LONG
public static final JClass FLOAT
public static final JClass DOUBLE
public static final JClass CHAR
public static final JClass STRING
public static final JClass OBJECT
public abstract java.lang.String getName()
public java.lang.String getSimpleName()
public java.lang.Class getJavaClass()
public JType[] getActualTypeArguments()
getActualTypeArguments
in interface JType
public JClass getRawType()
getRawType
in interface JType
public abstract boolean isPrimitive()
isPrimitive
in interface JType
public abstract boolean isPublic()
public abstract boolean isAbstract()
isAbstract
in interface JType
public abstract boolean isFinal()
public abstract boolean isInterface()
isInterface
in interface JType
public abstract JClass getSuperClass()
getSuperClass
in interface JType
public abstract JClass[] getInterfaces()
getInterfaces
in interface JType
public abstract boolean isArray()
public JClass getComponentType()
getComponentType
in interface JType
public abstract boolean isAssignableTo(java.lang.Class cl)
isAssignableTo
in interface JType
public abstract boolean isAssignableFrom(java.lang.Class cl)
isAssignableFrom
in interface JType
public abstract boolean isAssignableFrom(JClass cl)
isAssignableFrom
in interface JType
public abstract JMethod[] getDeclaredMethods()
getDeclaredMethods
in interface JType
public abstract JMethod[] getMethods()
getMethods
in interface JType
public abstract JMethod[] getConstructors()
public abstract JMethod getMethod(java.lang.String name, JClass[] param)
public abstract JField[] getDeclaredFields()
getDeclaredFields
in interface JType
public abstract JField[] getFields()
public java.lang.String getPrintName()
getPrintName
in interface JType
public java.lang.String getShortName()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object