Uses of Class
com.sun.codemodel.JClass
Packages that use JClass
Package
Description
Library for generating Java source code
Various resource file formats (classes that implement
JResourceFile
).API for programmatic invocation of XJC and schemagen.
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.
Object Model that represents DTD binding information.
-
Uses of JClass in com.sun.codemodel
Subclasses of JClass in com.sun.codemodelModifier and TypeClassDescriptionclass
A generated Java class/interface/enum/....final class
Special class object that represents the type of "null".final class
Type variable used to declare generics.Methods in com.sun.codemodel that return JClassModifier and TypeMethodDescriptionabstract JClass
JClass._extends()
Gets the super class of this class.JDefinedClass._extends()
Returns the class extended by this class.JNullType._extends()
JTypeVar._extends()
Returns the class bound of this variable.JClass.array()
JPrimitiveType.array()
abstract JClass
JType.array()
Create an array type of this type.JClass.boxify()
Deprecated.JPrimitiveType.boxify()
Obtains the wrapper class for this primitive type.abstract JClass
JType.boxify()
If this class is a primitive type, return the boxed class.JCodeModel.directClass
(String name) Creates a dummy, unknownJClass
that represents a given name.JClass.erasure()
JAnnotationUse.getAnnotationClass()
final JClass
JClass.getBaseClass
(JClass baseType) Gets the parameterization of the given base type.final JClass
JClass.getBaseClass
(Class<?> baseType) JPrimitiveType.getWrapperClass()
Deprecated.final JClass[]
JDefinedClass.listClasses()
Returns all the nested classes defined in this class."Narrows" a generic class to a concrete class by specifying a type argument."Narrows" a generic class to a concrete class by specifying a type argument.JClass.outer()
Returns the class in which this class is nested, ornull
if this is a top-level class.JDefinedClass.outer()
Obtains a reference to an existing class from its Class object.Obtains a reference to an existing class from its fully-qualified class name.Reference a class within this package.protected abstract JClass
JClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) Substitutes the type variables with their actual arguments.protected JClass
JDefinedClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JNullType.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JTypeVar.substituteParams
(JTypeVar[] variables, List<JClass> bindings) final JClass
JClass.wildcard()
Create "? extends T" from T.JCodeModel.wildcard()
Gets aJClass
representation for "?", which is equivalent to "? extends Object".Methods in com.sun.codemodel that return types with arguments of type JClassModifier and TypeMethodDescriptionJClass._implements()
Iterates all super interfaces directly implemented by this class/interface.JDefinedClass._implements()
Returns an iterator that walks the nested classes defined in this class.JNullType._implements()
JTypeVar._implements()
Returns the interface bounds of this variable.JClass.getTypeParameters()
If this class is parameterized, return the type parameter of the given index.Methods in com.sun.codemodel with parameters of type JClassModifier and TypeMethodDescriptionThis class extends the specifed class.JDefinedClass._implements
(JClass iface) This class implements the specifed interface.static JInvocation
Add an exception to the list of exceptions that this method may throw.add an @throws tag to the javadocAdds an annotation to this program element.Adds a new annotation to the array.Adding ability to annotate a classAdds an annotation to this variable.Adds an annotation to this variable.Adds an annotation to this variable.JCodeModel.anonymousClass
(JClass baseType) Creates a new anonymous class.Adds a bound to this variable.static JExpression
Adds a new type variable to this declaration with a bound.final JClass
JClass.getBaseClass
(JClass baseType) Gets the parameterization of the given base type.final boolean
JClass.isAssignableFrom
(JClass derived) Checks the relationship between two classes."Narrows" a generic class to a concrete class by specifying a type argument.JCodeModel.newAnonymousClass
(JClass baseType) Deprecated.The naming convention doesn't match the rest of the CodeModel.void
Removes a class from this package.JBlock.staticInvoke
(JClass type, String method) Creates a static invocation statement.Print a type name.Method parameters in com.sun.codemodel with type arguments of type JClassModifier and TypeMethodDescriptionprotected abstract JClass
JClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) Substitutes the type variables with their actual arguments.protected JClass
JDefinedClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JNullType.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JTypeVar.substituteParams
(JTypeVar[] variables, List<JClass> bindings) -
Uses of JClass in com.sun.codemodel.fmt
Methods in com.sun.codemodel.fmt that return JClass -
Uses of JClass in com.sun.codemodel.util
Fields in com.sun.codemodel.util with type parameters of type JClassMethods in com.sun.codemodel.util with parameters of type JClass -
Uses of JClass in com.sun.tools.xjc.api
Methods in com.sun.tools.xjc.api that return types with arguments of type JClassModifier and TypeMethodDescriptionS2JJAXBModel.getAllObjectFactories()
Gets all theObjectFactory
classes generated by the compilation. -
Uses of JClass in com.sun.tools.xjc.generator.bean
Methods in com.sun.tools.xjc.generator.bean that return JClassModifier and TypeMethodDescriptionfinal JClass
BeanGenerator.addRuntime
(Class clazz) BeanGenerator.generateStaticClass
(Class src, JPackage out) -
Uses of JClass in com.sun.tools.xjc.generator.bean.field
Fields in com.sun.tools.xjc.generator.bean.field declared as JClassModifier and TypeFieldDescriptionprotected final JClass
AbstractListField.listT
protected final JClass
AbstractListField.listT
protected final JClass
AbstractListField.listT
protected final JClass
AbstractListField.listT
Methods in com.sun.tools.xjc.generator.bean.field that return JClassModifier and TypeMethodDescriptionprotected final JClass
ContentListField.getCoreListType()
protected final JClass
DummyListField.getCoreListType()
protected final JClass
NoExtendedContentField.getCoreListType()
protected final JClass
UntypedListField.getCoreListType()
Methods in com.sun.tools.xjc.generator.bean.field with parameters of type JClassModifier and TypeMethodDescriptionFieldRendererFactory.getContentList
(JClass coreList) FieldRendererFactory.getDummyList
(JClass coreList) Constructors in com.sun.tools.xjc.generator.bean.field with parameters of type JClassModifierConstructorDescriptionprotected
ContentListField
(ClassOutlineImpl context, CPropertyInfo prop, JClass coreList) protected
DummyListField
(ClassOutlineImpl context, CPropertyInfo prop, JClass coreList) protected
NoExtendedContentField
(ClassOutlineImpl context, CPropertyInfo prop, JClass coreList) protected
UntypedListField
(ClassOutlineImpl context, CPropertyInfo prop, JClass coreList) protected
UntypedListFieldRenderer
(JClass coreList) protected
UntypedListFieldRenderer
(JClass coreList, boolean dummy, boolean content) -
Uses of JClass in com.sun.tools.xjc.model
Fields in com.sun.tools.xjc.model declared as JClassModifier and TypeFieldDescriptionModel.rootClass
If non-null, all the generated classes should eventually derive from this class.Model.rootInterface
If non-null, all the generated interfaces should eventually derive from this interface.Methods in com.sun.tools.xjc.model that return JClassMethods in com.sun.tools.xjc.model with parameters of type JClassConstructors in com.sun.tools.xjc.model with parameters of type JClass -
Uses of JClass in com.sun.tools.xjc.outline
Fields in com.sun.tools.xjc.outline declared as JClassModifier and TypeFieldDescriptionfinal JClass
ClassOutline.implRef
The implementation class that shall be used for reference.Methods in com.sun.tools.xjc.outline that return JClassModifier and TypeMethodDescriptionOutline.addRuntime
(Class clazz) Copies the specified class into the user's package and returns a reference to it.Constructors in com.sun.tools.xjc.outline with parameters of type JClassModifierConstructorDescriptionprotected
ClassOutline
(CClassInfo _target, JDefinedClass exposedClass, JClass implRef, JDefinedClass _implClass) -
Uses of JClass in com.sun.tools.xjc.reader.dtd.bindinfo
Methods in com.sun.tools.xjc.reader.dtd.bindinfo that return JClassModifier and TypeMethodDescriptionBindInfo.getSuperClass()
Gets the xjc:superClass customization if it's turned on.BindInfo.getSuperInterface()
Gets the xjc:superInterface customization if it's turned on.final JClass
BIContent.getType()
Gets the type of this property, if any.
JClass
would be meaningless, since it's always guaranteed to returnthis
.