< prev index next >

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

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -24,11 +24,10 @@
  */
 
 package javax.lang.model.element;
 
 import java.util.List;
-import javax.lang.model.type.TypeMirror;
 
 /**
  * Represents a package program element.  Provides access to information
  * about the package and its members.
  *

@@ -37,20 +36,10 @@
  * @author Peter von der Ah&eacute;
  * @see javax.lang.model.util.Elements#getPackageOf
  * @since 1.6
  */
 public interface PackageElement extends Element, QualifiedNameable {
-    /**
-     * Returns a {@linkplain javax.lang.model.type.NoType pseudo-type}
-     * for this package.
-     * @return a pseudo-type for this package
-     *
-     * @see javax.lang.model.type.NoType
-     * @see javax.lang.model.type.TypeKind#PACKAGE
-     */
-    @Override
-    TypeMirror asType();
 
     /**
      * Returns the fully qualified name of this package.
      * This is also known as the package's <i>canonical</i> name.
      * For an {@linkplain #isUnnamed() unnamed package}, an empty name is returned.
< prev index next >