| Modifier and Type | Field and Description |
|---|---|
| private final Map | classes
all |
| private final JCodeModel | |
| private final CodeModelClassFactory | codeModelClassFactory
Simplifies class/interface creation and collision detection. |
| pack-priv final Map | elements
elements that generate classes to the generated classes. |
| private final Map | enums
all |
| private final ErrorReceiver | |
| private final CClassInfoParent. | |
| private final Map | fields
for each property, the information about the generated field. |
| private final Map | generatedRuntime
Generated runtime classes. |
| private final CClassInfoParent. | |
| private static final String | JAXB_PACKAGE
JAXB module name. |
| private final Model | model
the model object which we are processing. |
| private final Map | packageContexts
all |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public JClass | addRuntime(Class<?> clazz)
Implements com. Copies the specified class into the user's package and returns a reference to it. |
| public static Outline | Returns: returns aOutline 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 object will receive all the errors discovered
during the back-end stage. _errorReceiver)Generates beans into code model according to the BGM, and produces the reflection model. |
| public void | generateAdapterIfNecessary(CPropertyInfo prop, JAnnotatable field)
Generates |
| private void | |
| private void | |
| private ClassOutlineImpl | generateClassDef(CClassInfo bean)
Generates the minimum |
| private 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
|
| private void | |
| private EnumOutline | generateEnumDef(CEnumLeafInfo e)
Generates the minimum |
| private FieldOutline | generateFieldDecl(ClassOutlineImpl cc, CPropertyInfo prop)
Determines the FieldRenderer used for the given FieldUse, then generates the field declaration and accessor methods. |
| public JClass | |
| public Iterable | getAllPackageContexts()
Implements com. Gets all package-wise contexts at once. |
| public Collection | getClasses()
Implements com. Returns all the |
| public CodeModelClassFactory | getClassFactory()
Implements com. Gets a reference to
|
| public ClassOutlineImpl | getClazz(CClassInfo bean)
Implements com. Obtains per-class context information. |
| public JCodeModel | getCodeModel()
Implements com. Short for |
| public JClassContainer | getContainer(CClassInfoParent parent, Aspect aspect)
Implements com.
|
| public ElementOutline | getElement(CElementInfo ei)
Implements com. If the |
| public EnumOutline | |
| public Collection | |
| public ErrorReceiver | getErrorReceiver()
Implements com. Any error during the back-end proccessing should be sent to this object. |
| public FieldOutline | getField(CPropertyInfo prop)
Implements com. Gets the object that wraps the generated field for a given |
| public Model | |
| public PackageOutlineImpl | getPackageContext(JPackage p)
Implements com. Gets per-package context information. |
| private String | |
| public JPackage[] | Returns: Given the same input, the order of packages in the array is always the same regardless of the environment.Returns all used JPackages. |
| public JType | resolve(CTypeRef ref, Aspect a)
Implements com. Resolves a type reference to the actual (possibly generated) type. |
| private void |
| classes | back to summary |
|---|---|
| private final Map<CClassInfo, ClassOutlineImpl> classes all | |
| codeModel | back to summary |
|---|---|
| private final JCodeModel codeModel | |
| codeModelClassFactory | back to summary |
|---|---|
| private final CodeModelClassFactory codeModelClassFactory Simplifies class/interface creation and collision detection. | |
| elements | back to summary |
|---|---|
| pack-priv final Map<CElementInfo, ElementOutlineImpl> elements elements that generate classes to the generated classes. | |
| enums | back to summary |
|---|---|
| private final Map<CEnumLeafInfo, EnumOutline> enums all | |
| errorReceiver | back to summary |
|---|---|
| private final ErrorReceiver errorReceiver | |
| exposedContainerBuilder | back to summary |
|---|---|
| private final CClassInfoParent. | |
| fields | back to summary |
|---|---|
| private final Map<CPropertyInfo, FieldOutline> fields for each property, the information about the generated field. | |
| generatedRuntime | back to summary |
|---|---|
| private final Map<Class<?>, JClass> generatedRuntime Generated runtime classes. | |
| implContainerBuilder | back to summary |
|---|---|
| private final CClassInfoParent. | |
| JAXB_PACKAGE | back to summary |
|---|---|
| private static final String JAXB_PACKAGE JAXB module name. JAXB dependency is mandatory in generated Java module. | |
| model | back to summary |
|---|---|
| private final Model model the model object which we are processing. | |
| packageContexts | back to summary |
|---|---|
| private final Map<JPackage, PackageOutlineImpl> packageContexts all | |
| BeanGenerator | back to summary |
|---|---|
| private BeanGenerator(Model _model, ErrorReceiver _errorReceiver) | |
| addRuntime | back to summary |
|---|---|
| public JClass addRuntime(Class<?> clazz) Implements com. Doc from com. Copies the specified class into the user's package and returns a reference to it.
| |
| generate | back to summary |
|---|---|
| public static Outline generate(Model model, ErrorReceiver _errorReceiver) Generates beans into code model according to the BGM, and produces the reflection model.
| |
| generateAdapterIfNecessary | back to summary |
|---|---|
| public void generateAdapterIfNecessary(CPropertyInfo prop, JAnnotatable field) Generates | |
| generateAttributeWildcard | back to summary |
|---|---|
| private void generateAttributeWildcard(ClassOutlineImpl cc) Generates an attribute wildcard property on a class. | |
| generateClassBody | back to summary |
|---|---|
| private void generateClassBody(ClassOutlineImpl cc) Generates the body of a class. | |
| generateClassDef | back to summary |
|---|---|
| private ClassOutlineImpl generateClassDef(CClassInfo bean) Generates the minimum | |
| generateClassList | back to summary |
|---|---|
| private 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
| |
| generateEnumBody | back to summary |
|---|---|
| private void generateEnumBody(EnumOutline eo) | |
| generateEnumDef | back to summary |
|---|---|
| private EnumOutline generateEnumDef(CEnumLeafInfo e) Generates the minimum | |
| generateFieldDecl | back to summary |
|---|---|
| private FieldOutline generateFieldDecl(ClassOutlineImpl cc, CPropertyInfo prop) Determines the FieldRenderer used for the given FieldUse,
then generates the field declaration and accessor methods.
The | |
| generateStaticClass | back to summary |
|---|---|
| public JClass generateStaticClass(Class<?> src, JPackage out) | |
| getAllPackageContexts | back to summary |
|---|---|
| public Iterable Implements com. Doc from com. Gets all package-wise contexts at once.
| |
| getClasses | back to summary |
|---|---|
| public Collection Implements com. Doc from com. Returns all the
| |
| getClassFactory | back to summary |
|---|---|
| public CodeModelClassFactory getClassFactory() Implements com. Doc from com. Gets a reference to
| |
| getClazz | back to summary |
|---|---|
| public ClassOutlineImpl getClazz(CClassInfo bean) Implements com. Doc from com. Obtains per-class context information.
| |
| getCodeModel | back to summary |
|---|---|
| public JCodeModel getCodeModel() Implements com. Doc from com. Short for
| |
| getContainer | back to summary |
|---|---|
| public JClassContainer getContainer(CClassInfoParent parent, Aspect aspect) Implements com.
| |
| getElement | back to summary |
|---|---|
| public ElementOutline getElement(CElementInfo ei) Implements com. Doc from com. If the
| |
| getEnum | back to summary |
|---|---|
| public EnumOutline getEnum(CEnumLeafInfo eli) Implements com.
| |
| getEnums | back to summary |
|---|---|
| public Collection Implements com. Doc from com. Gets all the
| |
| getErrorReceiver | back to summary |
|---|---|
| public ErrorReceiver getErrorReceiver() Implements com. Doc from com. Any error during the back-end proccessing should be sent to this object.
| |
| getField | back to summary |
|---|---|
| public FieldOutline getField(CPropertyInfo prop) Implements com. Doc from com. Gets the object that wraps the generated field for a given
| |
| getModel | back to summary |
|---|---|
| public Model getModel() Implements com. Doc from com. This outline is for this model.
| |
| getPackageContext | back to summary |
|---|---|
| public PackageOutlineImpl getPackageContext(JPackage p) Implements com. Doc from com. Gets per-package context information. This method works for every visible package (those packages which are supposed to be used by client applications.)
| |
| getShortName | back to summary |
|---|---|
| private String getShortName(Class<?> src) | |
| getUsedPackages | back to summary |
|---|---|
| public JPackage[] getUsedPackages(Aspect aspect) Returns all used JPackages. A JPackage is considered as "used" if a ClassItem or a InterfaceItem resides in that package. This value is dynamically calculated every time because one can freely remove ClassItem/InterfaceItem.
| |
| resolve | back to summary |
|---|---|
| public JType resolve(CTypeRef ref, Aspect a) Implements com. Doc from com. Resolves a type reference to the actual (possibly generated) type.
Short for
| |
| writeTypeName | back to summary |
|---|---|
| private void writeTypeName(QName typeName, XmlTypeWriter xtw, String mostUsedNamespaceURI) | |