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:
@ -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);
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user