Package | Description |
---|---|
com.sun.codemodel |
Library for generating Java source code
|
com.sun.codemodel.fmt |
Various resource file formats (classes that implement
JResourceFile ). |
com.sun.codemodel.util | |
com.sun.tools.xjc.api |
API for programmatic invocation of XJC and schemagen.
|
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 the
com.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.dtd.bindinfo |
Object Model that represents DTD binding information.
|
Modifier and Type | Class | Description |
---|---|---|
class |
JDefinedClass |
A generated Java class/interface/enum/....
|
class |
JNullType |
Special class object that represents the type of "null".
|
class |
JTypeVar |
Type variable used to declare generics.
|
Modifier and Type | Method | Description |
---|---|---|
abstract JClass |
JClass._extends() |
Gets the super class of this class.
|
JClass |
JDefinedClass._extends() |
Returns the class extended by this class.
|
JClass |
JNullType._extends() |
|
JClass |
JTypeVar._extends() |
Returns the class bound of this variable.
|
JClass |
JClass.array() |
|
JClass |
JPrimitiveType.array() |
|
abstract JClass |
JType.array() |
Create an array type of this type.
|
JClass |
JClass.boxify() |
Deprecated.
calling this method from
JClass
would be meaningless, since it's always guaranteed to
return this . |
JClass |
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.
|
JClass |
JCodeModel.directClass(String name) |
Creates a dummy, unknown
JClass that represents a given name. |
JClass |
JClass.erasure() |
|
JClass |
JAnnotationUse.getAnnotationClass() |
|
JClass |
JClass.getBaseClass(JClass baseType) |
Gets the parameterization of the given base type.
|
JClass |
JClass.getBaseClass(Class<?> baseType) |
|
JClass |
JPrimitiveType.getWrapperClass() |
Deprecated.
|
JClass[] |
JDefinedClass.listClasses() |
Returns all the nested classes defined in this class.
|
JClass |
JClass.narrow(JClass clazz) |
"Narrows" a generic class to a concrete class by specifying
a type argument.
|
JClass |
JClass.narrow(JClass... clazz) |
|
JClass |
JClass.narrow(JType type) |
|
JClass |
JClass.narrow(Class<?> clazz) |
"Narrows" a generic class to a concrete class by specifying
a type argument.
|
JClass |
JClass.narrow(Class<?>... clazz) |
|
JClass |
JClass.narrow(List<? extends JClass> clazz) |
|
JClass |
JClass.outer() |
Returns the class in which this class is nested, or
null if
this is a top-level class. |
JClass |
JDefinedClass.outer() |
|
JClass |
JCodeModel.ref(Class<?> clazz) |
Obtains a reference to an existing class from its Class object.
|
JClass |
JCodeModel.ref(String fullyQualifiedClassName) |
Obtains a reference to an existing class from its fully-qualified
class name.
|
JClass |
JPackage.ref(String 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) |
|
JClass |
JClass.wildcard() |
Create "? extends T" from T.
|
JClass |
JCodeModel.wildcard() |
Gets a
JClass representation for "?",
which is equivalent to "? extends Object". |
Modifier and Type | Method | Description |
---|---|---|
abstract Iterator<JClass> |
JClass._implements() |
Iterates all super interfaces directly implemented by
this class/interface.
|
Iterator<JClass> |
JDefinedClass._implements() |
Returns an iterator that walks the nested classes defined in this
class.
|
Iterator<JClass> |
JNullType._implements() |
|
Iterator<JClass> |
JTypeVar._implements() |
Returns the interface bounds of this variable.
|
List<JClass> |
JClass.getTypeParameters() |
If this class is parameterized, return the type parameter of the given index.
|
Modifier and Type | Method | Description |
---|---|---|
JCatchBlock |
JTryBlock._catch(JClass exception) |
|
JDefinedClass |
JDefinedClass._extends(JClass superClass) |
This class extends the specifed class.
|
JDefinedClass |
JDefinedClass._implements(JClass iface) |
This class implements the specifed interface.
|
static JInvocation |
JExpr._new(JClass c) |
|
JMethod |
JMethod._throws(JClass exception) |
Add an exception to the list of exceptions that this
method may throw.
|
JCommentPart |
JDocComment.addThrows(JClass exception) |
add an @throws tag to the javadoc
|
JAnnotationUse |
JAnnotatable.annotate(JClass clazz) |
Adds an annotation to this program element.
|
JAnnotationUse |
JAnnotationArrayMember.annotate(JClass clazz) |
Adds a new annotation to the array.
|
JAnnotationUse |
JDefinedClass.annotate(JClass clazz) |
Adding ability to annotate a class
|
JAnnotationUse |
JEnumConstant.annotate(JClass clazz) |
Adds an annotation to this variable.
|
JAnnotationUse |
JMethod.annotate(JClass clazz) |
Adds an annotation to this variable.
|
JAnnotationUse |
JPackage.annotate(JClass clazz) |
|
JAnnotationUse |
JVar.annotate(JClass clazz) |
Adds an annotation to this variable.
|
JDefinedClass |
JCodeModel.anonymousClass(JClass baseType) |
Creates a new anonymous class.
|
JTypeVar |
JTypeVar.bound(JClass c) |
Adds a bound to this variable.
|
static JExpression |
JExpr.dotclass(JClass cl) |
|
JTypeVar |
JDefinedClass.generify(String name,
JClass bound) |
|
JTypeVar |
JGenerifiable.generify(String name,
JClass bound) |
Adds a new type variable to this declaration with a bound.
|
JClass |
JClass.getBaseClass(JClass baseType) |
Gets the parameterization of the given base type.
|
boolean |
JClass.isAssignableFrom(JClass derived) |
Checks the relationship between two classes.
|
JClass |
JClass.narrow(JClass clazz) |
"Narrows" a generic class to a concrete class by specifying
a type argument.
|
JClass |
JClass.narrow(JClass... clazz) |
|
JDefinedClass |
JCodeModel.newAnonymousClass(JClass baseType) |
Deprecated.
The naming convention doesn't match the rest of the CodeModel.
|
void |
JPackage.remove(JClass c) |
Removes a class from this package.
|
JInvocation |
JBlock.staticInvoke(JClass type,
String method) |
Creates a static invocation statement.
|
JFormatter |
JFormatter.t(JClass type) |
Print a type name.
|
Modifier and Type | Method | Description |
---|---|---|
JClass |
JClass.narrow(List<? extends JClass> clazz) |
|
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) |
Modifier and Type | Method | Description |
---|---|---|
JClass |
JStaticJavaFile.getJClass() |
Returns a class object that represents a statically generated code.
|
Modifier and Type | Field | Description |
---|---|---|
static Comparator<JClass> |
ClassNameComparator.theInstance |
Modifier and Type | Method | Description |
---|---|---|
int |
ClassNameComparator.compare(JClass l,
JClass r) |
Modifier and Type | Method | Description |
---|---|---|
List<JClass> |
S2JJAXBModel.getAllObjectFactories() |
Gets all the
ObjectFactory classes generated by the compilation. |
Modifier and Type | Method | Description |
---|---|---|
JClass |
BeanGenerator.addRuntime(Class clazz) |
|
JClass |
BeanGenerator.generateStaticClass(Class src,
JPackage out) |
Modifier and Type | Method | Description |
---|---|---|
protected JClass |
ContentListField.getCoreListType() |
|
protected JClass |
DummyListField.getCoreListType() |
|
protected JClass |
NoExtendedContentField.getCoreListType() |
|
protected JClass |
UntypedListField.getCoreListType() |
Modifier and Type | Method | Description |
---|---|---|
FieldRenderer |
FieldRendererFactory.getContentList(JClass coreList) |
|
FieldRenderer |
FieldRendererFactory.getDummyList(JClass coreList) |
|
FieldRenderer |
FieldRendererFactory.getList(JClass coreList) |
Constructor | Description |
---|---|
ContentListField(ClassOutlineImpl context,
CPropertyInfo prop,
JClass coreList) |
|
DummyListField(ClassOutlineImpl context,
CPropertyInfo prop,
JClass coreList) |
|
NoExtendedContentField(ClassOutlineImpl context,
CPropertyInfo prop,
JClass coreList) |
|
UntypedListField(ClassOutlineImpl context,
CPropertyInfo prop,
JClass coreList) |
|
UntypedListFieldRenderer(JClass coreList) |
|
UntypedListFieldRenderer(JClass coreList,
boolean dummy,
boolean content) |
Modifier and Type | Field | Description |
---|---|---|
JClass |
Model.rootClass |
If non-null, all the generated classes should eventually derive from this class.
|
JClass |
Model.rootInterface |
If non-null, all the generated interfaces should eventually derive from this interface.
|
Modifier and Type | Method | Description |
---|---|---|
JClass |
CAdapter.getAdapterClass(Outline o) |
|
JClass |
CClassInfo.toType(Outline o,
Aspect aspect) |
|
JClass |
CClassRef.toType(Outline o,
Aspect aspect) |
|
JClass |
CEnumLeafInfo.toType(Outline o,
Aspect aspect) |
Modifier and Type | Method | Description |
---|---|---|
void |
CClassInfo._implements(JClass c) |
Constructor | Description |
---|---|
CAdapter(JClass adapter) |
Modifier and Type | Method | Description |
---|---|---|
JClass |
EagerNClass.toType(Outline o,
Aspect aspect) |
|
JClass |
NClass.toType(Outline o,
Aspect aspect) |
Modifier and Type | Method | Description |
---|---|---|
NClass |
NavigatorImpl.ref(JClass c) |
Modifier and Type | Field | Description |
---|---|---|
JClass |
ClassOutline.implRef |
The implementation class that shall be used for reference.
|
Modifier and Type | Method | Description |
---|---|---|
JClass |
Outline.addRuntime(Class clazz) |
Copies the specified class into the user's package and returns
a reference to it.
|
Constructor | Description |
---|---|
ClassOutline(CClassInfo _target,
JDefinedClass exposedClass,
JClass implRef,
JDefinedClass _implClass) |
Modifier and Type | Method | Description |
---|---|---|
JClass |
BindInfo.getSuperClass() |
Gets the xjc:superClass customization if it's turned on.
|
JClass |
BindInfo.getSuperInterface() |
Gets the xjc:superInterface customization if it's turned on.
|
JClass |
BIContent.getType() |
Gets the type of this property, if any.
|
Copyright © 2018 Oracle Corporation. All rights reserved.