01: /*
02: * xtc - The eXTensible Compiler
03: * Copyright (C) 2006-2007 Robert Grimm
04: *
05: * This program is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU General Public License
07: * version 2 as published by the Free Software Foundation.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17: * USA.
18: */
19: package xtc.type;
20:
21: /**
22: * The superclass of all derived types.
23: *
24: * @author Robert Grimm
25: * @version $Revision: 1.4 $
26: */
27: public abstract class DerivedT extends Type {
28:
29: /** Create a new derived type. */
30: public DerivedT() {
31: // Nothing to do.
32: }
33:
34: /**
35: * Create a new derived type.
36: *
37: * @param template The type whose annotations to copy.
38: */
39: public DerivedT(Type template) {
40: super (template);
41: }
42:
43: /**
44: * Determine whether this type is derived.
45: *
46: * @return <code>true</code>.
47: */
48: public boolean isDerived() {
49: return true;
50: }
51:
52: }
|