| /******************************************************************************* |
| * Copyright (c) 2005 BEA Systems, Inc. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * tyeung@bea.com - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.jdt.apt.core.internal.type; |
| |
| import com.sun.mirror.type.VoidType; |
| import com.sun.mirror.util.TypeVisitor; |
| import org.eclipse.jdt.apt.core.internal.EclipseMirrorImpl; |
| import org.eclipse.jdt.apt.core.internal.env.ProcessorEnvImpl; |
| |
| import org.eclipse.jdt.core.dom.ITypeBinding; |
| |
| public class VoidTypeImpl implements VoidType, EclipseMirrorImpl |
| { |
| private final ITypeBinding _binding; |
| |
| public VoidTypeImpl(final ITypeBinding binding){ |
| assert binding != null : "missing binding"; |
| _binding = binding; |
| } |
| |
| public void accept(TypeVisitor visitor) |
| { |
| visitor.visitTypeMirror(this); |
| visitor.visitVoidType(this); |
| } |
| |
| public String toString(){ return "void"; } |
| |
| public ITypeBinding getTypeBinding(){return _binding;} |
| |
| public MirrorKind kind(){ return MirrorKind.TYPE_VOID; } |
| |
| public ProcessorEnvImpl getEnvironment(){ return null; } |
| } |