| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final FieldOutline | |
| private final boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| protected | IsSetField(ClassOutlineImpl outline, CPropertyInfo prop, FieldOutline core, boolean unsetMethod, boolean issetMethod)
|
| Modifier and Type | Method and Description |
|---|---|
| public FieldAccessor | create(JExpression targetObject)
Implements com. Creates a new |
| private void | |
| public JType | getRawType()
Implements com. Gets the type of the "raw value". |
| core | back to summary |
|---|---|
| private final FieldOutline core | |
| generateIsSetMethod | back to summary |
|---|---|
| private final boolean generateIsSetMethod | |
| generateUnSetMethod | back to summary |
|---|---|
| private final boolean generateUnSetMethod | |
| IsSetField | back to summary |
|---|---|
| protected IsSetField(ClassOutlineImpl outline, CPropertyInfo prop, FieldOutline core, boolean unsetMethod, boolean issetMethod) | |
| create | back to summary |
|---|---|
| public FieldAccessor create(JExpression targetObject) Implements com. Doc from com. Creates a new
| |
| generate | back to summary |
|---|---|
| private void generate(ClassOutlineImpl outline, CPropertyInfo prop) | |
| getRawType | back to summary |
|---|---|
| public JType getRawType() Implements com. Doc from com. 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final FieldAccessor |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | fromRawValue(JBlock block, String uniqueName, JExpression $var)
Implements com. Sets the value of the field from the specified expression. |
| public JExpression | hasSetValue()
Implements com. Return an expression that evaluates to true only when this field has a set value(s). |
| public void | toRawValue(JBlock block, JVar $var)
Implements com. Dumps everything in this field into the given variable. |
| public void | unsetValues(JBlock body)
Implements com. Generates a code fragment to remove any "set" value and move this field to the "unset" state. |
| core | back to summary |
|---|---|
| private final FieldAccessor core | |
| Accessor | back to summary |
|---|---|
| pack-priv Accessor(JExpression $target) | |
| fromRawValue | back to summary |
|---|---|
| public void fromRawValue(JBlock block, String uniqueName, JExpression $var) Implements com. Doc from com. Sets the value of the field from the specified expression. This generates code that accesses the field from outside.
| |
| hasSetValue | back to summary |
|---|---|
| public JExpression hasSetValue() Implements com. Doc from com. Return an expression that evaluates to true only when this field has a set value(s).
| |
| toRawValue | back to summary |
|---|---|
| public void toRawValue(JBlock block, JVar $var) Implements com. Doc from com. Dumps everything in this field into the given variable. This generates code that accesses the field from outside.
| |
| unsetValues | back to summary |
|---|---|
| public void unsetValues(JBlock body) Implements com. Doc from com. Generates a code fragment to remove any "set" value and move this field to the "unset" state.
| |