01: /*
02: * Author: Mike Atkinson
03: *
04: * This software has been developed under the copyleft
05: * rules of the GNU General Public License. Please
06: * consult the GNU General Public License for more
07: * details about use and distribution of this software.
08: */
09: package org.acm.seguin.pretty.jdi;
10:
11: import java.text.DateFormat;
12: import java.util.Date;
13: import net.sourceforge.jrefactory.parser.JavaParser;
14: import net.sourceforge.jrefactory.parser.JavaParserVisitor;
15: import net.sourceforge.jrefactory.ast.ASTClassDeclaration;
16: import net.sourceforge.jrefactory.ast.ASTUnmodifiedClassDeclaration;
17: import org.acm.seguin.pretty.DescriptionPadder;
18: import org.acm.seguin.pretty.ForceJavadocComments;
19: import org.acm.seguin.pretty.JavaDocComponent;
20: import org.acm.seguin.pretty.JavaDocable;
21: import org.acm.seguin.pretty.PrintData;
22: import org.acm.seguin.pretty.ai.RequiredTags;
23: import org.acm.seguin.util.FileSettings;
24: import org.acm.seguin.util.MissingSettingsException;
25: import org.acm.seguin.pretty.JavaDocable;
26: import org.acm.seguin.pretty.JavaDocableImpl;
27:
28: /**
29: * Holds a class declaration. Contains the list of modifiers for the class and the javadoc comments.
30: *
31: * @author Mike Atkinson
32: * @since jRefactory 2.9.0, created October 16, 2003
33: */
34: abstract class BaseJDI implements JavaDocable {
35: protected JavaDocableImpl jdi;
36: protected FileSettings bundle;
37:
38: /**
39: * Constructor for the ASTClassDeclaration node.
40: *
41: * @param identifier The id of this node (JJTCLASSDEClARATION).
42: */
43: public BaseJDI() {
44: jdi = new JavaDocableImpl();
45: bundle = FileSettings.getRefactoryPrettySettings();
46: }
47:
48: /**
49: * Allows you to add a java doc component
50: *
51: *@param component the component that can be added
52: */
53: public void addJavaDocComponent(JavaDocComponent component) {
54: jdi.addJavaDocComponent(component);
55: }
56:
57: }
|