Modifier and Type | Method and Description |
---|---|
List<NameOccurrence> |
ASTVariableDeclaratorId.getUsages() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
AbstractInefficientZeroCheck.isTargetMethod(NameOccurrence occ) |
Modifier and Type | Method and Description |
---|---|
boolean |
UseCollectionIsEmptyRule.isTargetMethod(NameOccurrence occ)
Determine if we're dealing with .size method
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractOptimizationRule.assigned(List<NameOccurrence> usages) |
Modifier and Type | Method and Description |
---|---|
boolean |
InefficientEmptyStringCheckRule.isTargetMethod(NameOccurrence occ)
Determine if we're dealing with String.length method
|
Modifier and Type | Field and Description |
---|---|
protected Map<ClassNameDeclaration,List<NameOccurrence>> |
ClassScope.classNames |
protected Map<ClassNameDeclaration,List<NameOccurrence>> |
SourceFileScope.classNames |
protected Map<MethodNameDeclaration,List<NameOccurrence>> |
ClassScope.methodNames |
protected Map<VariableNameDeclaration,List<NameOccurrence>> |
LocalScope.variableNames |
protected Map<VariableNameDeclaration,List<NameOccurrence>> |
MethodScope.variableNames |
protected Map<VariableNameDeclaration,List<NameOccurrence>> |
ClassScope.variableNames |
Modifier and Type | Method and Description |
---|---|
NameOccurrence |
NameOccurrence.getNameForWhichThisIsAQualifier() |
Modifier and Type | Method and Description |
---|---|
NameDeclaration |
LocalScope.addVariableNameOccurrence(NameOccurrence occurrence) |
NameDeclaration |
MethodScope.addVariableNameOccurrence(NameOccurrence occurrence) |
NameDeclaration |
ClassScope.addVariableNameOccurrence(NameOccurrence occurrence) |
NameDeclaration |
DummyScope.addVariableNameOccurrence(NameOccurrence occ) |
NameDeclaration |
Scope.addVariableNameOccurrence(NameOccurrence occ)
Adds a NameOccurrence to this scope - only call this after getting
a true back from contains()
|
NameDeclaration |
SourceFileScope.addVariableNameOccurrence(NameOccurrence occ) |
boolean |
DummyScope.contains(NameOccurrence occ) |
boolean |
AbstractScope.contains(NameOccurrence occurrence) |
boolean |
Scope.contains(NameOccurrence occ)
Tests whether or not a NameOccurrence is directly contained in the scope
Note that this search is just for this scope - it doesn't go diving into any
child scopes.
|
NameDeclaration |
LocalScope.findVariableHere(NameOccurrence occurrence) |
NameDeclaration |
MethodScope.findVariableHere(NameOccurrence occurrence) |
protected NameDeclaration |
ClassScope.findVariableHere(NameOccurrence occurrence) |
protected abstract NameDeclaration |
AbstractScope.findVariableHere(NameOccurrence occurrence) |
protected NameDeclaration |
SourceFileScope.findVariableHere(NameOccurrence occ) |
void |
NameOccurrence.setNameWhichThisQualifies(NameOccurrence qualifiedName) |
Constructor and Description |
---|
Search(NameOccurrence occ) |
Constructor and Description |
---|
VariableUsageFinderFunction(Map<VariableNameDeclaration,List<NameOccurrence>> decls) |
Copyright © 2002-2013 InfoEther. All Rights Reserved.