01: /* Generated By:JJTree: Do not edit this line. ASTDoctypeDeclaration.java */
02:
03: package net.sourceforge.pmd.jsp.ast;
04:
05: public class ASTDoctypeDeclaration extends SimpleNode {
06:
07: /* BEGIN CUSTOM CODE */
08:
09: /**
10: * Name of the document type. Cannot be null.
11: */
12: private String name;
13:
14: /**
15: * @return Returns the name.
16: */
17: public String getName() {
18: return name;
19: }
20:
21: /**
22: * @param name The name to set.
23: */
24: public void setName(String name) {
25: this .name = name;
26: }
27:
28: /* (non-Javadoc)
29: * @see com.applicationengineers.pmd4jsp.ast.SimpleNode#toString(java.lang.String)
30: */
31: public String toString(String prefix) {
32: return super .toString(prefix) + " name=[" + name + "] ";
33: }
34:
35: /* END CUSTOM CODE */
36:
37: public ASTDoctypeDeclaration(int id) {
38: super (id);
39: }
40:
41: public ASTDoctypeDeclaration(JspParser p, int id) {
42: super (p, id);
43: }
44:
45: /**
46: * Accept the visitor. *
47: */
48: public Object jjtAccept(JspParserVisitor visitor, Object data) {
49: return visitor.visit(this, data);
50: }
51: }
|