public class IsSetFieldRenderer extends Object implements FieldRenderer
This follows the decorator design pattern so that the caller of FieldRenderer can forget about details of the method generation.
Constructor and Description |
---|
IsSetFieldRenderer(FieldRenderer core,
boolean generateUnSetMethod,
boolean generateIsSetMethod) |
Modifier and Type | Method and 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)
FieldRenderer
FieldOutline
for accessing
the generated field.generate
in interface FieldRenderer
Copyright © 2017 JBoss by Red Hat. All rights reserved.