Uses of Class
com.sun.codemodel.JType
-
Packages that use JType Package Description com.sun.codemodel Library for generating Java source codecom.sun.tools.txw2.builder.relaxng Reads RELAX NG grammar from RNGOM and builds the model for TXW.com.sun.tools.txw2.model com.sun.tools.txw2.model.prop com.sun.tools.xjc.api API for programmatic invocation of XJC and schemagen.com.sun.tools.xjc.api.impl.s2j implementation of the XJC API for schema to java.com.sun.tools.xjc.generator.annotation.spec com.sun.tools.xjc.generator.bean com.sun.tools.xjc.generator.bean.field FieldRenderer and its implementation classes.com.sun.tools.xjc.model Implementation of thecom.sun.xml.bind.v2.model.core
package for XJC.com.sun.tools.xjc.model.nav Compile-time representation of Java type system.com.sun.tools.xjc.outline 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.com.sun.tools.xjc.reader Front-end that reads schema(s) and produce BGM.com.sun.tools.xjc.reader.xmlschema.bindinfo Object Model that represents customization declarations. -
-
Uses of JType in com.sun.codemodel
Subclasses of JType in com.sun.codemodel Modifier and Type Class Description class
JClass
Represents a Java reference type, such as a class, an interface, an enum, an array type, a parameterized type.class
JDefinedClass
A generated Java class/interface/enum/....class
JNullType
Special class object that represents the type of "null".class
JPrimitiveType
Java built-in primitive types.class
JTypeVar
Type variable used to declare generics.Methods in com.sun.codemodel that return JType Modifier and Type Method Description JType
JCodeModel. _ref(java.lang.Class<?> c)
JType
JType. elementType()
If this is an array, returns the component type of the array.JType
JType. erasure()
Returns the erasure of this type.JType[]
JMethod. listParamTypes()
Returns all the parameter types in an array.JType
JMethod. listVarParamType()
Returns the varags parameter type.JType
JCodeModel. parseType(java.lang.String name)
Obtains a type object from a type name.JType
JMethod. type()
Returns the return type.JType
JVar. type()
Return the type of this variable.JType
JVar. type(JType newType)
Sets the type of this variable.JType
JClass. unboxify()
JType
JPrimitiveType. unboxify()
Deprecated.calling this method fromJPrimitiveType
would be meaningless, since it's always guaranteed to returnthis
.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 JType Modifier and Type Method Description JExpression
JExpression. _instanceof(JType right)
Returns "[this] instanceof [right]"JExpression
JExpressionImpl. _instanceof(JType right)
static JExpression
JOp. _instanceof(JExpression left, JType right)
static JInvocation
JExpr. _new(JType t)
static com.sun.codemodel.JCast
JExpr. cast(JType type, JExpression expr)
int
JType. compareTo(JType o)
Compare two JTypes by FQCN, giving sorting precedence to types that belong to packages java and javax over all others.JVar
JBlock. decl(int mods, JType type, java.lang.String name, JExpression init)
Adds a local variable declaration to this blockJVar
JBlock. decl(JType type, java.lang.String name)
Adds a local variable declaration to this blockJVar
JBlock. decl(JType type, java.lang.String name, JExpression init)
Adds a local variable declaration to this blockJFieldVar
JDefinedClass. field(int mods, JType type, java.lang.String name)
Adds a field to the list of field members of this JDefinedClass.JFieldVar
JDefinedClass. field(int mods, JType type, java.lang.String name, JExpression init)
Adds a field to the list of field members of this JDefinedClass.JForEach
JBlock. forEach(JType varType, java.lang.String name, JExpression collection)
Creates an enhanced For statement based on j2se 1.5 JLS and add it to this blockJMethod
JDefinedClass. getConstructor(JType[] argTypes)
Looks for a method that has the specified method signature and return it.JMethod
JDefinedClass. getMethod(java.lang.String name, JType[] argTypes)
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.JVar
JForLoop. init(int mods, JType type, java.lang.String var, JExpression e)
JVar
JForLoop. init(JType type, java.lang.String var, JExpression e)
JMethod
JDefinedClass. method(int mods, JType type, java.lang.String name)
Add a method to the list of method members of this JDefinedClass instance.JClass
JClass. narrow(JType type)
static JArray
JExpr. newArray(JType type)
static JArray
JExpr. newArray(JType type, int size)
Generatesnew T[size]
.static JArray
JExpr. newArray(JType type, JExpression size)
Generatesnew T[size]
.JAnnotationArrayMember
JAnnotationArrayMember. param(JType type)
JAnnotationUse
JAnnotationUse. param(java.lang.String name, JType type)
Adds a member value pair to this annotation based on the type represented by the given JTypeJVar
JMethod. param(int mods, JType type, java.lang.String name)
Add the specified variable to the list of parameters for this method signature.JVar
JMethod. param(JType type, java.lang.String name)
JFormatter
JFormatter. t(JType type)
void
JMethod. type(JType t)
Overrides the return type.JType
JVar. type(JType newType)
Sets the type of this variable.JVar
JMethod. varParam(JType type, java.lang.String name)
Add the specified variable argument to the list of parameters for this method signature.Constructors in com.sun.codemodel with parameters of type JType Constructor Description JForEach(JType vartype, java.lang.String variable, JExpression collection)
-
Uses of JType in com.sun.tools.txw2.builder.relaxng
Methods in com.sun.tools.txw2.builder.relaxng that return JType Modifier and Type Method Description JType
DatatypeFactory. getType(java.lang.String datatypeLibrary, java.lang.String type)
Decides the Java datatype from XML datatype. -
Uses of JType in com.sun.tools.txw2.model
Fields in com.sun.tools.txw2.model declared as JType Modifier and Type Field Description JType
Data. type
The Java representation of the datatype.JType
Value. type
The underlying datatype, in case we need to revert toData
.Methods in com.sun.tools.txw2.model that return JType Modifier and Type Method Description JType
Data. getDatatype(NodeSet nset)
JType
List. getDatatype(NodeSet nset)
JType
Text. getDatatype(NodeSet nset)
Obtains the Java class of thisText
.JType
Value. getDatatype(NodeSet nset)
Methods in com.sun.tools.txw2.model with parameters of type JType Modifier and Type Method Description protected void
Leaf. createDataMethod(JDefinedClass clazz, JType valueType, NodeSet nset, java.util.Set<Prop> props)
Creates a prop of the data value method.Constructors in com.sun.tools.txw2.model with parameters of type JType Constructor Description Data(org.xml.sax.Locator location, JType type)
Value(org.xml.sax.Locator location, JType type, java.lang.String name)
-
Uses of JType in com.sun.tools.txw2.model.prop
Constructors in com.sun.tools.txw2.model.prop with parameters of type JType Constructor Description AttributeProp(javax.xml.namespace.QName name, JType valueType)
ElementProp(javax.xml.namespace.QName name, JType valueType)
LeafElementProp(javax.xml.namespace.QName name, JType valueType)
ValueProp(JType type)
-
Uses of JType in com.sun.tools.xjc.api
Methods in com.sun.tools.xjc.api that return JType Modifier and Type Method Description JType
TypeAndAnnotation. getTypeClass()
Returns the Java type.JType
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 Modifier and Type Method Description JType
PropertyImpl. type()
-
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 Modifier and Type Method Description XmlTypeWriter
XmlTypeWriter. factoryClass(JType value)
XmlElementDeclWriter
XmlElementDeclWriter. scope(JType value)
XmlElementRefWriter
XmlElementRefWriter. type(JType value)
XmlElementWriter
XmlElementWriter. type(JType value)
XmlJavaTypeAdapterWriter
XmlJavaTypeAdapterWriter. type(JType value)
XmlSchemaTypeWriter
XmlSchemaTypeWriter. type(JType value)
XmlAnyElementWriter
XmlAnyElementWriter. value(JType value)
XmlEnumWriter
XmlEnumWriter. value(JType value)
XmlJavaTypeAdapterWriter
XmlJavaTypeAdapterWriter. value(JType value)
XmlSeeAlsoWriter
XmlSeeAlsoWriter. value(JType value)
-
Uses of JType in com.sun.tools.xjc.generator.bean
Methods in com.sun.tools.xjc.generator.bean that return JType Modifier and Type Method Description JType
BeanGenerator. resolve(CTypeRef ref, Aspect a)
Methods in com.sun.tools.xjc.generator.bean with parameters of type JType Modifier and Type Method Description abstract JVar
MethodWriter. addParameter(JType type, java.lang.String name)
Adds a parameter to the previously declared method.abstract JMethod
MethodWriter. declareMethod(JType returnType, java.lang.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 JType Modifier and Type Field Description protected JType
AbstractField. exposedType
The publicly visible type of this field.protected JType
AbstractField. exposedType
The publicly visible type of this field.protected JType
AbstractField. exposedType
The publicly visible type of this field.protected JType
AbstractField. exposedType
The publicly visible type of this field.protected JType
AbstractField. exposedType
The publicly visible type of this field.protected JType
AbstractField. exposedType
The publicly visible type of this field.protected JType
AbstractField. exposedType
The publicly visible type of this field.protected JType
AbstractField. exposedType
The publicly visible type of this field.protected JType
AbstractField. implType
The type of this field, which can hold all the possible types.protected JType
AbstractField. implType
The type of this field, which can hold all the possible types.protected JType
AbstractField. implType
The type of this field, which can hold all the possible types.protected JType
AbstractField. implType
The type of this field, which can hold all the possible types.protected JType
AbstractField. implType
The type of this field, which can hold all the possible types.protected JType
AbstractField. implType
The type of this field, which can hold all the possible types.protected JType
AbstractField. implType
The type of this field, which can hold all the possible types.protected 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 JType Modifier and Type Method Description JType
SingleField. getFieldType()
protected JType
UnboxedField. getFieldType()
JType
IsSetField. getRawType()
protected JType
ContentListField. getType(Aspect aspect)
protected JType
NoExtendedContentField. getType(Aspect aspect)
protected JType
UnboxedField. getType(Aspect aspect)
-
Uses of JType in com.sun.tools.xjc.model
Fields in com.sun.tools.xjc.model declared as JType Modifier and Type Field Description JType
CPropertyInfo. 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 JType Modifier and Type Method Description JType
SymbolSpace. getType()
Gets the Java type of this symbol space.JType
CArrayInfo. toType(Outline o, Aspect aspect)
JType
CBuiltinLeafInfo. toType(Outline o, Aspect aspect)
Gets the code model representation of this type.JType
CElementInfo. toType(Outline o, Aspect aspect)
JType
CTypeInfo. toType(Outline o, Aspect aspect)
JType
CWildcardTypeInfo. toType(Outline o, Aspect aspect)
Methods in com.sun.tools.xjc.model with parameters of type JType Modifier and Type Method Description void
SymbolSpace. setType(JType _type)
-
Uses of JType in com.sun.tools.xjc.model.nav
Methods in com.sun.tools.xjc.model.nav that return JType Modifier and Type Method Description JType
NType. toType(Outline o, Aspect aspect)
Returns the representation of this type in code model. -
Uses of JType in com.sun.tools.xjc.outline
Methods in com.sun.tools.xjc.outline that return JType Modifier and Type Method Description JType
FieldOutline. getRawType()
Gets the type of the "raw value".JType
Outline. resolve(CTypeRef ref, Aspect aspect)
Resolves a type reference to the actual (possibly generated) type. -
Uses of JType in com.sun.tools.xjc.reader
Methods in com.sun.tools.xjc.reader that return JType Modifier and Type Method Description static JType
TypeUtil. getCommonBaseType(JCodeModel codeModel, JType... t)
Computes the common base type of types.static JType
TypeUtil. getCommonBaseType(JCodeModel codeModel, java.util.Collection<? extends JType> types)
Computes the common base type of two types.static JType
TypeUtil. getType(JCodeModel codeModel, java.lang.String typeName, ErrorReceiver errorHandler, org.xml.sax.Locator errorSource)
Obtains aJType
object for the string representation of a type.Methods in com.sun.tools.xjc.reader with parameters of type JType Modifier and Type Method Description static 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 JType Modifier and Type Method Description static JType
TypeUtil. getCommonBaseType(JCodeModel codeModel, java.util.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 JType Modifier and Type Method Description JType
BIProperty. getBaseType()
Constructors in com.sun.tools.xjc.reader.xmlschema.bindinfo with parameters of type JType Constructor Description User(org.xml.sax.Locator loc, java.lang.String parseMethod, java.lang.String printMethod, JType inMemoryType)
-