src/share/classes/com/sun/tools/apt/mirror/type/InterfaceTypeImpl.java

Print this page




  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.type;
  27 
  28 
  29 import com.sun.mirror.declaration.*;
  30 import com.sun.mirror.type.*;
  31 import com.sun.mirror.util.TypeVisitor;
  32 import com.sun.tools.apt.mirror.AptEnv;
  33 import com.sun.tools.javac.code.Type;
  34 
  35 
  36 /**
  37  * Implementation of InterfaceType
  38  */
  39 
  40 public class InterfaceTypeImpl extends DeclaredTypeImpl
  41                                implements InterfaceType {
  42 
  43     InterfaceTypeImpl(AptEnv env, Type.ClassType type) {
  44         super(env, type);
  45     }
  46 
  47 
  48     /**
  49      * {@inheritDoc}
  50      */
  51     public InterfaceDeclaration getDeclaration() {
  52         return (InterfaceDeclaration) super.getDeclaration();
  53     }
  54 
  55     /**
  56      * {@inheritDoc}
  57      */
  58     public void accept(TypeVisitor v) {
  59         v.visitInterfaceType(this);


  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.type;
  27 
  28 
  29 import com.sun.mirror.declaration.*;
  30 import com.sun.mirror.type.*;
  31 import com.sun.mirror.util.TypeVisitor;
  32 import com.sun.tools.apt.mirror.AptEnv;
  33 import com.sun.tools.javac.code.Type;
  34 
  35 
  36 /**
  37  * Implementation of InterfaceType
  38  */
  39 @SuppressWarnings("deprecation")
  40 public class InterfaceTypeImpl extends DeclaredTypeImpl
  41                                implements InterfaceType {
  42 
  43     InterfaceTypeImpl(AptEnv env, Type.ClassType type) {
  44         super(env, type);
  45     }
  46 
  47 
  48     /**
  49      * {@inheritDoc}
  50      */
  51     public InterfaceDeclaration getDeclaration() {
  52         return (InterfaceDeclaration) super.getDeclaration();
  53     }
  54 
  55     /**
  56      * {@inheritDoc}
  57      */
  58     public void accept(TypeVisitor v) {
  59         v.visitInterfaceType(this);