|
||||||||||
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
public abstract class JClass
Represents an introspected java class.
Field Summary | |
---|---|
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 Summary | |
---|---|
JClass()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class com.caucho.bytecode.JAnnotationObject |
---|
getAnnotation, getAnnotation, getDeclaredAnnotations, isAnnotationPresent, isAnnotationPresent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public JClass()
Method Detail |
---|
public abstract java.lang.String getName()
getName
in interface JType
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()
isPublic
in interface JType
public abstract boolean isAbstract()
isAbstract
in interface JType
public abstract boolean isFinal()
isFinal
in interface JType
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()
isArray
in interface JType
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 JMethod getConstructor(JClass[] param)
public abstract JMethod getMethod(java.lang.String name, JClass[] param)
getMethod
in interface JType
public abstract JField[] getDeclaredFields()
getDeclaredFields
in interface JType
public abstract JField[] getFields()
getFields
in interface JType
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |