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

java.lang.Object
  extended by com.sun.tools.xjc.generator.bean.field.AbstractField
      extended by com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar
          extended by com.sun.tools.xjc.generator.bean.field.UnboxedField
All Implemented Interfaces:
FieldOutline

 class UnboxedField
extends AbstractFieldWithVar

A required primitive property.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar
AbstractFieldWithVar.Accessor
 
Field Summary
 
Fields inherited from class com.sun.tools.xjc.generator.bean.field.AbstractField
codeModel, exposedType, implType, outline, prop
 
Constructor Summary
UnboxedField(ClassOutlineImpl outline, CPropertyInfo prop)
           
 
Method Summary
 FieldAccessor create(com.sun.codemodel.JExpression targetObject)
          Creates a new FieldAccessor of this field for the specified object.
protected  com.sun.codemodel.JType getFieldType()
          Returns the type used to store the value of the field in memory.
 com.sun.codemodel.JBlock getOnSetEventHandler()
          Get a code block that will be executed when the state of this field changes from a null state to a non-null state.
protected  com.sun.codemodel.JType getType(Aspect aspect)
          Compute the type of a CPropertyInfo
 
Methods inherited from class com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar
createField, getGetterMethod, getRawType, ref
 
Methods inherited from class com.sun.tools.xjc.generator.bean.field.AbstractField
annotate, castToImplType, generateField, getPropertyInfo, listPossibleTypes, parent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnboxedField

UnboxedField(ClassOutlineImpl outline,
             CPropertyInfo prop)
Method Detail

getType

protected com.sun.codemodel.JType getType(Aspect aspect)
Description copied from class: AbstractField
Compute the type of a CPropertyInfo

Overrides:
getType in class AbstractField

getOnSetEventHandler

public com.sun.codemodel.JBlock getOnSetEventHandler()
Description copied from interface: FieldOutline
Get a code block that will be executed when the state of this field changes from a null state to a non-null state. (the unset state to the set state.)

This method can be called only after the generate method is called.

Returns:
Always return non-null object.

getFieldType

protected com.sun.codemodel.JType getFieldType()
Description copied from class: AbstractFieldWithVar
Returns the type used to store the value of the field in memory.

Specified by:
getFieldType in class AbstractFieldWithVar

create

public FieldAccessor create(com.sun.codemodel.JExpression targetObject)
Description copied from interface: FieldOutline
Creates a new FieldAccessor of this field for the specified object.

Parameters:
targetObject - Evaluates to an object, and the field on this object will be accessed.