net.sourceforge.pmd.rules
Class ConstructorCallsOverridableMethodRule.MethodInvocation
java.lang.Object
net.sourceforge.pmd.rules.ConstructorCallsOverridableMethodRule.MethodInvocation
- Enclosing class:
- ConstructorCallsOverridableMethodRule
- private static class ConstructorCallsOverridableMethodRule.MethodInvocation
- extends java.lang.Object
2: method();
ASTPrimaryPrefix
ASTName image = "method"
ASTPrimarySuffix
*ASTArguments
3: a.method();
ASTPrimaryPrefix ->
ASTName image = "a.method" ???
ASTPrimarySuffix -> ()
ASTArguments
3: this.method();
ASTPrimaryPrefix -> this image=null
ASTPrimarySuffix -> method
ASTPrimarySuffix -> ()
ASTArguments
super.method();
ASTPrimaryPrefix -> image = "method"
ASTPrimarySuffix -> image = null
ASTArguments ->
super.a.method();
ASTPrimaryPrefix -> image = "a"
ASTPrimarySuffix -> image = "method"
ASTPrimarySuffix -> image = null
ASTArguments ->
4: this.a.method();
ASTPrimaryPrefix -> image = null
ASTPrimarySuffix -> image = "a"
ASTPrimarySuffix -> image = "method"
ASTPrimarySuffix ->
ASTArguments
4: ClassName.this.method();
ASTPrimaryPrefix
ASTName image = "ClassName"
ASTPrimarySuffix -> this image=null
ASTPrimarySuffix -> image = "method"
ASTPrimarySuffix -> ()
ASTArguments
5: ClassName.this.a.method();
ASTPrimaryPrefix
ASTName image = "ClassName"
ASTPrimarySuffix -> this image=null
ASTPrimarySuffix -> image="a"
ASTPrimarySuffix -> image="method"
ASTPrimarySuffix -> ()
ASTArguments
5: Package.ClassName.this.method();
ASTPrimaryPrefix
ASTName image ="Package.ClassName"
ASTPrimarySuffix -> this image=null
ASTPrimarySuffix -> image="method"
ASTPrimarySuffix -> ()
ASTArguments
6: Package.ClassName.this.a.method();
ASTPrimaryPrefix
ASTName image ="Package.ClassName"
ASTPrimarySuffix -> this image=null
ASTPrimarySuffix -> a
ASTPrimarySuffix -> method
ASTPrimarySuffix -> ()
ASTArguments
5: OuterClass.InnerClass.this.method();
ASTPrimaryPrefix
ASTName image = "OuterClass.InnerClass"
ASTPrimarySuffix -> this image=null
ASTPrimarySuffix -> method
ASTPrimarySuffix -> ()
ASTArguments
6: OuterClass.InnerClass.this.a.method();
ASTPrimaryPrefix
ASTName image = "OuterClass.InnerClass"
ASTPrimarySuffix -> this image=null
ASTPrimarySuffix -> a
ASTPrimarySuffix -> method
ASTPrimarySuffix -> ()
ASTArguments
OuterClass.InnerClass.this.a.method().method().method();
ASTPrimaryPrefix
ASTName image = "OuterClass.InnerClass"
ASTPrimarySuffix -> this image=null
ASTPrimarySuffix -> a image='a'
ASTPrimarySuffix -> method image='method'
ASTPrimarySuffix -> () image=null
ASTArguments
ASTPrimarySuffix -> method image='method'
ASTPrimarySuffix -> () image=null
ASTArguments
ASTPrimarySuffix -> method image='method'
ASTPrimarySuffix -> () image=null
ASTArguments
3..n: Class.InnerClass[0].InnerClass[n].this.method();
ASTPrimaryPrefix
ASTName image = "Class[0]..InnerClass[n]"
ASTPrimarySuffix -> image=null
ASTPrimarySuffix -> method
ASTPrimarySuffix -> ()
ASTArguments
super.aMethod();
ASTPrimaryPrefix -> aMethod
ASTPrimarySuffix -> ()
Evaluate right to left
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_Name
private java.lang.String m_Name
m_Ape
private ASTPrimaryExpression m_Ape
m_ReferenceNames
private java.util.List m_ReferenceNames
m_QualifierNames
private java.util.List m_QualifierNames
m_ArgumentSize
private int m_ArgumentSize
m_Super
private boolean m_Super
ConstructorCallsOverridableMethodRule.MethodInvocation
private ConstructorCallsOverridableMethodRule.MethodInvocation(ASTPrimaryExpression ape,
java.util.List qualifierNames,
java.util.List referenceNames,
java.lang.String name,
int argumentSize,
boolean superCall)
isSuper
public boolean isSuper()
getName
public java.lang.String getName()
getArgumentCount
public int getArgumentCount()
getReferenceNames
public java.util.List getReferenceNames()
getQualifierNames
public java.util.List getQualifierNames()
getASTPrimaryExpression
public ASTPrimaryExpression getASTPrimaryExpression()
getMethod
public static ConstructorCallsOverridableMethodRule.MethodInvocation getMethod(ASTPrimaryExpression node)
show
public void show()