CollectionMemberAndAccessorFactory
, IdentityMemberAndAccessorFactory
public class FieldMemberAndAccessorFactory
extends java.lang.Object
Constructor | Description |
---|---|
FieldMemberAndAccessorFactory(JavaNaming naming) |
Creates a factory that offers public methods to create the
field initialization code as well as the getter/setter methods.
|
Modifier and Type | Method | Description |
---|---|---|
void |
createAccessMethods(FieldInfo fieldInfo,
JClass jClass,
boolean useJava50,
AnnotationBuilder[] annotationBuilders) |
Adds the getter/setter for this field to the jClass.
|
void |
createJavaField(FieldInfo fieldInfo,
JClass jClass) |
Adds the suitable JField to the JClass.
|
void |
generateInitializerCode(FieldInfo fieldInfo,
JSourceCode jsc) |
Creates the field initialization code in a constructor.
|
JavaNaming |
getJavaNaming() |
Returns the javaNaming.
|
public FieldMemberAndAccessorFactory(JavaNaming naming)
naming
- JavaNaming to usepublic void generateInitializerCode(FieldInfo fieldInfo, JSourceCode jsc)
fieldInfo
- the fieldInfo to translatejsc
- the JSourceCode in which to add the source topublic final void createJavaField(FieldInfo fieldInfo, JClass jClass)
fieldInfo
- the fieldInfo to translatejClass
- the jclass the jField will be added topublic void createAccessMethods(FieldInfo fieldInfo, JClass jClass, boolean useJava50, AnnotationBuilder[] annotationBuilders)
fieldInfo
- the fieldInfo to translatejClass
- the jclass the jField will be added touseJava50
- java version flagpublic JavaNaming getJavaNaming()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com