com.sun.tools.xjc.generator.bean.field
abstract class AbstractField extends Object implements FieldOutline
This class just provides a few utility methods and keep some important variables so that they can be readily accessed any time.
| Nested Class Summary | |
|---|---|
| protected abstract class | AbstractField.Accessor
Useful base class for implementing FieldAccessor. |
| Field Summary | |
|---|---|
| protected JCodeModel | codeModel |
| protected JType | exposedType
The publicly visible type of this field.
|
| protected JType | implType
The type of this field, which can hold all the possible types. |
| protected ClassOutlineImpl | outline |
| protected CPropertyInfo | prop |
| Constructor Summary | |
|---|---|
| protected | AbstractField(ClassOutlineImpl outline, CPropertyInfo prop) |
| Method Summary | |
|---|---|
| protected void | annotate(JAnnotatable field)
Annotate the field according to the recipes given as CPropertyInfo. |
| protected JExpression | castToImplType(JExpression exp)
Case from exposedType to implType if necessary. |
| protected JFieldVar | generateField(JType type)
Generates the field declaration. |
| protected Options | getOptions()
Gets the Options in the current compilation context. |
| CPropertyInfo | getPropertyInfo() |
| protected JType | getType(Aspect aspect)
Compute the type of a |
| protected List<Object> | listPossibleTypes(CPropertyInfo prop)
Returns contents to be added to javadoc. |
| ClassOutline | parent() |
Parameters: aspect