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

Print this page




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  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.type.VoidType;
  30 import com.sun.mirror.util.TypeVisitor;
  31 import com.sun.tools.apt.mirror.AptEnv;
  32 
  33 
  34 /**
  35  * Implementation of VoidType.
  36  */
  37 
  38 class VoidTypeImpl extends TypeMirrorImpl implements VoidType {
  39 
  40     VoidTypeImpl(AptEnv env) {
  41         super(env, env.symtab.voidType);
  42     }
  43 
  44     /**
  45      * {@inheritDoc}
  46      */
  47     public void accept(TypeVisitor v) {
  48         v.visitVoidType(this);
  49     }
  50 }


  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  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.type.VoidType;
  30 import com.sun.mirror.util.TypeVisitor;
  31 import com.sun.tools.apt.mirror.AptEnv;
  32 
  33 
  34 /**
  35  * Implementation of VoidType.
  36  */
  37 @SuppressWarnings("deprecation")
  38 class VoidTypeImpl extends TypeMirrorImpl implements VoidType {
  39 
  40     VoidTypeImpl(AptEnv env) {
  41         super(env, env.symtab.voidType);
  42     }
  43 
  44     /**
  45      * {@inheritDoc}
  46      */
  47     public void accept(TypeVisitor v) {
  48         v.visitVoidType(this);
  49     }
  50 }