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, isAnnotationPresentpublic 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 JTypepublic JClass getRawType()
getRawType in interface JTypepublic abstract boolean isPrimitive()
isPrimitive in interface JTypepublic abstract boolean isPublic()
public abstract boolean isAbstract()
isAbstract in interface JTypepublic abstract boolean isFinal()
public abstract boolean isInterface()
isInterface in interface JTypepublic abstract JClass getSuperClass()
getSuperClass in interface JTypepublic abstract JClass[] getInterfaces()
getInterfaces in interface JTypepublic abstract boolean isArray()
public JClass getComponentType()
getComponentType in interface JTypepublic abstract boolean isAssignableTo(java.lang.Class cl)
isAssignableTo in interface JTypepublic abstract boolean isAssignableFrom(java.lang.Class cl)
isAssignableFrom in interface JTypepublic abstract boolean isAssignableFrom(JClass cl)
isAssignableFrom in interface JTypepublic abstract JMethod[] getDeclaredMethods()
getDeclaredMethods in interface JTypepublic abstract JMethod[] getMethods()
getMethods in interface JTypepublic abstract JMethod[] getConstructors()
public abstract JMethod getMethod(java.lang.String name, JClass[] param)
public abstract JField[] getDeclaredFields()
getDeclaredFields in interface JTypepublic abstract JField[] getFields()
public java.lang.String getPrintName()
getPrintName in interface JTypepublic java.lang.String getShortName()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object