Class IsSetField
java.lang.Object
com.sun.tools.xjc.generator.bean.field.IsSetField
- All Implemented Interfaces:
FieldOutline
- Author:
- Kohsuke Kawaguchi ([email protected])
-
Field Summary
Modifier and TypeFieldDescriptionprotected final JCodeModel
protected final JType
The publicly visible type of this field.protected final JType
The type of this field, which can hold all the possible types.protected final ClassOutlineImpl
protected final CPropertyInfo
-
Constructor Summary
ModifierConstructorDescriptionprotected
IsSetField
(ClassOutlineImpl outline, CPropertyInfo prop, FieldOutline core, boolean unsetMethod, boolean issetMethod) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
annotate
(JAnnotatable field) Annotate the field according to the recipes given asCPropertyInfo
.protected final JExpression
Cast fromexposedType
toimplType
if necessary.create
(JExpression targetObject) Creates a newFieldAccessor
of this field for the specified object.protected final JFieldVar
generateField
(JType type) Generates the field declaration.protected final Options
Gets theOptions
in the current compilation context.final CPropertyInfo
Gets the corresponding model object.Gets the type of the "raw value".protected JType
Compute the type of aCPropertyInfo
Returns contents to be added to javadoc.final ClassOutline
parent()
Gets the enclosingClassOutline
.
-
Field Details
-
outline
-
prop
-
codeModel
-
implType
The type of this field, which can hold all the possible types. -
exposedType
The publicly visible type of this field. If we are generating value classes implType==exposedType.
-
-
Constructor Details
-
IsSetField
protected IsSetField(ClassOutlineImpl outline, CPropertyInfo prop, FieldOutline core, boolean unsetMethod, boolean issetMethod)
-
-
Method Details
-
getRawType
Description copied from interface:FieldOutline
Gets the type of the "raw value".This type can represent the entire value of this field. For fields that can carry multiple values, this is an array.
This type allows the client of the outline to generate code to set/get values from a property.
-
create
Description copied from interface:FieldOutline
Creates a newFieldAccessor
of this field for the specified object.- Parameters:
targetObject
- Evaluates to an object, and the field on this object will be accessed.
-
parent
Description copied from interface:FieldOutline
Gets the enclosingClassOutline
.- Specified by:
parent
in interfaceFieldOutline
-
getPropertyInfo
Description copied from interface:FieldOutline
Gets the corresponding model object.- Specified by:
getPropertyInfo
in interfaceFieldOutline
-
annotate
Annotate the field according to the recipes given asCPropertyInfo
. -
getOptions
Gets theOptions
in the current compilation context. -
generateField
Generates the field declaration. -
castToImplType
Cast fromexposedType
toimplType
if necessary. -
getType
Compute the type of aCPropertyInfo
-
listPossibleTypes
Returns contents to be added to javadoc.
-