Uses of Class
com.sun.codemodel.JType
Packages that use JType
Package
Description
Library for generating Java source code
Reads RELAX NG grammar from RNGOM and builds the model for TXW.
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 TypeClassDescriptionclass
Represents a Java reference type, such as a class, an interface, an enum, an array type, a parameterized type.class
A generated Java class/interface/enum/....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.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 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 com.sun.codemodel.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 JType -
Uses of JType in com.sun.tools.txw2.builder.relaxng
Methods in com.sun.tools.txw2.builder.relaxng that return JType -
Uses of JType in com.sun.tools.txw2.model
Fields in com.sun.tools.txw2.model declared as JTypeModifier and TypeFieldDescriptionfinal JType
Data.type
The Java representation of the datatype.final JType
Value.type
The underlying datatype, in case we need to revert toData
.Methods in com.sun.tools.txw2.model that return JTypeModifier and TypeMethodDescriptionData.getDatatype
(NodeSet nset) List.getDatatype
(NodeSet nset) Text.getDatatype
(NodeSet nset) Obtains the Java class of thisText
.Value.getDatatype
(NodeSet nset) Methods in com.sun.tools.txw2.model with parameters of type JTypeModifier and TypeMethodDescriptionprotected final void
Leaf.createDataMethod
(JDefinedClass clazz, JType valueType, NodeSet nset, Set<Prop> props) Creates a prop of the data value method.Constructors in com.sun.tools.txw2.model with parameters of type JType -
Uses of JType in com.sun.tools.txw2.model.prop
Constructors in com.sun.tools.txw2.model.prop with parameters of type JTypeModifierConstructorDescriptionAttributeProp
(QName name, JType valueType) ElementProp
(QName name, JType valueType) LeafElementProp
(QName name, JType valueType) -
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 JVar
MethodWriter.addParameter
(JType type, String name) Adds a parameter to the previously declared method.abstract JMethod
MethodWriter.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 JType
AbstractField.exposedType
The publicly visible type of this field.protected final JType
AbstractField.exposedType
The publicly visible type of this field.protected final JType
AbstractField.exposedType
The publicly visible type of this field.protected final JType
AbstractField.exposedType
The publicly visible type of this field.protected final JType
AbstractField.exposedType
The publicly visible type of this field.protected final JType
AbstractField.exposedType
The publicly visible type of this field.protected final JType
AbstractField.exposedType
The publicly visible type of this field.protected final JType
AbstractField.exposedType
The publicly visible type of this field.protected final JType
AbstractField.implType
The type of this field, which can hold all the possible types.protected final JType
AbstractField.implType
The type of this field, which can hold all the possible types.protected final JType
AbstractField.implType
The type of this field, which can hold all the possible types.protected final JType
AbstractField.implType
The type of this field, which can hold all the possible types.protected final JType
AbstractField.implType
The type of this field, which can hold all the possible types.protected final JType
AbstractField.implType
The type of this field, which can hold all the possible types.protected final JType
AbstractField.implType
The type of this field, which can hold all the possible types.protected final JType
AbstractField.implType
The 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 JType
SingleField.getFieldType()
protected JType
UnboxedField.getFieldType()
IsSetField.getRawType()
protected JType
protected JType
protected JType
-
Uses of JType in com.sun.tools.xjc.model
Fields in com.sun.tools.xjc.model declared as JTypeModifier and TypeFieldDescriptionCPropertyInfo.baseType
If 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 JType
TypeUtil.getCommonBaseType
(JCodeModel codeModel, JType... t) Computes the common base type of types.static JType
TypeUtil.getCommonBaseType
(JCodeModel codeModel, Collection<? extends JType> types) Computes the common base type of two types.static JType
TypeUtil.getType
(JCodeModel codeModel, String typeName, ErrorReceiver errorHandler, Locator errorSource) Obtains aJType
object for the string representation of a type.Methods in com.sun.tools.xjc.reader with parameters of type JTypeModifier and TypeMethodDescriptionstatic JType
TypeUtil.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 JType
TypeUtil.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
JPrimitiveType
would be meaningless, since it's always guaranteed to returnthis
.