01: /**************************************************************************/
02: /* N I C E */
03: /* A high-level object-oriented research language */
04: /* (c) Daniel Bonniot 2001 */
05: /* */
06: /* This program is free software; you can redistribute it and/or modify */
07: /* it under the terms of the GNU General Public License as published by */
08: /* the Free Software Foundation; either version 2 of the License, or */
09: /* (at your option) any later version. */
10: /* */
11: /**************************************************************************/package bossa.modules;
12:
13: import bossa.util.*;
14: import java.io.*;
15:
16: /**
17: An abstract package source, where source or interface files
18: and compiled code if applicable can be found.
19:
20: @version $Date: 2001/10/30 15:38:24 $
21: @author Daniel Bonniot
22: */
23:
24: abstract class SourceContent {
25: abstract Content.Unit[] getDefinitions();
26:
27: /** Date of the last modification of the source of this package. */
28: long lastModification;
29:
30: /** Date of the last succesful compileation of this package. */
31: long lastCompilation;
32:
33: boolean sourcesRead;
34:
35: /** @return the directory in which to place generated files
36: of this package.
37: */
38: abstract File getOutputDirectory();
39:
40: /** return a short name to display this package source
41: (typically a file name, an URL, ...) */
42: abstract public String getName();
43:
44: /** return a longer string that identifies the type of package source too. */
45: abstract public String toString();
46: }
|