|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.codemodel.JType
com.sun.codemodel.JClass
public abstract class JClass
A Java class.
Constructor Summary | |
---|---|
protected |
JClass(JCodeModel _owner)
|
Method Summary | |
---|---|
abstract JClass |
_extends()
Gets the super class of this class. |
abstract java.util.Iterator |
_implements()
Iterates all interfaces directly implemented by this class/interface. |
abstract JPackage |
_package()
Gets the package to which this class belongs. |
JClass |
array()
Create an array type from this type. |
JExpression |
dotclass()
|
java.lang.String |
fullName()
Gets the fully qualified name of this class. |
void |
generate(JFormatter f)
|
JPrimitiveType |
getPrimitiveType()
If this class represents one of the wrapper classes defined in the java.lang package, return the corresponding primitive type. |
boolean |
isAssignableFrom(JClass derived)
Checks the relationship between two classes. |
abstract boolean |
isInterface()
Checks if this object represents an interface. |
abstract java.lang.String |
name()
Gets the name of this class. |
JCodeModel |
owner()
Gets the JCodeModel object to which this object belongs. |
JInvocation |
staticInvoke(JMethod method)
Generates a static method invocation. |
JInvocation |
staticInvoke(java.lang.String method)
Generates a static method invocation. |
JFieldRef |
staticRef(JVar field)
Static field reference. |
JFieldRef |
staticRef(java.lang.String field)
Static field reference. |
java.lang.String |
toString()
|
Methods inherited from class com.sun.codemodel.JType |
---|
binaryName, elementType, isArray, isPrimitive, isReference, parse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected JClass(JCodeModel _owner)
Method Detail |
---|
public abstract java.lang.String name()
name
in class JType
java.lang.String
.public java.lang.String fullName()
fullName
in class JType
public abstract JPackage _package()
public final JCodeModel owner()
owner
in class JType
public abstract JClass _extends()
public abstract java.util.Iterator _implements()
JClass
objects that represents those interfaces
implemented by this object.public abstract boolean isInterface()
public JPrimitiveType getPrimitiveType()
public final boolean isAssignableFrom(JClass derived)
This method works in the same way as Class.isAssignableFrom(java.lang.Class)
works. For example, baseClass.isAssignableFrom(derivedClass)==true.
public JClass array()
JType
array
in class JType
public java.lang.String toString()
toString
in class JType
public final JExpression dotclass()
public final JInvocation staticInvoke(JMethod method)
public final JInvocation staticInvoke(java.lang.String method)
public final JFieldRef staticRef(java.lang.String field)
public final JFieldRef staticRef(JVar field)
public void generate(JFormatter f)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |