org.jvnet.hyperjaxb3.xjc.generator.bean.field
Class UntypedSettableListField
java.lang.Object
org.jvnet.hyperjaxb3.xjc.generator.bean.field.AbstractField
org.jvnet.hyperjaxb3.xjc.generator.bean.field.UntypedListField
org.jvnet.hyperjaxb3.xjc.generator.bean.field.UntypedSettableListField
- All Implemented Interfaces:
- com.sun.tools.xjc.outline.FieldOutline
public class UntypedSettableListField
- extends UntypedListField
|
Field Summary |
protected com.sun.codemodel.JFieldVar |
field
The field that stores the list. |
protected com.sun.codemodel.JClass |
listT
|
protected com.sun.codemodel.JPrimitiveType |
primitiveType
If this collection property is a collection of a primitive type,
this variable refers to that primitive type. |
|
Constructor Summary |
protected |
UntypedSettableListField(com.sun.tools.xjc.generator.bean.ClassOutlineImpl classOutline,
com.sun.tools.xjc.model.CPropertyInfo propertyInfo,
com.sun.codemodel.JClass coreList)
|
|
Method Summary |
protected void |
fixNullRef(com.sun.codemodel.JBlock block)
Generates statement(s) so that the successive Accessor#ref(boolean) with
true will always return a non-null list. |
protected void |
generate()
|
void |
generateAccessors()
Generates accessor methods. |
com.sun.codemodel.JType |
getRawType()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
field
protected com.sun.codemodel.JFieldVar field
- The field that stores the list.
primitiveType
protected final com.sun.codemodel.JPrimitiveType primitiveType
- If this collection property is a collection of a primitive type,
this variable refers to that primitive type.
Otherwise null.
listT
protected final com.sun.codemodel.JClass listT
UntypedSettableListField
protected UntypedSettableListField(com.sun.tools.xjc.generator.bean.ClassOutlineImpl classOutline,
com.sun.tools.xjc.model.CPropertyInfo propertyInfo,
com.sun.codemodel.JClass coreList)
generateAccessors
public void generateAccessors()
- Generates accessor methods.
- Overrides:
generateAccessors in class UntypedListField
generate
protected final void generate()
fixNullRef
protected final void fixNullRef(com.sun.codemodel.JBlock block)
- Generates statement(s) so that the successive
Accessor#ref(boolean) with
true will always return a non-null list.
This is useful to avoid generating redundant internal getter.
getRawType
public final com.sun.codemodel.JType getRawType()
Copyright © 2005-2014. All Rights Reserved.