17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.tools.internal.xjc.reader;
27
28 import java.util.ArrayList;
29 import java.util.Collection;
30 import java.util.Comparator;
31 import java.util.Iterator;
32 import java.util.List;
33 import java.util.Set;
34 import java.util.TreeSet;
35
36 import com.sun.codemodel.internal.JClass;
37 import com.sun.codemodel.internal.JClassAlreadyExistsException;
38 import com.sun.codemodel.internal.JCodeModel;
39 import com.sun.codemodel.internal.JDefinedClass;
40 import com.sun.codemodel.internal.JType;
41 import com.sun.tools.internal.xjc.ErrorReceiver;
42
43 import org.xml.sax.Locator;
44 import org.xml.sax.SAXParseException;
45
46 /**
47 * Type-related utility methods.
48 *
49 * @author
50 * <a href="mailto:kohsuke.kawaguchi@sun.com">Kohsuke KAWAGUCHI</a>
51 */
52 public class TypeUtil {
53
54
55 /**
56 * Computes the common base type of two types.
57 *
|
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.tools.internal.xjc.reader;
27
28 import java.util.ArrayList;
29 import java.util.Collection;
30 import java.util.Comparator;
31 import java.util.Iterator;
32 import java.util.List;
33 import java.util.Set;
34 import java.util.TreeSet;
35
36 import com.sun.codemodel.internal.JClass;
37 import com.sun.codemodel.internal.JCodeModel;
38 import com.sun.codemodel.internal.JDefinedClass;
39 import com.sun.codemodel.internal.JType;
40 import com.sun.tools.internal.xjc.ErrorReceiver;
41
42 import org.xml.sax.Locator;
43 import org.xml.sax.SAXParseException;
44
45 /**
46 * Type-related utility methods.
47 *
48 * @author
49 * <a href="mailto:kohsuke.kawaguchi@sun.com">Kohsuke KAWAGUCHI</a>
50 */
51 public class TypeUtil {
52
53
54 /**
55 * Computes the common base type of two types.
56 *
|