com.sun.tools.xjc.generator.bean
public final class BeanGenerator extends Object implements Outline
| Field Summary | |
|---|---|
| Map<CElementInfo,ElementOutlineImpl> | elements
elements that generate classes to the generated classes. |
| Method Summary | |
|---|---|
| JClass | addRuntime(Class clazz) |
| static Outline | generate(Model model, ErrorReceiver _errorReceiver)
Generates beans into code model according to the BGM,
and produces the reflection model.
|
| void | generateAdapterIfNecessary(CPropertyInfo prop, JAnnotatable field)
Generates XmlJavaTypeAdapter from PropertyInfo if necessary.
|
| void | generateClassList()
Generates a class that knows how to create an instance of JAXBContext
This is used in the debug mode so that a new properly configured JAXBContext object can be used. |
| JClass | generateStaticClass(Class src, JPackage out) |
| Iterable<? extends PackageOutline> | getAllPackageContexts() |
| Collection<ClassOutlineImpl> | getClasses() |
| CodeModelClassFactory | getClassFactory() |
| ClassOutlineImpl | getClazz(CClassInfo bean) |
| JCodeModel | getCodeModel() |
| JClassContainer | getContainer(CClassInfoParent parent, Aspect aspect) |
| ElementOutlineImpl | getElement(CElementInfo ei) |
| EnumOutline | getEnum(CEnumLeafInfo eli) |
| Collection<EnumOutline> | getEnums() |
| ErrorReceiver | getErrorReceiver() |
| FieldOutline | getField(CPropertyInfo prop) |
| Model | getModel() |
| PackageOutlineImpl | getPackageContext(JPackage p) |
| JPackage[] | getUsedPackages(Aspect aspect)
Returns all used JPackages.
|
| JType | resolve(CTypeRef ref, Aspect a) |
Parameters: _errorReceiver This object will receive all the errors discovered during the back-end stage.
Returns: returns a Outline which will in turn be used to further generate marshaller/unmarshaller, or null if the processing fails (errors should have been reported to the error recevier.)
This is used in the debug mode so that a new properly configured JAXBContext object can be used.
Returns: Given the same input, the order of packages in the array is always the same regardless of the environment.