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)
To the Java-1 collection iterators, we add the Java-2 Iterator.
|
protected void |
createEnumerateMethod(CollectionInfo fieldInfo,
JClass jClass,
boolean useJava50)
Creates the enumerate method.
|
addMaxSizeCheck, createAccessMethods, createAddByIndexMethod, createBoundPropertyCode, createGetByIndexMethod, createIteratorMethod, createRemoveByIndexMethod, createSetByIndexMethod, generateInitializerCodecreateJavaField, getJavaNaming, setUseOldFieldNamingpublic CollectionJ2MemberAndAccessorFactory(JavaNaming naming)
naming - the javaNaming to useprotected final void createCollectionIterationMethods(CollectionInfo fieldInfo, JClass jClass, boolean useJava50)
createCollectionIterationMethods in class CollectionMemberAndAccessorFactoryfieldInfo - 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)
CollectionMemberAndAccessorFactorycreateEnumerateMethod in class CollectionMemberAndAccessorFactoryfieldInfo - the collectionInfo to translatejClass - the jClass to add the method to.useJava50 - java version flagprotected final void createAddMethod(CollectionInfo fieldInfo, JClass jClass)
CollectionMemberAndAccessorFactorycreateAddMethod in class CollectionMemberAndAccessorFactoryfieldInfo - the collectionInfo to translatejClass - the jClass to add the method to.Copyright © 2016. All rights reserved.