Uses of Class
com.sun.codemodel.JType
-
Packages that use JType Package Description com.sun.codemodel Library for generating Java source codecom.sun.tools.ws.processor.model.jaxb 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.corepackage 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 classJClassRepresents a Java reference type, such as a class, an interface, an enum, an array type, a parameterized type.classJDefinedClassA generated Java class/interface/enum/....classJNullTypeSpecial class object that represents the type of "null".classJPrimitiveTypeJava built-in primitive types.classJTypeVarType variable used to declare generics.Methods in com.sun.codemodel that return JType Modifier and Type Method Description JTypeJCodeModel. _ref(Class<?> c)JTypeJType. elementType()If this is an array, returns the component type of the array.JTypeJType. erasure()Returns the erasure of this type.JType[]JMethod. listParamTypes()Returns all the parameter types in an array.JTypeJMethod. listVarParamType()Returns the varags parameter type.JTypeJCodeModel. parseType(String name)Obtains a type object from a type name.JTypeJMethod. type()Returns the return type.JTypeJVar. type()Return the type of this variable.JTypeJVar. type(JType newType)Sets the type of this variable.JTypeJClass. unboxify()JTypeJPrimitiveType. unboxify()Deprecated.calling this method fromJPrimitiveTypewould be meaningless, since it's always guaranteed to returnthis.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 JType Modifier and Type Method Description JExpressionJExpression. _instanceof(JType right)Returns "[this] instanceof [right]"JExpressionJExpressionImpl. _instanceof(JType right)static JExpressionJOp. _instanceof(JExpression left, JType right)static JInvocationJExpr. _new(JType t)static com.sun.codemodel.JCastJExpr. cast(JType type, JExpression expr)intJType. compareTo(JType o)Compare two JTypes by FQCN, giving sorting precedence to types that belong to packages java and javax over all others.JVarJBlock. decl(int mods, JType type, String name, JExpression init)Adds a local variable declaration to this blockJVarJBlock. decl(JType type, String name)Adds a local variable declaration to this blockJVarJBlock. decl(JType type, String name, JExpression init)Adds a local variable declaration to this blockJFieldVarJDefinedClass. field(int mods, JType type, String name)Adds a field to the list of field members of this JDefinedClass.JFieldVarJDefinedClass. field(int mods, JType type, String name, JExpression init)Adds a field to the list of field members of this JDefinedClass.JForEachJBlock. forEach(JType varType, String name, JExpression collection)Creates an enhanced For statement based on j2se 1.5 JLS and add it to this blockJMethodJDefinedClass. getConstructor(JType[] argTypes)Looks for a method that has the specified method signature and return it.JMethodJDefinedClass. getMethod(String name, JType[] argTypes)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.JVarJForLoop. init(int mods, JType type, String var, JExpression e)JVarJForLoop. init(JType type, String var, JExpression e)JMethodJDefinedClass. method(int mods, JType type, String name)Add a method to the list of method members of this JDefinedClass instance.JClassJClass. narrow(JType type)static JArrayJExpr. newArray(JType type)static JArrayJExpr. newArray(JType type, int size)Generatesnew T[size].static JArrayJExpr. newArray(JType type, JExpression size)Generatesnew T[size].JAnnotationArrayMemberJAnnotationArrayMember. param(JType type)JAnnotationUseJAnnotationUse. param(String name, JType type)Adds a member value pair to this annotation based on the type represented by the given JTypeJVarJMethod. param(int mods, JType type, String name)Add the specified variable to the list of parameters for this method signature.JVarJMethod. param(JType type, String name)JFormatterJFormatter. t(JType type)voidJMethod. type(JType t)Overrides the return type.JTypeJVar. type(JType newType)Sets the type of this variable.JVarJMethod. varParam(JType type, 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, String variable, JExpression collection) -
Uses of JType in com.sun.tools.ws.processor.model.jaxb
Methods in com.sun.tools.ws.processor.model.jaxb that return JType Modifier and Type Method Description JTypeJAXBTypeAndAnnotation. getType()Methods in com.sun.tools.ws.processor.model.jaxb with parameters of type JType Modifier and Type Method Description voidJAXBTypeAndAnnotation. setType(JType type)Constructors in com.sun.tools.ws.processor.model.jaxb with parameters of type JType Constructor Description JAXBTypeAndAnnotation(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 JType Modifier and Type Method Description JTypeTypeAndAnnotation. getTypeClass()Returns the Java type.JTypeProperty. 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 JTypePropertyImpl. 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 XmlTypeWriterXmlTypeWriter. factoryClass(JType value)XmlElementDeclWriterXmlElementDeclWriter. scope(JType value)XmlElementRefWriterXmlElementRefWriter. type(JType value)XmlElementWriterXmlElementWriter. type(JType value)XmlJavaTypeAdapterWriterXmlJavaTypeAdapterWriter. type(JType value)XmlSchemaTypeWriterXmlSchemaTypeWriter. type(JType value)XmlAnyElementWriterXmlAnyElementWriter. value(JType value)XmlEnumWriterXmlEnumWriter. value(JType value)XmlJavaTypeAdapterWriterXmlJavaTypeAdapterWriter. value(JType value)XmlSeeAlsoWriterXmlSeeAlsoWriter. 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 JTypeBeanGenerator. resolve(CTypeRef ref, Aspect a)Methods in com.sun.tools.xjc.generator.bean with parameters of type JType Modifier and Type Method Description abstract 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 JType Modifier and Type Field Description protected JTypeAbstractField. exposedTypeThe publicly visible type of this field.protected JTypeAbstractField. exposedTypeThe publicly visible type of this field.protected JTypeAbstractField. exposedTypeThe publicly visible type of this field.protected JTypeAbstractField. exposedTypeThe publicly visible type of this field.protected JTypeAbstractField. exposedTypeThe publicly visible type of this field.protected JTypeAbstractField. exposedTypeThe publicly visible type of this field.protected JTypeAbstractField. exposedTypeThe publicly visible type of this field.protected JTypeAbstractField. exposedTypeThe publicly visible type of this field.protected JTypeAbstractField. implTypeThe type of this field, which can hold all the possible types.protected JTypeAbstractField. implTypeThe type of this field, which can hold all the possible types.protected JTypeAbstractField. implTypeThe type of this field, which can hold all the possible types.protected JTypeAbstractField. implTypeThe type of this field, which can hold all the possible types.protected JTypeAbstractField. implTypeThe type of this field, which can hold all the possible types.protected JTypeAbstractField. implTypeThe type of this field, which can hold all the possible types.protected JTypeAbstractField. implTypeThe type of this field, which can hold all the possible types.protected JTypeAbstractField. implTypeThe 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 JTypeSingleField. getFieldType()protected JTypeUnboxedField. getFieldType()JTypeIsSetField. getRawType()protected JTypeContentListField. getType(Aspect aspect)protected JTypeNoExtendedContentField. getType(Aspect aspect)protected JTypeUnboxedField. 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 JTypeCPropertyInfo. 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 JType Modifier and Type Method Description JTypeSymbolSpace. getType()Gets the Java type of this symbol space.JTypeCArrayInfo. toType(Outline o, Aspect aspect)JTypeCBuiltinLeafInfo. toType(Outline o, Aspect aspect)Gets the code model representation of this type.JTypeCElementInfo. toType(Outline o, Aspect aspect)JTypeCTypeInfo. toType(Outline o, Aspect aspect)JTypeCWildcardTypeInfo. toType(Outline o, Aspect aspect)Methods in com.sun.tools.xjc.model with parameters of type JType Modifier and Type Method Description voidSymbolSpace. 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 JTypeNType. 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 JTypeFieldOutline. getRawType()Gets the type of the "raw value".JTypeOutline. 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 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 JType Modifier and Type Method Description static 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 JType Modifier and Type Method Description static 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 JType Modifier and Type Method Description JTypeBIProperty. getBaseType()Constructors in com.sun.tools.xjc.reader.xmlschema.bindinfo with parameters of type JType Constructor Description User(Locator loc, String parseMethod, String printMethod, JType inMemoryType)
-