|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.lang.java.symboltable.JavaNameOccurrence
public class JavaNameOccurrence
Constructor Summary | |
---|---|
JavaNameOccurrence(JavaNode location,
String image)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
getArgumentCount()
|
String |
getImage()
Gets the image of the used declaration, such as the variable name. |
JavaNode |
getLocation()
Gets the location where the usage occurred. |
NameOccurrence |
getNameForWhichThisIsAQualifier()
|
int |
hashCode()
|
boolean |
isMethodOrConstructorInvocation()
|
boolean |
isMethodReference()
|
boolean |
isOnLeftHandSide()
|
boolean |
isOnRightHandSide()
|
boolean |
isPartOfQualifiedName()
|
boolean |
isSelfAssignment()
Assert it the occurrence is a self assignment such as:
i += 3;
|
boolean |
isThisOrSuper()
Simply return true is the image is equal to keyword 'this' or 'super'. |
void |
setArgumentCount(int count)
|
void |
setIsMethodOrConstructorInvocation()
|
void |
setNameWhichThisQualifies(NameOccurrence qualifiedName)
|
String |
toString()
|
boolean |
useThisOrSuper()
Simply return if the image start with keyword 'this' or 'super'. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaNameOccurrence(JavaNode location, String image)
Method Detail |
---|
public void setIsMethodOrConstructorInvocation()
public void setArgumentCount(int count)
public int getArgumentCount()
public boolean isMethodOrConstructorInvocation()
public boolean isMethodReference()
public void setNameWhichThisQualifies(NameOccurrence qualifiedName)
public NameOccurrence getNameForWhichThisIsAQualifier()
public boolean isPartOfQualifiedName()
public JavaNode getLocation()
NameOccurrence
getLocation
in interface NameOccurrence
public boolean isOnRightHandSide()
public boolean isOnLeftHandSide()
public boolean isSelfAssignment()
i += 3;
public boolean isThisOrSuper()
public boolean useThisOrSuper()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getImage()
NameOccurrence
getImage
in interface NameOccurrence
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |