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