1 |
| |
2 |
| |
3 |
| package net.sourceforge.pmd.ast; |
4 |
| |
5 |
| public class ASTInitializer extends SimpleJavaNode { |
6 |
0
| public ASTInitializer(int id) {
|
7 |
0
| super(id);
|
8 |
| } |
9 |
| |
10 |
15
| public ASTInitializer(JavaParser p, int id) {
|
11 |
15
| super(p, id);
|
12 |
| } |
13 |
| |
14 |
| |
15 |
| |
16 |
| |
17 |
| |
18 |
28
| public Object jjtAccept(JavaParserVisitor visitor, Object data) {
|
19 |
28
| return visitor.visit(this, data);
|
20 |
| } |
21 |
| |
22 |
| private boolean isStatic; |
23 |
| |
24 |
6
| public boolean isStatic() {
|
25 |
6
| return isStatic;
|
26 |
| } |
27 |
| |
28 |
7
| public void setStatic() {
|
29 |
7
| isStatic = true;
|
30 |
| } |
31 |
| |
32 |
0
| public void dump(String prefix) {
|
33 |
0
| System.out.println(toString(prefix) + ":(" + (isStatic ? "static" : "nonstatic") + ")");
|
34 |
0
| dumpChildren(prefix);
|
35 |
| } |
36 |
| |
37 |
| } |