Uses of Class
com.sun.codemodel.JType
Packages that use JType
-
Uses of JType in com.sun.codemodel
Subclasses of JType in com.sun.codemodelModifier and TypeClassDescription(package private) class
Anonymous class quick hack.(package private) final class
Array class.class
Represents a Java reference type, such as a class, an interface, an enum, an array type, a parameterized type.private class
References to existing classes.class
A generated Java class/interface/enum/....(package private) final class
A specialJClass
that represents an unknown class (except its name.)(package private) class
Represents X<Y>.final class
Special class object that represents the type of "null".final class
Java built-in primitive types.final class
Type variable used to declare generics.(package private) final class
Represents a wildcard type like "? extends Foo".Fields in com.sun.codemodel declared as JTypeModifier and TypeFieldDescriptionprivate final JType
JArrayClass.componentType
private final JType
JArray.type
private final JType
JCast.type
JType to which the expression is to be cast.private final JType
JForEach.type
private JType
JInvocation.type
If isConstructor==true, this field keeps the type to be created.private JType
JMethod.type
Return type for this methodprivate JType
JVar.type
JType of the variableMethods in com.sun.codemodel that return JTypeModifier and TypeMethodDescriptionJArrayClass.elementType()
JType.elementType()
If this is an array, returns the component type of the array.JType.erasure()
Returns the erasure of this type.JType[]
JMethod.listParamTypes()
Returns all the parameter types in an array.JMethod.listVarParamType()
Returns the varags parameter type.Obtains a type object from a type name.JMethod.type()
Returns the return type.JVar.type()
Return the type of this variable.Sets the type of this variable.JClass.unboxify()
JPrimitiveType.unboxify()
Deprecated.abstract JType
JType.unboxify()
If this class is a wrapper type for a primitive, return the primitive type.Methods in com.sun.codemodel with parameters of type JTypeModifier and TypeMethodDescriptionJExpression._instanceof
(JType right) Returns "[this] instanceof [right]"final JExpression
JExpressionImpl._instanceof
(JType right) static JExpression
JOp._instanceof
(JExpression left, JType right) static JInvocation
static JCast
JExpr.cast
(JType type, JExpression expr) int
Compare two JTypes by FQCN, giving sorting precedence to types that belong to packages java and javax over all others.JBlock.decl
(int mods, JType type, String name, JExpression init) Adds a local variable declaration to this blockAdds a local variable declaration to this blockJBlock.decl
(JType type, String name, JExpression init) Adds a local variable declaration to this blockAdds a field to the list of field members of this JDefinedClass.JDefinedClass.field
(int mods, JType type, String name, JExpression init) Adds a field to the list of field members of this JDefinedClass.JBlock.forEach
(JType varType, String name, JExpression collection) Creates an enhanced For statement based on j2se 1.5 JLS and add it to this blockJDefinedClass.getConstructor
(JType[] argTypes) Looks for a method that has the specified method signature and return it.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.JForLoop.init
(int mods, JType type, String var, JExpression e) JForLoop.init
(JType type, String var, JExpression e) Add a method to the list of method members of this JDefinedClass instance.static JArray
static JArray
Generatesnew T[size]
.static JArray
JExpr.newArray
(JType type, JExpression size) Generatesnew T[size]
.Adds a member value pair to this annotation based on the type represented by the given JTypeAdd the specified variable to the list of parameters for this method signature.void
Overrides the return type.Sets the type of this variable.Add the specified variable argument to the list of parameters for this method signature.Constructors in com.sun.codemodel with parameters of type JTypeModifierConstructorDescription(package private)
JArray
(JType type, JExpression size) (package private)
JArrayClass
(JCodeModel owner, JType component) (package private)
JCast
(JType type, JExpression object) JCast constructor(package private)
(package private)
Static field reference.(package private)
JFieldVar
(JDefinedClass owner, JMods mods, JType type, String name, JExpression init) JFieldVar constructorJForEach
(JType vartype, String variable, JExpression collection) (package private)
JInvocation
(JType c) Invokes a constructor of an object (i.e., creates a new object.)(package private)
JMethod
(JDefinedClass outer, int mods, JType type, String name) JMethod constructor(package private)
JVar
(JMods mods, JType type, String name, JExpression init) JVar constructor -
Uses of JType in com.sun.codemodel.fmt
Subclasses of JType in com.sun.codemodel.fmt
JPrimitiveType
would be meaningless, since it's always guaranteed to return this.