01: /* Generated By:JJTree: Do not edit this line. ASTInitializer.java */
02:
03: package net.sourceforge.pmd.ast;
04:
05: public class ASTInitializer extends SimpleJavaNode {
06: public ASTInitializer(int id) {
07: super (id);
08: }
09:
10: public ASTInitializer(JavaParser p, int id) {
11: super (p, id);
12: }
13:
14: /**
15: * Accept the visitor. *
16: */
17: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
18: return visitor.visit(this , data);
19: }
20:
21: private boolean isStatic;
22:
23: public boolean isStatic() {
24: return isStatic;
25: }
26:
27: public void setStatic() {
28: isStatic = true;
29: }
30:
31: public void dump(String prefix) {
32: System.out.println(toString(prefix) + ":("
33: + (isStatic ? "static" : "nonstatic") + ")");
34: dumpChildren(prefix);
35: }
36:
37: }
|