01: /* Generated By:JJTree: Do not edit this line. ASTExplicitConstructorInvocation.java */
02:
03: package net.sourceforge.pmd.ast;
04:
05: public class ASTExplicitConstructorInvocation extends SimpleJavaNode {
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: * Accept the visitor. *
16: */
17: public Object jjtAccept(JavaParserVisitor visitor, Object data) {
18: return visitor.visit(this , data);
19: }
20:
21: public int getArgumentCount() {
22: return ((ASTArguments) this .jjtGetChild(0)).getArgumentCount();
23: }
24:
25: private String this OrSuper;
26:
27: public void setIsThis() {
28: this .this OrSuper = "this";
29: }
30:
31: public void setIsSuper() {
32: this .this OrSuper = "super";
33: }
34:
35: public boolean isThis() {
36: return this OrSuper != null && this OrSuper.equals("this");
37: }
38:
39: public boolean isSuper() {
40: return this OrSuper != null && this OrSuper.equals("super");
41: }
42: }
|