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

public class ConstFieldRenderer
extends java.lang.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.


Field Summary
 
Fields inherited from interface com.sun.tools.xjc.generator.bean.field.FieldRenderer
ARRAY, DEFAULT, JAXB_DEFAULT, REQUIRED_UNBOXED, SINGLE, SINGLE_PRIMITIVE_ACCESS
 
Constructor Summary
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

public 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