Examples of JCollectionType


Examples of org.exolab.javasource.JCollectionType

     * @param useExtends True if '? extends' should be emitted for generics (Java 5.0 ff only).
     * @return {@link JCollectionType} instance representing an enumeration
     */
    public static final JType createEnumeration(final JType jType, final boolean usejava50,
            final boolean useExtends) {
        return new JCollectionType("java.util.Enumeration", jType, usejava50, useExtends);
    }
View Full Code Here

Examples of org.exolab.javasource.JCollectionType

     * @param useExtends True if '? extends' should be emitted for generics (Java 5.0 ff only).
     * @return {@link JCollectionType} instance representing an {@link Iterator}
     */
    public static final JType createIterator(final JType jType, final boolean usejava50,
            final boolean useExtends) {
        return new JCollectionType("java.util.Iterator", jType, usejava50, useExtends);
    }
View Full Code Here

Examples of org.exolab.javasource.JCollectionType

        super();
       
        _contentType = contentType;
       
        if (colType.equalsIgnoreCase(SourceGeneratorConstants.FIELD_INFO_ARRAY_LIST)) {
            _jType = new JCollectionType("java.util.List", "java.util.ArrayList",
                    contentType.getJType(), useJava50);
        } else if (colType.equalsIgnoreCase(SourceGeneratorConstants.FIELD_INFO_COLLECTION)) {
            _jType = new JCollectionType("java.util.Collection", "java.util.LinkedList",
                    contentType.getJType(), useJava50);
        } else if (colType.equalsIgnoreCase(SourceGeneratorConstants.FIELD_INFO_SET)) {
            _jType = new JCollectionType("java.util.Set", "java.util.HashSet",
                    contentType.getJType(), useJava50);
        } else if (colType.equalsIgnoreCase(SourceGeneratorConstants.FIELD_INFO_SORTED_SET)) {
            _jType = new JCollectionType("java.util.SortedSet", "java.util.TreeSet",
                    contentType.getJType(), useJava50);
        } else if (colType.equalsIgnoreCase(SourceGeneratorConstants.FIELD_INFO_VECTOR)) {
            _jType = new JCollectionType("java.util.Vector", contentType.getJType(), useJava50);
        } else if (colType.equalsIgnoreCase(SourceGeneratorConstants.FIELD_INFO_ODMG)) {
            _jType = new JClass("org.odmg.DArray");
        } else {
            _jType = null;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.