ASTExplicitConstructorInvocation.java
01 /* Generated By:JJTree: Do not edit this line. ASTExplicitConstructorInvocation.java */
02 
03 package net.sourceforge.pmd.lang.java.ast;
04 
05 public class ASTExplicitConstructorInvocation extends AbstractJavaNode {
06     public ASTExplicitConstructorInvocation(int id) {
07         super(id);
08     }
09 
10     public ASTExplicitConstructorInvocation(JavaParser p, int id) {
11         super(p, id);
12     }
13 
14 
15     /**
16      * Accept the visitor. *
17      */
18     public Object jjtAccept(JavaParserVisitor visitor, Object data) {
19         return visitor.visit(this, data);
20     }
21 
22     public int getArgumentCount() {
23         return ((ASTArgumentsthis.jjtGetChild(0)).getArgumentCount();
24     }
25 
26     private String thisOrSuper;
27 
28     public void setIsThis() {
29         this.thisOrSuper = "this";
30     }
31 
32     public void setIsSuper() {
33         this.thisOrSuper = "super";
34     }
35 
36     public boolean isThis() {
37         return thisOrSuper != null && thisOrSuper.equals("this");
38     }
39 
40     public boolean isSuper() {
41         return thisOrSuper != null && thisOrSuper.equals("super");
42     }
43 }