Top Description Fields Constructors Methods
com.sun.tools.xjc.generator.bean.field

public Class UnboxedField

extends AbstractFieldWithVar
Class Inheritance
Imports
com.sun.codemodel.JBlock, .JExpr, .JExpression, .JMethod, .JPrimitiveType, .JType, .JVar, com.sun.tools.xjc.generator.bean.ClassOutlineImpl, .MethodWriter, com.sun.tools.xjc.model.CPropertyInfo, com.sun.tools.xjc.outline.Aspect, .FieldAccessor, org.glassfish.jaxb.core.api.impl.NameConverter

A required primitive property.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final JPrimitiveType
ptype

The primitive version of implType and exposedType.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public FieldAccessor
create(JExpression targetObject)

Implements com.sun.tools.xjc.outline.FieldOutline.create.

Creates a new FieldAccessor of this field for the specified object.

protected JType
getFieldType()

Implements abstract com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.getFieldType.

Returns the type used to store the value of the field in memory.

protected JType
Inherited from com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar:
createFieldgetGetterMethodgetRawTyperef

Field Detail

ptypeback to summary
private final JPrimitiveType ptype

The primitive version of implType and exposedType.

Constructor Detail

UnboxedFieldback to summary
protected UnboxedField(ClassOutlineImpl outline, CPropertyInfo prop)

Method Detail

createback to summary
public FieldAccessor create(JExpression targetObject)

Implements com.sun.tools.xjc.outline.FieldOutline.create.

Doc from com.sun.tools.xjc.outline.FieldOutline.create.

Creates a new FieldAccessor of this field for the specified object.

Annotations
@Override
getFieldTypeback to summary
protected JType getFieldType()

Implements abstract com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.getFieldType.

Doc from com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.getFieldType.

Returns the type used to store the value of the field in memory.

Annotations
@Override
getTypeback to summary
protected JType getType(Aspect aspect)

Overrides com.sun.tools.xjc.generator.bean.field.AbstractField.getType.

Doc from com.sun.tools.xjc.generator.bean.field.AbstractField.getType.

Compute the type of a CPropertyInfo

Annotations
@Override