Uses of Class
com.sun.codemodel.JType
Packages that use JType
Package
Description
Library for generating Java source code
API for programmatic invocation of XJC and schemagen.
implementation of the XJC API for schema to java.
FieldRenderer and its implementation classes.
Implementation of the
com.sun.xml.bind.v2.model.core package for XJC.
Compile-time representation of Java type system.
Provides the outline of the generated Java source code so that
additional processing (such as adding more annotations) can be
done on the generated code.
Front-end that reads schema(s) and produce BGM.
Object Model that represents customization declarations.
-
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.Methods 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 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 -
Uses of JType in com.sun.tools.ws.processor.model.jaxb
Methods in com.sun.tools.ws.processor.model.jaxb that return JTypeMethods in com.sun.tools.ws.processor.model.jaxb with parameters of type JTypeConstructors in com.sun.tools.ws.processor.model.jaxb with parameters of type JTypeModifierConstructorDescriptionJAXBTypeAndAnnotation(JType type) JAXBTypeAndAnnotation(TypeAndAnnotation typeAnn, JType type) -
Uses of JType in com.sun.tools.xjc.api
Methods in com.sun.tools.xjc.api that return JTypeModifier and TypeMethodDescriptionTypeAndAnnotation.getTypeClass()Returns the Java type.Property.type()The Java type of the property. -
Uses of JType in com.sun.tools.xjc.api.impl.s2j
Methods in com.sun.tools.xjc.api.impl.s2j that return JType -
Uses of JType in com.sun.tools.xjc.generator.annotation.spec
Methods in com.sun.tools.xjc.generator.annotation.spec with parameters of type JType -
Uses of JType in com.sun.tools.xjc.generator.bean
Methods in com.sun.tools.xjc.generator.bean that return JTypeMethods in com.sun.tools.xjc.generator.bean with parameters of type JTypeModifier and TypeMethodDescriptionabstract JVarMethodWriter.addParameter(JType type, String name) Adds a parameter to the previously declared method.abstract JMethodMethodWriter.declareMethod(JType returnType, String methodName) Declares a method in both the interface and the implementation. -
Uses of JType in com.sun.tools.xjc.generator.bean.field
Fields in com.sun.tools.xjc.generator.bean.field declared as JTypeModifier and TypeFieldDescriptionprotected final JTypeAbstractField.exposedTypeThe publicly visible type of this field.protected final JTypeAbstractField.exposedTypeThe publicly visible type of this field.protected final JTypeAbstractField.exposedTypeThe publicly visible type of this field.protected final JTypeAbstractField.exposedTypeThe publicly visible type of this field.protected final JTypeAbstractField.exposedTypeThe publicly visible type of this field.protected final JTypeAbstractField.exposedTypeThe publicly visible type of this field.protected final JTypeAbstractField.exposedTypeThe publicly visible type of this field.protected final JTypeAbstractField.exposedTypeThe publicly visible type of this field.protected final JTypeAbstractField.implTypeThe type of this field, which can hold all the possible types.protected final JTypeAbstractField.implTypeThe type of this field, which can hold all the possible types.protected final JTypeAbstractField.implTypeThe type of this field, which can hold all the possible types.protected final JTypeAbstractField.implTypeThe type of this field, which can hold all the possible types.protected final JTypeAbstractField.implTypeThe type of this field, which can hold all the possible types.protected final JTypeAbstractField.implTypeThe type of this field, which can hold all the possible types.protected final JTypeAbstractField.implTypeThe type of this field, which can hold all the possible types.protected final JTypeAbstractField.implTypeThe type of this field, which can hold all the possible types.Methods in com.sun.tools.xjc.generator.bean.field that return JTypeModifier and TypeMethodDescriptionfinal JTypeSingleField.getFieldType()protected JTypeUnboxedField.getFieldType()IsSetField.getRawType()protected JTypeprotected JTypeprotected JType -
Uses of JType in com.sun.tools.xjc.model
Fields in com.sun.tools.xjc.model declared as JTypeModifier and TypeFieldDescriptionCPropertyInfo.baseTypeIf the base type of the property is overriden, this field is set to non-null.Methods in com.sun.tools.xjc.model that return JTypeModifier and TypeMethodDescriptionSymbolSpace.getType()Gets the Java type of this symbol space.Gets the code model representation of this type.Methods in com.sun.tools.xjc.model with parameters of type JType -
Uses of JType in com.sun.tools.xjc.outline
Methods in com.sun.tools.xjc.outline that return JType -
Uses of JType in com.sun.tools.xjc.reader
Methods in com.sun.tools.xjc.reader that return JTypeModifier and TypeMethodDescriptionstatic JTypeTypeUtil.getCommonBaseType(JCodeModel codeModel, JType... t) Computes the common base type of types.static JTypeTypeUtil.getCommonBaseType(JCodeModel codeModel, Collection<? extends JType> types) Computes the common base type of two types.static JTypeTypeUtil.getType(JCodeModel codeModel, String typeName, ErrorReceiver errorHandler, Locator errorSource) Obtains aJTypeobject for the string representation of a type.Methods in com.sun.tools.xjc.reader with parameters of type JTypeModifier and TypeMethodDescriptionstatic JTypeTypeUtil.getCommonBaseType(JCodeModel codeModel, JType... t) Computes the common base type of types.Method parameters in com.sun.tools.xjc.reader with type arguments of type JTypeModifier and TypeMethodDescriptionstatic JTypeTypeUtil.getCommonBaseType(JCodeModel codeModel, Collection<? extends JType> types) Computes the common base type of two types. -
Uses of JType in com.sun.tools.xjc.reader.xmlschema.bindinfo
Methods in com.sun.tools.xjc.reader.xmlschema.bindinfo that return JTypeConstructors in com.sun.tools.xjc.reader.xmlschema.bindinfo with parameters of type JType
JPrimitiveTypewould be meaningless, since it's always guaranteed to returnthis.