Added more stuff, thanks to Lokesh Gupta

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2500 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-12-31 22:05:06 +00:00
parent a27a24acda
commit c793ae33d2
2 changed files with 12 additions and 0 deletions

View File

@ -30,6 +30,17 @@ public class ASTPrimaryPrefix extends SimpleNode {
return this.usesSuperModifier;
}
public void dump(String prefix) {
String out = getImage();
if (usesSuperModifier) {
out = "super." + getImage();
} else if (usesThisModifier) {
out = "this." + getImage();
}
System.out.println(toString(prefix) + ":" + out);
dumpChildren(prefix);
}
/** Accept the visitor. **/
public Object jjtAccept(JavaParserVisitor visitor, Object data) {
return visitor.visit(this, data);

View File

@ -38,6 +38,7 @@
</subsection>
<subsection name="Contributors">
<ul>
<li>Lokesh Gupta - improvements to the AST viewer</li>
<li>Jesse Glick - improvements to VariableNamingConventionsRule, patch for UnusedModifierRule, bug fix for VariableNameDeclarations rule, an excellent discussion on the UnnecessaryConstructorRule</li>
<li>Nicolas Liochon - CloneShouldCallSuperCloneRule implementation</li>
<li>Philippe Couton - OverrideBothEqualsAndHashcodeRule bug report, UseSingletonRule improvements, JUnitStaticSuiteRule improvements</li>