VoidType.java
package edu.udel.cis.vsl.tass.model.impl.type;
import java.util.Set;
import edu.udel.cis.vsl.tass.model.IF.type.TypeIF;
public class VoidType extends Type {
public VoidType() {
super(TypeKind.VOID);
}
public boolean equals(Object that) {
if (that instanceof VoidType) {
return true;
} else {
return false;
}
}
public int hashCode() {
return kind().hashCode();
}
public boolean isNumeric() {
return false;
}
public boolean isSubtypeOf(TypeIF type) {
return false;
}
@Override
public String longName(Set<Type> stack) {
return shortName();
}
public String shortName() {
return "void";
}
}