public class NameOccurrence extends Object
Constructor and Description |
---|
NameOccurrence(JavaNode location,
String image) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getArgumentCount() |
String |
getImage() |
JavaNode |
getLocation() |
NameOccurrence |
getNameForWhichThisIsAQualifier() |
int |
hashCode() |
boolean |
isMethodOrConstructorInvocation() |
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'.
|
public void setIsMethodOrConstructorInvocation()
public void setArgumentCount(int count)
public int getArgumentCount()
public boolean isMethodOrConstructorInvocation()
public void setNameWhichThisQualifies(NameOccurrence qualifiedName)
public NameOccurrence getNameForWhichThisIsAQualifier()
public boolean isPartOfQualifiedName()
public JavaNode getLocation()
public boolean isOnRightHandSide()
public boolean isOnLeftHandSide()
public boolean isSelfAssignment()
i += 3;
public boolean isThisOrSuper()
public boolean useThisOrSuper()
public String getImage()
Copyright © 2002-2015 InfoEther. All Rights Reserved.