< prev index next >
src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java
Print this page
*** 24,33 ****
--- 24,34 ----
*/
package javax.lang.model.element;
import java.util.List;
+ import javax.lang.model.type.TypeMirror;
/**
* Represents a module program element. Provides access to
* information about the module, its directives, and its members.
*
*** 35,44 ****
--- 36,51 ----
* @since 9
* @jls 7.7 Module Declarations
* @spec JPMS
*/
public interface ModuleElement extends Element, QualifiedNameable {
+ /**
+ * Returns a {@linkplain javax.lang.model.type.NoType pseudo-type} for this module.
+ * @return a pseudo-type for this module
+ */
+ @Override
+ TypeMirror asType();
/**
* Returns the fully qualified name of this module. For an
* {@linkplain #isUnnamed() unnamed module}, an empty name is returned.
*
< prev index next >