// // Copyright (C) 2001 The University of Melbourne. // This file may only be copied under the terms of the GNU Library General // Public License - see the file COPYING.LIB in the Mercury distribution. // package mercury.runtime; // XXX In the C backend this was a union. // It would (eventually) be better to have derived classes // for each of the unions constructors and make them all extend // this class (rather like we do with the generated code from the // mercury compiler. That way we can just use the `instanceof' operator // to work out what each instance is. public class TypeFunctors { public java.lang.Object functors_init; public mercury.runtime.DuFunctorDesc[] functors_du; public mercury.runtime.EnumFunctorDesc[] functors_enum; public mercury.runtime.NotagFunctorDesc functors_notag; }