|
|
@ -674,9 +674,9 @@ public class MethodAnalyzer implements Scope, ClassDeclarer { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void makeDeclaration(Set done) { |
|
|
|
public void makeDeclaration(Set done) { |
|
|
|
if (innerAnalyzers != null) { |
|
|
|
if (innerAnalyzers != null) { |
|
|
|
for (Enumeration enum = innerAnalyzers.elements(); |
|
|
|
for (Enumeration enumeration = innerAnalyzers.elements(); |
|
|
|
enum.hasMoreElements(); ) { |
|
|
|
enumeration.hasMoreElements(); ) { |
|
|
|
ClassAnalyzer classAna = (ClassAnalyzer) enum.nextElement(); |
|
|
|
ClassAnalyzer classAna = (ClassAnalyzer) enumeration.nextElement(); |
|
|
|
if (classAna.getParent() == this) { |
|
|
|
if (classAna.getParent() == this) { |
|
|
|
OuterValues innerOV = classAna.getOuterValues(); |
|
|
|
OuterValues innerOV = classAna.getOuterValues(); |
|
|
|
for (int i=0; i < innerOV.getCount(); i++) { |
|
|
|
for (int i=0; i < innerOV.getCount(); i++) { |
|
|
@ -692,9 +692,9 @@ public class MethodAnalyzer implements Scope, ClassDeclarer { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (Enumeration enum = allLocals.elements(); |
|
|
|
for (Enumeration enumeration = allLocals.elements(); |
|
|
|
enum.hasMoreElements(); ) { |
|
|
|
enumeration.hasMoreElements(); ) { |
|
|
|
LocalInfo li = (LocalInfo)enum.nextElement(); |
|
|
|
LocalInfo li = (LocalInfo)enumeration.nextElement(); |
|
|
|
if (!li.isShadow()) |
|
|
|
if (!li.isShadow()) |
|
|
|
imports.useType(li.getType()); |
|
|
|
imports.useType(li.getType()); |
|
|
|
} |
|
|
|
} |
|
|
@ -947,9 +947,9 @@ public class MethodAnalyzer implements Scope, ClassDeclarer { |
|
|
|
* exists. |
|
|
|
* exists. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public LocalInfo findLocal(String name) { |
|
|
|
public LocalInfo findLocal(String name) { |
|
|
|
Enumeration enum = allLocals.elements(); |
|
|
|
Enumeration enumeration = allLocals.elements(); |
|
|
|
while (enum.hasMoreElements()) { |
|
|
|
while (enumeration.hasMoreElements()) { |
|
|
|
LocalInfo li = (LocalInfo) enum.nextElement(); |
|
|
|
LocalInfo li = (LocalInfo) enumeration.nextElement(); |
|
|
|
if (li.getName().equals(name)) |
|
|
|
if (li.getName().equals(name)) |
|
|
|
return li; |
|
|
|
return li; |
|
|
|
} |
|
|
|
} |
|
|
@ -964,9 +964,9 @@ public class MethodAnalyzer implements Scope, ClassDeclarer { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public ClassAnalyzer findAnonClass(String name) { |
|
|
|
public ClassAnalyzer findAnonClass(String name) { |
|
|
|
if (innerAnalyzers != null) { |
|
|
|
if (innerAnalyzers != null) { |
|
|
|
Enumeration enum = innerAnalyzers.elements(); |
|
|
|
Enumeration enumeration = innerAnalyzers.elements(); |
|
|
|
while (enum.hasMoreElements()) { |
|
|
|
while (enumeration.hasMoreElements()) { |
|
|
|
ClassAnalyzer classAna = (ClassAnalyzer) enum.nextElement(); |
|
|
|
ClassAnalyzer classAna = (ClassAnalyzer) enumeration.nextElement(); |
|
|
|
if (classAna.getParent() == this |
|
|
|
if (classAna.getParent() == this |
|
|
|
&& classAna.getName() != null |
|
|
|
&& classAna.getName() != null |
|
|
|
&& classAna.getName().equals(name)) { |
|
|
|
&& classAna.getName().equals(name)) { |
|
|
@ -1115,9 +1115,9 @@ public class MethodAnalyzer implements Scope, ClassDeclarer { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public ClassAnalyzer getClassAnalyzer(ClassInfo cinfo) { |
|
|
|
public ClassAnalyzer getClassAnalyzer(ClassInfo cinfo) { |
|
|
|
if (innerAnalyzers != null) { |
|
|
|
if (innerAnalyzers != null) { |
|
|
|
Enumeration enum = innerAnalyzers.elements(); |
|
|
|
Enumeration enumeration = innerAnalyzers.elements(); |
|
|
|
while (enum.hasMoreElements()) { |
|
|
|
while (enumeration.hasMoreElements()) { |
|
|
|
ClassAnalyzer classAna = (ClassAnalyzer) enum.nextElement(); |
|
|
|
ClassAnalyzer classAna = (ClassAnalyzer) enumeration.nextElement(); |
|
|
|
if (classAna.getClazz().equals(cinfo)) { |
|
|
|
if (classAna.getClazz().equals(cinfo)) { |
|
|
|
if (classAna.getParent() != this) { |
|
|
|
if (classAna.getParent() != this) { |
|
|
|
ClassDeclarer declarer = classAna.getParent(); |
|
|
|
ClassDeclarer declarer = classAna.getParent(); |
|
|
@ -1150,9 +1150,9 @@ public class MethodAnalyzer implements Scope, ClassDeclarer { |
|
|
|
if (usedAnalyzers != null) |
|
|
|
if (usedAnalyzers != null) |
|
|
|
used.addAll(usedAnalyzers); |
|
|
|
used.addAll(usedAnalyzers); |
|
|
|
if (innerAnalyzers != null) { |
|
|
|
if (innerAnalyzers != null) { |
|
|
|
Enumeration enum = innerAnalyzers.elements(); |
|
|
|
Enumeration enumeration = innerAnalyzers.elements(); |
|
|
|
while (enum.hasMoreElements()) { |
|
|
|
while (enumeration.hasMoreElements()) { |
|
|
|
ClassAnalyzer classAna = (ClassAnalyzer) enum.nextElement(); |
|
|
|
ClassAnalyzer classAna = (ClassAnalyzer) enumeration.nextElement(); |
|
|
|
if (classAna.getParent() == this) |
|
|
|
if (classAna.getParent() == this) |
|
|
|
classAna.fillDeclarables(used); |
|
|
|
classAna.fillDeclarables(used); |
|
|
|
} |
|
|
|
} |
|
|
|