Purpose: Model a element of code generation purposes.
| Modifier and Type | Field and Description |
|---|---|
| protected AccessLevel | |
| protected String | |
| protected static final String | |
| protected static final String | |
| protected String | |
| protected static final String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| protected static String | |
| public AccessLevel | |
| public String | |
| public String | |
| private static String | |
| protected static Set | parseForTypeNames(String longString)
Returns a set of java.lang.String type names included in longString. |
| private static Set | |
| protected static void | |
| public void | |
| public void | |
| public void | |
| private static String | |
| public String | |
| public void | |
| public abstract void |
| accessLevel | back to summary |
|---|---|
| protected AccessLevel accessLevel | |
| comment | back to summary |
|---|---|
| protected String comment | |
| JAVA_LANG_PACKAGE_NAME | back to summary |
|---|---|
| protected static final String JAVA_LANG_PACKAGE_NAME | |
| JAVA_UTIL_PACKAGE_NAME | back to summary |
|---|---|
| protected static final String JAVA_UTIL_PACKAGE_NAME | |
| name | back to summary |
|---|---|
| protected String name | |
| TOPLINK_INDIRECTION_PACKAGE_NAME | back to summary |
|---|---|
| protected static final String TOPLINK_INDIRECTION_PACKAGE_NAME | |
| CodeDefinition | back to summary |
|---|---|
| protected CodeDefinition() | |
| adjustmentNeededForType | back to summary |
|---|---|
| private static boolean adjustmentNeededForType(String typeName, Map<String, Set<String>> typeNameMap) | |
| adjustTypeName | back to summary |
|---|---|
| protected static String adjustTypeName(String typeName, Map<String, Set<String>> typeNameMap) Compares the typeName to those stored in the typeNameMap. If the short name of the typeName is unambiguous (only one package for that short name in the Map), removes the package name and returns the short name, else returns the whole thing. Assumes that typeName contains only a package name (optional) and a short name, potentially with subtended brackets. (e.g. int -> int, java.util.Vector -> Vector, java.lang.Boolean[] -> Boolean[], etc.) | |
| getAccessLevel | back to summary |
|---|---|
| public AccessLevel getAccessLevel() | |
| getComment | back to summary |
|---|---|
| public String getComment() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| packageName | back to summary |
|---|---|
| private static String packageName(String typeName) | |
| parseForTypeNames | back to summary |
|---|---|
| protected static Set Returns a set of java.lang.String type names included in longString. Will only look for ValueHolder, java.util collection types, and TopLink indirect collection types. All other searches too intractable at this point. | |
| parseForTypeNamesInPackage | back to summary |
|---|---|
| private static Set | |
| putTypeNameInMap | back to summary |
|---|---|
| protected static void putTypeNameInMap(String typeName, Map<String, Set<String>> typeNameMap) Used for calculating imports. @see org.eclipse.persistence.internal.codegen.ClassDefinition#calculateImports() | |
| setAccessLevel | back to summary |
|---|---|
| public void setAccessLevel(AccessLevel accessLevel) | |
| setComment | back to summary |
|---|---|
| public void setComment(String comment) | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| shortName | back to summary |
|---|---|
| private static String shortName(String typeName) Removes the package name, if there is one. Also removes any trailing brackets.
Assumes that typeName contains only a package name (optional) and a short name,
potentially with subtended brackets.
(e.g. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| write | back to summary |
|---|---|
| public void write(CodeGenerator generator) Write the code out to the generator's stream. | |
| writeBody | back to summary |
|---|---|
| public abstract void writeBody(CodeGenerator generator) Write the code out to the generator's stream. | |