/** * Copyright (c) 2009-2011, The HATS Consortium. All rights reserved. * This file is licensed under the terms of the Modified BSD License. */ package abs.frontend.typechecker; public final class AnyType extends Type { public static final AnyType INSTANCE = new AnyType(); @Override public Type copy() { return INSTANCE; } private AnyType() { } @Override public boolean equals(Object o) { return o instanceof AnyType; } @Override public boolean isAssignableTo(Type t) { return true; } public boolean isAnyType() { return true; } @Override public String getSimpleName() { return "Any"; } }