org.jvnet.hyperjaxb3.xjc.generator.bean.field
Class AbstractWrappingField

java.lang.Object
  extended by org.jvnet.hyperjaxb3.xjc.generator.bean.field.AbstractField
      extended by org.jvnet.hyperjaxb3.xjc.generator.bean.field.AbstractWrappingField
All Implemented Interfaces:
com.sun.tools.xjc.outline.FieldOutline
Direct Known Subclasses:
AdaptingWrappingField, JAXBElementNameField, JAXBElementValueField, SingleEnumValueWrappingField, SingleMarshallingField, SingleMarshallingReferenceField, SingleWrappingClassInfoField, SingleWrappingReferenceObjectField

public abstract class AbstractWrappingField
extends AbstractField


Field Summary
protected  com.sun.tools.xjc.model.CPropertyInfo core
           
protected  com.sun.codemodel.JFieldRef coreField
           
protected  com.sun.codemodel.JMethod getter
           
protected  com.sun.codemodel.JMethod setter
           
 
Fields inherited from class org.jvnet.hyperjaxb3.xjc.generator.bean.field.AbstractField
codeModel, exposedType, implType, outline, prop
 
Constructor Summary
AbstractWrappingField(com.sun.tools.xjc.generator.bean.ClassOutlineImpl context, com.sun.tools.xjc.model.CPropertyInfo prop, com.sun.tools.xjc.model.CPropertyInfo core)
           
 
Method Summary
 com.sun.tools.xjc.outline.FieldAccessor create(com.sun.codemodel.JExpression targetObject)
           
protected  com.sun.codemodel.JMethod createGetter()
           
protected  com.sun.codemodel.JMethod createSetter()
           
 void generateAccessors()
           
 com.sun.codemodel.JExpression getCore()
           
 com.sun.codemodel.JType getFieldType()
           
protected  String getGetterName()
           
 com.sun.codemodel.JType getRawType()
           
 com.sun.codemodel.JClass getScope(com.sun.tools.xjc.model.CClassInfo scope)
           
protected  String getSetterName()
           
 void setCore(com.sun.codemodel.JBlock block, com.sun.codemodel.JExpression value)
           
protected abstract  com.sun.codemodel.JExpression unwrap(com.sun.codemodel.JExpression source)
           
 com.sun.codemodel.JExpression unwrapCondifiton(com.sun.codemodel.JExpression source)
           
protected abstract  com.sun.codemodel.JExpression wrap(com.sun.codemodel.JExpression target)
           
 com.sun.codemodel.JExpression wrapCondifiton(com.sun.codemodel.JExpression source)
           
 
Methods inherited from class org.jvnet.hyperjaxb3.xjc.generator.bean.field.AbstractField
annotate, castToImplType, generateField, getPropertyInfo, getType, getType, listPossibleTypes, parent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

core

protected final com.sun.tools.xjc.model.CPropertyInfo core

getter

protected com.sun.codemodel.JMethod getter

setter

protected com.sun.codemodel.JMethod setter

coreField

protected final com.sun.codemodel.JFieldRef coreField
Constructor Detail

AbstractWrappingField

public AbstractWrappingField(com.sun.tools.xjc.generator.bean.ClassOutlineImpl context,
                             com.sun.tools.xjc.model.CPropertyInfo prop,
                             com.sun.tools.xjc.model.CPropertyInfo core)
Method Detail

getCore

public com.sun.codemodel.JExpression getCore()

setCore

public void setCore(com.sun.codemodel.JBlock block,
                    com.sun.codemodel.JExpression value)

generateAccessors

public void generateAccessors()

createSetter

protected com.sun.codemodel.JMethod createSetter()

getSetterName

protected String getSetterName()

getGetterName

protected String getGetterName()

createGetter

protected com.sun.codemodel.JMethod createGetter()

unwrap

protected abstract com.sun.codemodel.JExpression unwrap(com.sun.codemodel.JExpression source)

unwrapCondifiton

public com.sun.codemodel.JExpression unwrapCondifiton(com.sun.codemodel.JExpression source)

wrap

protected abstract com.sun.codemodel.JExpression wrap(com.sun.codemodel.JExpression target)

wrapCondifiton

public com.sun.codemodel.JExpression wrapCondifiton(com.sun.codemodel.JExpression source)

getFieldType

public final com.sun.codemodel.JType getFieldType()

create

public com.sun.tools.xjc.outline.FieldAccessor create(com.sun.codemodel.JExpression targetObject)

getRawType

public final com.sun.codemodel.JType getRawType()

getScope

public com.sun.codemodel.JClass getScope(com.sun.tools.xjc.model.CClassInfo scope)


Copyright © 2005-2011. All Rights Reserved.