FieldOutline.
This class just provides a few utility methods and keep some important variables so that they can be readily accessed any time.
| Modifier and Type | Class and Description |
|---|---|
| protected abstract class | AbstractField.
Useful base class for implementing |
| Modifier and Type | Field and Description |
|---|---|
| protected final JCodeModel | |
| protected final JType | exposedType
The publicly visible type of this field. |
| protected final JType | implType
The type of this field, which can hold all the possible types. |
| protected final ClassOutlineImpl | |
| protected final CPropertyInfo | |
| private XmlElementsWriter |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| private void | |
| private void | |
| private void | |
| protected final JExpression | |
| protected final JFieldVar | |
| protected final Options | |
| public final CPropertyInfo | getPropertyInfo()
Implements com. Gets the corresponding model object. |
| protected JType | |
| private XmlElementWriter | |
| protected final List | |
| public final ClassOutline | |
| private JType | |
| private void | writeXmlElementAnnotation(JAnnotatable field, CTypeRef ctype, JType jtype, boolean
true if the method might need to generate XmlElements checkWrapper)Generate the simplest XmlElement annotation possible taking all semantic optimizations into account. |
| codeModel | back to summary |
|---|---|
| protected final JCodeModel codeModel | |
| exposedType | back to summary |
|---|---|
| protected final JType exposedType The publicly visible type of this field. If we are generating value classes implType==exposedType. | |
| implType | back to summary |
|---|---|
| protected final JType implType The type of this field, which can hold all the possible types. | |
| outline | back to summary |
|---|---|
| protected final ClassOutlineImpl outline | |
| prop | back to summary |
|---|---|
| protected final CPropertyInfo prop | |
| xesw | back to summary |
|---|---|
| private XmlElementsWriter xesw | |
| AbstractField | back to summary |
|---|---|
| protected AbstractField(ClassOutlineImpl outline, CPropertyInfo prop) | |
| annotate | back to summary |
|---|---|
| protected void annotate(JAnnotatable field) Annotate the field according to the recipes given as | |
| annotateAttribute | back to summary |
|---|---|
| private void annotateAttribute(JAnnotatable field) Annotate the attribute property 'field' | |
| annotateElement | back to summary |
|---|---|
| private void annotateElement(JAnnotatable field) Annotate the element property 'field' | |
| annotateReference | back to summary |
|---|---|
| private void annotateReference(JAnnotatable field) | |
| castToImplType | back to summary |
|---|---|
| protected final JExpression castToImplType(JExpression exp) Cast from | |
| generateField | back to summary |
|---|---|
| protected final JFieldVar generateField(JType type) Generates the field declaration. | |
| getOptions | back to summary |
|---|---|
| protected final Options getOptions() Gets the | |
| getPropertyInfo | back to summary |
|---|---|
| public final CPropertyInfo getPropertyInfo() Implements com. Doc from com. Gets the corresponding model object.
| |
| getType | back to summary |
|---|---|
| protected JType getType(final Aspect aspect) Compute the type of a | |
| getXew | back to summary |
|---|---|
| private XmlElementWriter getXew(boolean checkWrapper, JAnnotatable field) | |
| listPossibleTypes | back to summary |
|---|---|
| protected final List Returns contents to be added to javadoc. | |
| parent | back to summary |
|---|---|
| public final ClassOutline parent() Implements com. Doc from com. Gets the enclosing
| |
| resolve | back to summary |
|---|---|
| private JType resolve(CTypeRef typeRef, Aspect a) return the Java type for the given type reference in the model. | |
| writeXmlElementAnnotation | back to summary |
|---|---|
| private void writeXmlElementAnnotation(JAnnotatable field, CTypeRef ctype, JType jtype, boolean checkWrapper) Generate the simplest XmlElement annotation possible taking all semantic optimizations into account. This method is essentially equivalent to: xew.name(ctype.getTagName().getLocalPart()) .namespace(ctype.getTagName().getNamespaceURI()) .type(jtype) .defaultValue(ctype.getDefaultValue());
| |
FieldAccessor.
| Modifier and Type | Field and Description |
|---|---|
| protected final JExpression | $target
Evaluates to the target object this accessor should access. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final CPropertyInfo | getPropertyInfo()
Implements com. Short for |
| public final FieldOutline | owner()
Implements com. Gets the |
| $target | back to summary |
|---|---|
| protected final JExpression $target Evaluates to the target object this accessor should access. | |
| Accessor | back to summary |
|---|---|
| protected Accessor(JExpression $target) | |
| getPropertyInfo | back to summary |
|---|---|
| public final CPropertyInfo getPropertyInfo() Implements com. Doc from com. Short for
| |
| owner | back to summary |
|---|---|
| public final FieldOutline owner() Implements com. Doc from com. Gets the
| |