FieldRendererpublic class IsSetFieldRenderer extends java.lang.Object implements FieldRenderer
This follows the decorator design pattern so that the caller of FieldRenderer can forget about details of the method generation.
| Constructor | Description |
|---|---|
IsSetFieldRenderer(FieldRenderer core,
boolean generateUnSetMethod,
boolean generateIsSetMethod) |
| Modifier and Type | Method | Description |
|---|---|---|
FieldOutline |
generate(ClassOutlineImpl context,
CPropertyInfo prop) |
Generates accesssors and fields for the given implementation
class, then return
FieldOutline for accessing
the generated field. |
public IsSetFieldRenderer(FieldRenderer core, boolean generateUnSetMethod, boolean generateIsSetMethod)
public FieldOutline generate(ClassOutlineImpl context, CPropertyInfo prop)
FieldRendererFieldOutline for accessing
the generated field.generate in interface FieldRendererCopyright © 2017 Oracle Corporation. All rights reserved.