1 /*******************************************************************************
2 * Copyright (c) 2000, 2011 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types;
13 import org.eclipse.jdt.core.Signature;
16 public final class VoidType extends TType {
18 protected VoidType(TypeEnvironment environment) {
19 super(environment, Signature.createTypeSignature("void", true)); //$NON-NLS-1$
23 public int getKind() {
28 public TType[] getSubTypes() {
29 throw new UnsupportedOperationException();
33 protected boolean doEquals(TType type) {
38 public int hashCode() {
43 protected boolean doCanAssignTo(TType lhs) {
48 public String getName() {
49 return "void"; //$NON-NLS-1$
53 protected String getPlainPrettySignature() {