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

Class ArrayField

final class ArrayField extends AbstractListField

Realizes a property as an "indexed property" as specified in the JAXB spec.

We will generate the following set of methods:

 T[] getX();
 T getX( int idx );
 void setX(T[] values);
 void setX( int idx, T value );
 
We still use List as our back storage. This renderer also handles boxing/unboxing if T is a boxed type.
Nested Class Summary
classArrayField.Accessor
Constructor Summary
ArrayField(ClassOutlineImpl context, CPropertyInfo prop)
Method Summary
protected JExpressioncastToImplTypeArray(JExpression exp)
Case from ArrayField to array of ArrayField .
ArrayField.Accessorcreate(JExpression targetObject)
voidgenerateAccessors()
protected voidgenerateArray()
protected JClassgetCoreListType()
JTypegetRawType()

Constructor Detail

ArrayField

ArrayField(ClassOutlineImpl context, CPropertyInfo prop)

Method Detail

castToImplTypeArray

protected final JExpression castToImplTypeArray(JExpression exp)
Case from ArrayField to array of ArrayField .

create

public ArrayField.Accessor create(JExpression targetObject)

generateAccessors

public void generateAccessors()

generateArray

protected final void generateArray()

getCoreListType

protected JClass getCoreListType()

getRawType

JType getRawType()