com.sun.tools.xjc.generator.bean.field
Class ConstFieldRenderer

java.lang.Object
  extended by 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.


Constructor Summary
protected ConstFieldRenderer(FieldRenderer fallback)
           
 
Method Summary
 FieldOutline generate(ClassOutlineImpl outline, CPropertyInfo prop)
          Generates accesssors and fields for the given implementation class, then return FieldOutline for accessing the generated field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstFieldRenderer

protected ConstFieldRenderer(FieldRenderer fallback)
Method Detail

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