com.sun.tools.xjc.generator.bean.field
Class ConstFieldRenderer
java.lang.Object
com.sun.tools.xjc.generator.bean.field.ConstFieldRenderer
- All Implemented Interfaces:
- FieldRenderer
final class ConstFieldRenderer
- extends Object
- implements FieldRenderer
FieldRenderer
for possibly constant field.
Since we don't know if the constant can be actually generated until
we get to the codemodel building phase, this renderer lazily
determines if it wants to generate a constant field or a normal property.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstFieldRenderer
protected ConstFieldRenderer(FieldRenderer fallback)
generate
public FieldOutline generate(ClassOutlineImpl outline,
CPropertyInfo prop)
- Description copied from interface:
FieldRenderer
- Generates accesssors and fields for the given implementation
class, then return
FieldOutline
for accessing
the generated field.
- Specified by:
generate
in interface FieldRenderer