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

Class AbstractFieldWithVar

abstract class AbstractFieldWithVar extends AbstractField

Nested Class Summary
protected abstract classAbstractFieldWithVar.Accessor
Constructor Summary
AbstractFieldWithVar(ClassOutlineImpl outline, CPropertyInfo prop)
Invoke createField after calling the constructor.
Method Summary
protected voidcreateField()
protected abstract JTypegetFieldType()
Returns the type used to store the value of the field in memory.
protected StringgetGetterMethod()
Gets the name of the getter method.
JTypegetRawType()
protected JFieldVarref()

Constructor Detail

AbstractFieldWithVar

AbstractFieldWithVar(ClassOutlineImpl outline, CPropertyInfo prop)
Invoke createField after calling the constructor.

Method Detail

createField

protected final void createField()

getFieldType

protected abstract JType getFieldType()
Returns the type used to store the value of the field in memory.

getGetterMethod

protected String getGetterMethod()
Gets the name of the getter method.

This encapsulation is necessary because sometimes we use {@code isXXXX} as the method name.

getRawType

public final JType getRawType()

ref

protected JFieldVar ref()