com.sun.tools.xjc.generator.bean.field
abstract class AbstractListField extends AbstractField
For performance reasons, the actual list object used to store data is lazily created.
| Nested Class Summary | |
|---|---|
| protected abstract class | AbstractListField.Accessor |
| Field Summary | |
|---|---|
| protected JFieldVar | field The field that stores the list. |
| protected JClass | listT |
| protected JPrimitiveType | primitiveType
If this collection property is a collection of a primitive type,
this variable refers to that primitive type.
|
| Constructor Summary | |
|---|---|
| protected | AbstractListField(ClassOutlineImpl outline, CPropertyInfo prop, boolean eagerInstanciation)
Call generate method right after this. |
| Method Summary | |
|---|---|
| protected void | fixNullRef(JBlock block)
Generates statement(s) so that the successive Accessor with
true will always return a non-null list.
|
| protected void | generate() |
| protected abstract void | generateAccessors() Generates accessor methods. |
| protected abstract JClass | getCoreListType()
Concrete class that implements the List interface.
|
| JType | getRawType() |