|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of JType in com.sun.codemodel |
---|
Subclasses of JType in com.sun.codemodel | |
---|---|
class |
JArrayClass
Array class. |
class |
JClass
A Java class. |
class |
JDefinedClass
A generated Java class. |
class |
JNullType
Special class object that represents the type of "null". |
class |
JPrimitiveType
Java built-in primitive types. |
Methods in com.sun.codemodel that return JType | |
---|---|
JType |
JType.elementType()
|
JType |
JArrayClass.elementType()
|
JType[] |
JMethod.listParamTypes()
Returns all the parameter types in an array. |
JType |
JVar.type()
Return the type of this variable. |
JType |
JMethod.type()
Returns the return type. |
Methods in com.sun.codemodel with parameters of type JType | |
---|---|
static JExpression |
JOp._instanceof(JExpression left,
JType right)
|
JExpression |
JExpressionImpl._instanceof(JType right)
|
JExpression |
JExpression._instanceof(JType right)
|
static JInvocation |
JExpr._new(JType t)
|
static JCast |
JExpr.cast(JType type,
JExpression expr)
|
JVar |
JBlock.decl(int mods,
JType type,
java.lang.String name,
JExpression init)
Adds a local variable declaration to this block |
JVar |
JBlock.decl(JType type,
java.lang.String name)
Adds a local variable declaration to this block |
JVar |
JBlock.decl(JType type,
java.lang.String name,
JExpression init)
Adds a local variable declaration to this block |
static JExpression |
JExpr.dotclass(JType t)
|
JFieldVar |
JDefinedClass.field(int mods,
JType type,
java.lang.String name)
Adds a field to the list of field members of this JDefinedClass. |
JFieldVar |
JDefinedClass.field(int mods,
JType type,
java.lang.String name,
JExpression init)
Adds a field to the list of field members of this JDefinedClass. |
JMethod |
JDefinedClass.getConstructor(JType[] argTypes)
Looks for a method that has the specified method signature and return it. |
JMethod |
JDefinedClass.getMethod(java.lang.String name,
JType[] argTypes)
Looks for a method that has the specified method signature and return it. |
boolean |
JMethod.hasSignature(JType[] argTypes)
Returns true if the method has the specified signature. |
JVar |
JForLoop.init(int mods,
JType type,
java.lang.String var,
JExpression e)
|
JVar |
JForLoop.init(JType type,
java.lang.String var,
JExpression e)
|
JMethod |
JDefinedClass.method(int mods,
JType type,
java.lang.String name)
Add a method to the list of method members of this JDefinedClass instance. |
static JArray |
JExpr.newArray(JType type)
|
static JArray |
JExpr.newArray(JType type,
int size)
|
static JArray |
JExpr.newArray(JType type,
JExpression size)
|
JVar |
JMethod.param(int mods,
JType type,
java.lang.String name)
Add the specified variable to the list of parameters for this method signature. |
JVar |
JMethod.param(JType type,
java.lang.String name)
|
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |