public class CollectionJ2MemberAndAccessorFactory extends CollectionMemberAndAccessorFactory
Constructor and Description |
---|
CollectionJ2MemberAndAccessorFactory(JavaNaming naming)
Creates a new CollectionJ2MemberAndAccessorFactory.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createAddMethod(CollectionInfo fieldInfo,
JClass jClass)
Creates the add method for this collection.
|
protected void |
createCollectionIterationMethods(CollectionInfo fieldInfo,
JClass jClass,
boolean useJava50)
Generate methods for iterating over the objects in the collection.
|
protected void |
createEnumerateMethod(CollectionInfo fieldInfo,
JClass jClass,
boolean useJava50)
Creates the enumerate method.
|
addMaxSizeCheck, createAccessMethods, createAddByIndexMethod, createBoundPropertyCode, createGetByIndexMethod, createIteratorMethod, createRemoveByIndexMethod, createSetByIndexMethod, generateInitializerCode
createJavaField, getJavaNaming
public CollectionJ2MemberAndAccessorFactory(JavaNaming naming)
naming
- the javaNaming to useprotected final void createCollectionIterationMethods(CollectionInfo fieldInfo, JClass jClass, boolean useJava50)
createCollectionIterationMethods
in class CollectionMemberAndAccessorFactory
fieldInfo
- the collectionI to translatejClass
- the JClass to which we add this methoduseJava50
- true if source code is supposed to be generated for Java 5protected final void createEnumerateMethod(CollectionInfo fieldInfo, JClass jClass, boolean useJava50)
createEnumerateMethod
in class CollectionMemberAndAccessorFactory
fieldInfo
- the collectionInfo to translatejClass
- the jClass to add the method to.useJava50
- java version flagprotected final void createAddMethod(CollectionInfo fieldInfo, JClass jClass)
createAddMethod
in class CollectionMemberAndAccessorFactory
fieldInfo
- the collectionInfo to translatejClass
- the jClass to add the method to.Copyright © 2014. All rights reserved.