com.sun.tools.xjc.generator.bean
class ImplStructureStrategy extends Enum<ImplStructureStrategy>
The actual implementations of this interface is tightly coupled with the backend, but the front-end gets to choose which strategy to be used.
| Nested Class Summary | |
|---|---|
| static class | ImplStructureStrategy.Result |
| Field Summary | |
|---|---|
| static ImplStructureStrategy | BEAN_ONLY |
| static ImplStructureStrategy | INTF_AND_IMPL |
| static List<ImplStructureStrategy> | VALUES An immutable list containing the values comprising this enum class in the order they're declared. |
| Method Summary | |
|---|---|
| protected ImplStructureStrategy.Result | createClasses(Outline outline, CClassInfo bean)
Generates beans only. |
| protected ImplStructureStrategy.Result | createClasses(Outline outline, CClassInfo bean)
Generates the interfaces to describe beans (content interfaces)
and then the beans themselves in a hidden impl package.
|
| protected abstract ImplStructureStrategy.Result | createClasses(Outline outline, CClassInfo bean)
Creates class(es) for the given bean. |
| protected MethodWriter | createMethodWriter(ClassOutlineImpl target) |
| protected MethodWriter | createMethodWriter(ClassOutlineImpl target) |
| protected abstract MethodWriter | createMethodWriter(ClassOutlineImpl target) |
| List<ImplStructureStrategy> | family() Returns an immutable list containing the values comprising this enum class in the order they're declared. |
| protected JPackage | getPackage(JPackage pkg, Aspect a) |
| protected JPackage | getPackage(JPackage pkg, Aspect a) |
| protected abstract JPackage | getPackage(JPackage pkg, Aspect a)
Gets the specified aspect of the given package. |
| static ImplStructureStrategy | valueOf(String name) Static factory to return the enum constant pertaining to the given string name. |
| protected void | _extends(ClassOutlineImpl derived, ClassOutlineImpl base) |
| protected void | _extends(ClassOutlineImpl derived, ClassOutlineImpl base) |
| protected abstract void | _extends(ClassOutlineImpl derived, ClassOutlineImpl base)
Sets up an inheritance relationship. |
for(ImplStructureStrategy c : ImplStructureStrategy.VALUES)
System.out.println(c);VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.Returns: an immutable list containing the values comprising this enum class, in the order they're declared.
Throws: IllegalArgumentException if this enum class has no constant with the specified name.