Class CollectionJ2MemberAndAccessorFactory

    • Constructor Detail

      • CollectionJ2MemberAndAccessorFactory

        public CollectionJ2MemberAndAccessorFactory​(JavaNaming naming)
        Creates a new CollectionJ2MemberAndAccessorFactory.
        Parameters:
        naming - the javaNaming to use
    • Method Detail

      • createCollectionIterationMethods

        protected final void createCollectionIterationMethods​(CollectionInfo fieldInfo,
                                                              JClass jClass,
                                                              boolean useJava50)
        Generate methods for iterating over the objects in the collection. For Java-1 collections, we only generate an Enumerator. Implementations for other versions of Java should call this method for backward compatbility and then add any additional new methods.
        To the Java-1 collection iterators, we add the Java-2 Iterator.
        Overrides:
        createCollectionIterationMethods in class CollectionMemberAndAccessorFactory
        Parameters:
        fieldInfo - the collectionI to translate
        jClass - the JClass to which we add this method
        useJava50 - true if source code is supposed to be generated for Java 5