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 |
129
| public ASTConstructorDeclaration(JavaParser p, int id) {
|
11 |
129
| super(p, id);
|
12 |
| } |
13 |
| |
14 |
8
| public ASTFormalParameters getParameters() {
|
15 |
8
| return (ASTFormalParameters) (jjtGetChild(0) instanceof ASTFormalParameters?jjtGetChild(0):jjtGetChild(1));
|
16 |
| } |
17 |
| |
18 |
6
| public int getParameterCount() {
|
19 |
6
| return getParameters().getParameterCount();
|
20 |
| } |
21 |
| |
22 |
| |
23 |
| |
24 |
| |
25 |
| |
26 |
380
| public Object jjtAccept(JavaParserVisitor visitor, Object data) {
|
27 |
380
| return visitor.visit(this, data);
|
28 |
| } |
29 |
| |
30 |
| private boolean containsComment; |
31 |
| |
32 |
8
| public boolean containsComment() {
|
33 |
8
| return this.containsComment;
|
34 |
| } |
35 |
| |
36 |
6
| public void setContainsComment() {
|
37 |
6
| this.containsComment = true;
|
38 |
| } |
39 |
| |
40 |
0
| public void dump(String prefix) {
|
41 |
0
| System.out.println(collectDumpedModifiers(prefix));
|
42 |
0
| dumpChildren(prefix);
|
43 |
| } |
44 |
| |
45 |
| } |