|
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 |
18
| public ASTInitializer(JavaParser p, int id) {
|
|
11 |
18
| super(p, id);
|
|
12 |
| } |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
46
| public Object jjtAccept(JavaParserVisitor visitor, Object data) {
|
|
19 |
46
| return visitor.visit(this, data);
|
|
20 |
| } |
|
21 |
| |
|
22 |
| private boolean isStatic; |
|
23 |
| |
|
24 |
4
| public boolean isStatic() {
|
|
25 |
4
| return isStatic;
|
|
26 |
| } |
|
27 |
| |
|
28 |
11
| public void setStatic() {
|
|
29 |
11
| 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 |
| } |