Top Description Fields Constructors Methods
com.sun.tools.xjc.generator.bean.field

pack-priv final Class ConstFieldRenderer

extends Object
implements FieldRenderer
Class Inheritance
All Implemented Interfaces
com.sun.tools.xjc.generator.bean.field.FieldRenderer
Imports
com.sun.tools.xjc.generator.bean.ClassOutlineImpl, com.sun.tools.xjc.model.CPropertyInfo, com.sun.tools.xjc.outline.FieldOutline

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.

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final FieldRenderer

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public FieldOutline
generate(ClassOutlineImpl outline, CPropertyInfo prop)

Implements com.sun.tools.xjc.generator.bean.field.FieldRenderer.generate.

Generates accesssors and fields for the given implementation class, then return FieldOutline for accessing the generated field.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fallbackback to summary
private final FieldRenderer fallback

Constructor Detail

ConstFieldRendererback to summary
protected ConstFieldRenderer(FieldRenderer fallback)

Method Detail

generateback to summary
public FieldOutline generate(ClassOutlineImpl outline, CPropertyInfo prop)

Implements com.sun.tools.xjc.generator.bean.field.FieldRenderer.generate.

Doc from com.sun.tools.xjc.generator.bean.field.FieldRenderer.generate.

Generates accesssors and fields for the given implementation class, then return FieldOutline for accessing the generated field.

Annotations
@Override