< prev index next >

src/java.compiler/share/classes/javax/lang/model/element/TypeElement.java

Print this page




 104      *
 105      * @return the enclosed elements in proper order, or an empty list if none
 106      *
 107      * @jls 8.8.9 Default Constructor
 108      * @jls 8.9.3 Enum Members
 109      */
 110     @Override
 111     List<? extends Element> getEnclosedElements();
 112 
 113     /**
 114      * Returns the <i>nesting kind</i> of this type element.
 115      *
 116      * @return the nesting kind of this type element
 117      */
 118     NestingKind getNestingKind();
 119 
 120     /**
 121      * Returns the fully qualified name of this type element.
 122      * More precisely, it returns the <i>canonical</i> name.
 123      * For local and anonymous classes, which do not have canonical names,
 124      * an empty name is returned.
 125      *
 126      * <p>The name of a generic type does not include any reference
 127      * to its formal type parameters.
 128      * For example, the fully qualified name of the interface
 129      * {@code java.util.Set<E>} is "{@code java.util.Set}".
 130      * Nested types use "{@code .}" as a separator, as in
 131      * "{@code java.util.Map.Entry}".
 132      *
 133      * @return the fully qualified name of this class or interface, or
 134      * an empty name if none
 135      *
 136      * @see Elements#getBinaryName
 137      * @jls 6.7 Fully Qualified Names and Canonical Names
 138      */
 139     Name getQualifiedName();
 140 
 141     /**
 142      * Returns the simple name of this type element.
 143      *
 144      * For an anonymous class, an empty name is returned.
 145      *
 146      * @return the simple name of this class or interface,
 147      * an empty name for an anonymous class
 148      *
 149      */
 150     @Override
 151     Name getSimpleName();
 152 
 153     /**
 154      * Returns the direct superclass of this type element.
 155      * If this type element represents an interface or the class
 156      * {@code java.lang.Object}, then a {@link NoType}
 157      * with kind {@link TypeKind#NONE NONE} is returned.
 158      *
 159      * @return the direct superclass, or a {@code NoType} if there is none
 160      */
 161     TypeMirror getSuperclass();
 162 
 163     /**
 164      * Returns the interface types directly implemented by this class




 104      *
 105      * @return the enclosed elements in proper order, or an empty list if none
 106      *
 107      * @jls 8.8.9 Default Constructor
 108      * @jls 8.9.3 Enum Members
 109      */
 110     @Override
 111     List<? extends Element> getEnclosedElements();
 112 
 113     /**
 114      * Returns the <i>nesting kind</i> of this type element.
 115      *
 116      * @return the nesting kind of this type element
 117      */
 118     NestingKind getNestingKind();
 119 
 120     /**
 121      * Returns the fully qualified name of this type element.
 122      * More precisely, it returns the <i>canonical</i> name.
 123      * For local and anonymous classes, which do not have canonical names,
 124      * an {@linkplain Name#isEmpty() empty name} is returned.
 125      *
 126      * <p>The name of a generic type does not include any reference
 127      * to its formal type parameters.
 128      * For example, the fully qualified name of the interface
 129      * {@code java.util.Set<E>} is "{@code java.util.Set}".
 130      * Nested types use "{@code .}" as a separator, as in
 131      * "{@code java.util.Map.Entry}".
 132      *
 133      * @return the fully qualified name of this class or interface, or
 134      * an empty name if none
 135      *
 136      * @see Elements#getBinaryName
 137      * @jls 6.7 Fully Qualified Names and Canonical Names
 138      */
 139     Name getQualifiedName();
 140 
 141     /**
 142      * Returns the simple name of this type element.
 143      *
 144      * For an anonymous class, an {@linkplain Name#isEmpty() empty name} is returned.
 145      *
 146      * @return the simple name of this class or interface,
 147      * an empty name for an anonymous class
 148      *
 149      */
 150     @Override
 151     Name getSimpleName();
 152 
 153     /**
 154      * Returns the direct superclass of this type element.
 155      * If this type element represents an interface or the class
 156      * {@code java.lang.Object}, then a {@link NoType}
 157      * with kind {@link TypeKind#NONE NONE} is returned.
 158      *
 159      * @return the direct superclass, or a {@code NoType} if there is none
 160      */
 161     TypeMirror getSuperclass();
 162 
 163     /**
 164      * Returns the interface types directly implemented by this class


< prev index next >