Updated ASTExplicitConstructor invocation; added aa getArgumentCount() method

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1413 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-02-10 19:20:43 +00:00
parent daf9b5230c
commit 8268453ea5
3 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,7 @@ public class ASTArguments extends SimpleNode {
}
return this.jjtGetChild(0).jjtGetNumChildren();
}
/** Accept the visitor. **/
public Object jjtAccept(JavaParserVisitor visitor, Object data) {
return visitor.visit(this, data);

View File

@ -17,6 +17,10 @@ public class ASTExplicitConstructorInvocation extends SimpleNode {
return visitor.visit(this, data);
}
public int getArgumentCount() {
return ((ASTArguments)this.jjtGetChild(0)).getArgumentCount();
}
private boolean isThis;
private boolean isSuper;

View File

@ -11,7 +11,7 @@ import net.sourceforge.pmd.ast.ASTArguments;
public class SymbolTableTestRule extends AbstractRule implements Rule {
public Object visit(ASTExplicitConstructorInvocation node, Object data) {
System.out.println("ASTExplicitConstructorInvocation: arg count = " + ((ASTArguments)node.jjtGetChild(0)).getArgumentCount());
System.out.println("ASTExplicitConstructorInvocation: arg count = " + node.getArgumentCount());
return super.visit(node,data);
}