|
|
@ -633,9 +633,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++) { |
|
|
@ -651,9 +651,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()); |
|
|
|
} |
|
|
|
} |
|
|
@ -915,9 +915,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -932,9 +932,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)) { |
|
|
@ -1089,9 +1089,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(); |
|
|
@ -1124,9 +1124,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); |
|
|
|
} |
|
|
|
} |
|
|
|