| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final JFieldVar | $ref
Generated constant property on the interface. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public FieldAccessor | create(JExpression target)
Implements com. Creates a new |
| public JType | getRawType()
Implements com. Gets the type of the "raw value". |
| $ref | back to summary |
|---|---|
| private final JFieldVar $ref Generated constant property on the interface. | |
| ConstField | back to summary |
|---|---|
| pack-priv ConstField(ClassOutlineImpl outline, CPropertyInfo prop) | |
| create | back to summary |
|---|---|
| public FieldAccessor create(JExpression target) Implements com. Doc from com. Creates a new
| |
| 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.
| |
| 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. |
| 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.
| |