1 /* |
1 /* |
2 * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
47 * <p> The supertypes (both class and interface types) of a declared |
47 * <p> The supertypes (both class and interface types) of a declared |
48 * type may be found using the {@link |
48 * type may be found using the {@link |
49 * Types#directSupertypes(TypeMirror)} method. This returns the |
49 * Types#directSupertypes(TypeMirror)} method. This returns the |
50 * supertypes with any type arguments substituted in. |
50 * supertypes with any type arguments substituted in. |
51 * |
51 * |
52 * <p> This interface is also used to represent intersection types. |
|
53 * An intersection type is implicit in a program rather than being |
|
54 * explictly declared. For example, the bound of the type parameter |
|
55 * {@code <T extends Number & Runnable>} |
|
56 * is an intersection type. It is represented by a {@code DeclaredType} |
|
57 * with {@code Number} as its superclass and {@code Runnable} as its |
|
58 * lone superinterface. |
|
59 * |
|
60 * @author Joseph D. Darcy |
52 * @author Joseph D. Darcy |
61 * @author Scott Seligman |
53 * @author Scott Seligman |
62 * @author Peter von der Ahé |
54 * @author Peter von der Ahé |
63 * @see TypeElement |
55 * @see TypeElement |
64 * @since 1.6 |
56 * @since 1.6 |