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 TypeClassDescriptionclassRepresents a Java reference type, such as a class, an interface, an enum, an array type, a parameterized type.classA generated Java class/interface/enum/....final classSpecial class object that represents the type of "null".final classJava built-in primitive types.final classType variable used to declare generics.Classes in com.sun.codemodel that implement interfaces with type arguments of type JTypeMethods in com.sun.codemodel that return JTypeModifier and TypeMethodDescriptionJType.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 JTypeJType.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 JExpressionJExpressionImpl._instanceof(JType right) static JExpressionJOp._instanceof(JExpression left, JType right) static JInvocationstatic com.sun.codemodel.JCastJExpr.cast(JType type, JExpression expr) intCompare 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.booleanJMethod.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 JArraystatic JArrayGeneratesnew T[size].static JArrayJExpr.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.voidOverrides 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 JType
JPrimitiveTypewould be meaningless, since it's always guaranteed to return this.