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) classAnonymous class quick hack.(package private) final classArray class.classRepresents a Java reference type, such as a class, an interface, an enum, an array type, a parameterized type.private classReferences to existing classes.classA generated Java class/interface/enum/....(package private) final classA specialJClassthat represents an unknown class (except its name.)(package private) classRepresents X<Y>.final classSpecial class object that represents the type of "null".final classJava built-in primitive types.final classType variable used to declare generics.(package private) final classRepresents a wildcard type like "? extends Foo".Classes in com.sun.codemodel that implement interfaces with type arguments of type JTypeFields in com.sun.codemodel declared as JTypeModifier and TypeFieldDescriptionprivate final JTypeJArrayClass.componentTypeprivate final JTypeJArray.typeprivate final JTypeJCast.typeJType to which the expression is to be cast.private final JTypeJForEach.typeprivate JTypeJInvocation.typeIf isConstructor==true, this field keeps the type to be created.private JTypeJMethod.typeReturn type for this methodprivate JTypeJVar.typeJType 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 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 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 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
JPrimitiveTypewould be meaningless, since it's always guaranteed to return this.