|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.codemodel.JType
public abstract class JType
JType constants and type factories.
Constructor Summary | |
---|---|
JType()
|
Method Summary | |
---|---|
abstract JClass |
array()
Create an array type from this type. |
java.lang.String |
binaryName()
Gets the binary name of the type. |
JType |
elementType()
|
abstract java.lang.String |
fullName()
Gets the full name of the type |
void |
generate(JFormatter f)
|
boolean |
isArray()
Tell whether or not this is an array type. |
boolean |
isPrimitive()
Tell whether or not this is a built-in primitive type, such as int or void. |
boolean |
isReference()
Returns true if this is a referenced type. |
abstract java.lang.String |
name()
Gets the name of this type. |
abstract JCodeModel |
owner()
Gets the owner code model object. |
static JPrimitiveType |
parse(JCodeModel codeModel,
java.lang.String typeName)
Obtains a reference to the primitive type object from a type name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JType()
Method Detail |
---|
public static JPrimitiveType parse(JCodeModel codeModel, java.lang.String typeName)
public abstract JCodeModel owner()
public abstract java.lang.String fullName()
public java.lang.String binaryName()
http://java.sun.com/docs/books/jls/third_edition/html/binaryComp.html#44909
public abstract java.lang.String name()
public abstract JClass array()
public boolean isArray()
public boolean isPrimitive()
public final boolean isReference()
public JType elementType()
public java.lang.String toString()
toString
in class java.lang.Object
public void generate(JFormatter f)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |