FieldAccessorprotected class SingleField.Accessor
extends java.lang.Object
| Modifier | Constructor | Description |
|---|---|---|
protected |
Accessor(JExpression $target) |
| Modifier and Type | Method | Description |
|---|---|---|
JExpression |
hasSetValue() |
Return an expression that evaluates to true only when
this field has a set value(s).
|
void |
unsetValues(JBlock body) |
Generates a code fragment to remove any "set" value
and move this field to the "unset" state.
|
protected Accessor(JExpression $target)
public void unsetValues(JBlock body)
FieldAccessorbody - The code will be appended at the end of this block.public JExpression hasSetValue()
FieldAccessorCopyright © 2017 Oracle Corporation. All rights reserved.