1 |
| |
2 |
| |
3 |
| package net.sourceforge.pmd.ast; |
4 |
| |
5 |
| public class ASTConstructorDeclaration extends AccessNode { |
6 |
1
| public ASTConstructorDeclaration(int id) {
|
7 |
1
| super(id);
|
8 |
| } |
9 |
| |
10 |
111
| public ASTConstructorDeclaration(JavaParser p, int id) {
|
11 |
111
| super(p, id);
|
12 |
| } |
13 |
| |
14 |
3
| public int getParameterCount() {
|
15 |
3
| return ((ASTFormalParameters) jjtGetChild(0)).getParameterCount();
|
16 |
| } |
17 |
| |
18 |
| |
19 |
| |
20 |
| |
21 |
| |
22 |
273
| public Object jjtAccept(JavaParserVisitor visitor, Object data) {
|
23 |
273
| return visitor.visit(this, data);
|
24 |
| } |
25 |
| |
26 |
| private boolean containsComment; |
27 |
| |
28 |
8
| public boolean containsComment() {
|
29 |
8
| return this.containsComment;
|
30 |
| } |
31 |
| |
32 |
6
| public void setContainsComment() {
|
33 |
6
| this.containsComment = true;
|
34 |
| } |
35 |
| |
36 |
0
| public void dump(String prefix) {
|
37 |
0
| System.out.println(collectDumpedModifiers(prefix));
|
38 |
0
| dumpChildren(prefix);
|
39 |
| } |
40 |
| |
41 |
| } |