|
|
@ -43,14 +43,12 @@ public class PackageIdentifier extends Identifier { |
|
|
|
|
|
|
|
|
|
|
|
public PackageIdentifier(ClassBundle bundle, |
|
|
|
public PackageIdentifier(ClassBundle bundle, |
|
|
|
PackageIdentifier parent, |
|
|
|
PackageIdentifier parent, |
|
|
|
String name, boolean loadOnDemand) { |
|
|
|
String name) { |
|
|
|
super(name); |
|
|
|
super(name); |
|
|
|
this.bundle = bundle; |
|
|
|
this.bundle = bundle; |
|
|
|
this.parent = parent; |
|
|
|
this.parent = parent; |
|
|
|
this.name = name; |
|
|
|
this.name = name; |
|
|
|
this.loadedClasses = new HashMap(); |
|
|
|
this.loadedClasses = new HashMap(); |
|
|
|
if (loadOnDemand) |
|
|
|
|
|
|
|
setLoadOnDemand(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -94,18 +92,21 @@ public class PackageIdentifier extends Identifier { |
|
|
|
? fullname + "."+ subclazz |
|
|
|
? fullname + "."+ subclazz |
|
|
|
: subclazz; |
|
|
|
: subclazz; |
|
|
|
if (ClassInfo.isPackage(fullname)) { |
|
|
|
if (ClassInfo.isPackage(fullname)) { |
|
|
|
Identifier ident = new PackageIdentifier |
|
|
|
PackageIdentifier ident = new PackageIdentifier |
|
|
|
(bundle, this, subclazz, true); |
|
|
|
(bundle, this, subclazz); |
|
|
|
loadedClasses.put(subclazz, ident); |
|
|
|
loadedClasses.put(subclazz, ident); |
|
|
|
|
|
|
|
ident.setLoadOnDemand(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Identifier ident = new ClassIdentifier |
|
|
|
Identifier ident = new ClassIdentifier |
|
|
|
(this, subclazz, ClassInfo.forName(fullname)); |
|
|
|
(this, subclazz, ClassInfo.forName(fullname)); |
|
|
|
loadedClasses.put(subclazz, ident); |
|
|
|
loadedClasses.put(subclazz, ident); |
|
|
|
|
|
|
|
if (GlobalOptions.verboseLevel > 0) |
|
|
|
|
|
|
|
GlobalOptions.err.println("preloading "+ident); |
|
|
|
((ClassIdentifier) ident).initClass(); |
|
|
|
((ClassIdentifier) ident).initClass(); |
|
|
|
if (bundle.preserveRule != null) |
|
|
|
|
|
|
|
ident.applyPreserveRule(bundle.preserveRule); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// Everything is loaded, we don't need to load on demand anymore.
|
|
|
|
|
|
|
|
loadOnDemand = false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -114,7 +115,6 @@ public class PackageIdentifier extends Identifier { |
|
|
|
Identifier ident = loadClass(name); |
|
|
|
Identifier ident = loadClass(name); |
|
|
|
return ident; |
|
|
|
return ident; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int index = name.indexOf('.'); |
|
|
|
int index = name.indexOf('.'); |
|
|
|
if (index == -1) |
|
|
|
if (index == -1) |
|
|
|
return (Identifier) loadedClasses.get(name); |
|
|
|
return (Identifier) loadedClasses.get(name); |
|
|
@ -138,8 +138,11 @@ public class PackageIdentifier extends Identifier { |
|
|
|
? fullname + "."+ name |
|
|
|
? fullname + "."+ name |
|
|
|
: name; |
|
|
|
: name; |
|
|
|
if (ClassInfo.isPackage(fullname)) { |
|
|
|
if (ClassInfo.isPackage(fullname)) { |
|
|
|
ident = new PackageIdentifier(bundle, this, name, true); |
|
|
|
PackageIdentifier pack |
|
|
|
loadedClasses.put(name, ident); |
|
|
|
= new PackageIdentifier(bundle, this, name); |
|
|
|
|
|
|
|
loadedClasses.put(name, pack); |
|
|
|
|
|
|
|
pack.setLoadOnDemand(); |
|
|
|
|
|
|
|
ident = pack; |
|
|
|
} else if (!ClassInfo.exists(fullname)) { |
|
|
|
} else if (!ClassInfo.exists(fullname)) { |
|
|
|
GlobalOptions.err.println("Warning: Can't find class " |
|
|
|
GlobalOptions.err.println("Warning: Can't find class " |
|
|
|
+ fullname); |
|
|
|
+ fullname); |
|
|
@ -149,8 +152,6 @@ public class PackageIdentifier extends Identifier { |
|
|
|
ClassInfo.forName(fullname)); |
|
|
|
ClassInfo.forName(fullname)); |
|
|
|
loadedClasses.put(name, ident); |
|
|
|
loadedClasses.put(name, ident); |
|
|
|
((ClassIdentifier) ident).initClass(); |
|
|
|
((ClassIdentifier) ident).initClass(); |
|
|
|
if (bundle.preserveRule != null) |
|
|
|
|
|
|
|
ident.applyPreserveRule(bundle.preserveRule); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return ident; |
|
|
|
return ident; |
|
|
@ -164,8 +165,10 @@ public class PackageIdentifier extends Identifier { |
|
|
|
? fullname + "."+ subpack : subpack; |
|
|
|
? fullname + "."+ subpack : subpack; |
|
|
|
if (ClassInfo.isPackage(fullname)) { |
|
|
|
if (ClassInfo.isPackage(fullname)) { |
|
|
|
pack = new PackageIdentifier(bundle, this, |
|
|
|
pack = new PackageIdentifier(bundle, this, |
|
|
|
subpack, loadOnDemand); |
|
|
|
subpack); |
|
|
|
loadedClasses.put(subpack, pack); |
|
|
|
loadedClasses.put(subpack, pack); |
|
|
|
|
|
|
|
if (loadOnDemand) |
|
|
|
|
|
|
|
pack.setLoadOnDemand(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -176,8 +179,8 @@ public class PackageIdentifier extends Identifier { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void loadMatchingClasses(WildCard wildcard) { |
|
|
|
public void loadMatchingClasses(IdentifierMatcher matcher) { |
|
|
|
String component = wildcard.getNextComponent(getFullName()); |
|
|
|
String component = matcher.getNextComponent(this); |
|
|
|
if (component != null) { |
|
|
|
if (component != null) { |
|
|
|
Identifier ident = (Identifier) loadedClasses.get(component); |
|
|
|
Identifier ident = (Identifier) loadedClasses.get(component); |
|
|
|
if (ident == null) { |
|
|
|
if (ident == null) { |
|
|
@ -187,33 +190,34 @@ public class PackageIdentifier extends Identifier { |
|
|
|
: component; |
|
|
|
: component; |
|
|
|
if (ClassInfo.isPackage(fullname)) { |
|
|
|
if (ClassInfo.isPackage(fullname)) { |
|
|
|
ident = new PackageIdentifier(bundle, this, |
|
|
|
ident = new PackageIdentifier(bundle, this, |
|
|
|
component, loadOnDemand); |
|
|
|
component); |
|
|
|
loadedClasses.put(component, ident); |
|
|
|
loadedClasses.put(component, ident); |
|
|
|
} else if (ClassInfo.exists(fullname) |
|
|
|
if (loadOnDemand) |
|
|
|
&& wildcard.matches(fullname)) { |
|
|
|
((PackageIdentifier) ident).setLoadOnDemand(); |
|
|
|
|
|
|
|
} else if (ClassInfo.exists(fullname)) { |
|
|
|
if (GlobalOptions.verboseLevel > 1) |
|
|
|
if (GlobalOptions.verboseLevel > 1) |
|
|
|
GlobalOptions.err.println("loading Class " +fullname); |
|
|
|
GlobalOptions.err.println("loading Class " +fullname); |
|
|
|
ident = new ClassIdentifier(this, component, |
|
|
|
ident = new ClassIdentifier(this, component, |
|
|
|
ClassInfo.forName(fullname)); |
|
|
|
ClassInfo.forName(fullname)); |
|
|
|
loadedClasses.put(component, ident); |
|
|
|
if (loadOnDemand || matcher.matches(ident)) { |
|
|
|
((ClassIdentifier) ident).initClass(); |
|
|
|
loadedClasses.put(component, ident); |
|
|
|
if (bundle.preserveRule != null) |
|
|
|
((ClassIdentifier) ident).initClass(); |
|
|
|
ident.applyPreserveRule(bundle.preserveRule); |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
GlobalOptions.err.println |
|
|
|
GlobalOptions.err.println |
|
|
|
("Warning: Can't find class/package " + fullname); |
|
|
|
("Warning: Can't find class/package " + fullname); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (ident instanceof PackageIdentifier) { |
|
|
|
if (ident instanceof PackageIdentifier) { |
|
|
|
if (wildcard.matches(ident.getFullName())) { |
|
|
|
if (matcher.matches(ident)) { |
|
|
|
if (GlobalOptions.verboseLevel > 0) |
|
|
|
if (GlobalOptions.verboseLevel > 0) |
|
|
|
GlobalOptions.err.println("loading Package " |
|
|
|
GlobalOptions.err.println("loading Package " |
|
|
|
+ident.getFullName()); |
|
|
|
+ident.getFullName()); |
|
|
|
((PackageIdentifier) ident).setLoadOnDemand(); |
|
|
|
((PackageIdentifier) ident).setLoadOnDemand(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (wildcard.startsWith(ident.getFullName()+".")) |
|
|
|
if (matcher.matchesSub(ident, null)) |
|
|
|
((PackageIdentifier) ident).loadMatchingClasses(wildcard); |
|
|
|
((PackageIdentifier) ident).loadMatchingClasses(matcher); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
String fullname = getFullName(); |
|
|
|
String fullname = getFullName(); |
|
|
@ -228,47 +232,49 @@ public class PackageIdentifier extends Identifier { |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
String subFull = fullname + subclazz; |
|
|
|
String subFull = fullname + subclazz; |
|
|
|
|
|
|
|
|
|
|
|
if (wildcard.matches(subFull)) { |
|
|
|
if (matcher.matchesSub(this, subclazz)) { |
|
|
|
if (ClassInfo.isPackage(subFull)) { |
|
|
|
if (ClassInfo.isPackage(subFull)) { |
|
|
|
if (GlobalOptions.verboseLevel > 0) |
|
|
|
if (GlobalOptions.verboseLevel > 0) |
|
|
|
GlobalOptions.err.println("loading Package " +subFull); |
|
|
|
GlobalOptions.err.println("loading Package " |
|
|
|
Identifier ident = new PackageIdentifier |
|
|
|
+ subFull); |
|
|
|
(bundle, this, subclazz, true); |
|
|
|
PackageIdentifier ident = new PackageIdentifier |
|
|
|
|
|
|
|
(bundle, this, subclazz); |
|
|
|
loadedClasses.put(subclazz, ident); |
|
|
|
loadedClasses.put(subclazz, ident); |
|
|
|
|
|
|
|
if (loadOnDemand || matcher.matches(ident)) |
|
|
|
|
|
|
|
ident.setLoadOnDemand(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (GlobalOptions.verboseLevel > 1) |
|
|
|
|
|
|
|
GlobalOptions.err.println("loading Class " +subFull); |
|
|
|
|
|
|
|
ClassIdentifier ident = new ClassIdentifier |
|
|
|
ClassIdentifier ident = new ClassIdentifier |
|
|
|
(this, subclazz, ClassInfo.forName(subFull)); |
|
|
|
(this, subclazz, ClassInfo.forName(subFull)); |
|
|
|
loadedClasses.put(subclazz, ident); |
|
|
|
|
|
|
|
((ClassIdentifier) ident).initClass(); |
|
|
|
if (loadOnDemand || matcher.matches(ident)) { |
|
|
|
if (bundle.preserveRule != null) |
|
|
|
if (GlobalOptions.verboseLevel > 1) |
|
|
|
ident.applyPreserveRule(bundle.preserveRule); |
|
|
|
GlobalOptions.err.println("loading Class " |
|
|
|
|
|
|
|
+ subFull); |
|
|
|
|
|
|
|
loadedClasses.put(subclazz, ident); |
|
|
|
|
|
|
|
((ClassIdentifier) ident).initClass(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (ClassInfo.isPackage(subFull) |
|
|
|
|
|
|
|
&& wildcard.startsWith(subFull + ".")) { |
|
|
|
|
|
|
|
Identifier ident = new PackageIdentifier |
|
|
|
|
|
|
|
(bundle, this, subclazz, loadOnDemand); |
|
|
|
|
|
|
|
loadedClasses.put(subclazz, ident); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
for (Iterator i = loadedClasses.values().iterator(); |
|
|
|
for (Iterator i = loadedClasses.values().iterator(); |
|
|
|
i.hasNext(); ) { |
|
|
|
i.hasNext(); ) { |
|
|
|
Identifier ident = (Identifier) i.next(); |
|
|
|
Identifier ident = (Identifier) i.next(); |
|
|
|
if (ident instanceof PackageIdentifier) { |
|
|
|
if (ident instanceof PackageIdentifier) { |
|
|
|
if (wildcard.matches(ident.getFullName())) |
|
|
|
if (matcher.matches(ident)) |
|
|
|
((PackageIdentifier) ident).setLoadOnDemand(); |
|
|
|
((PackageIdentifier) ident).setLoadOnDemand(); |
|
|
|
|
|
|
|
|
|
|
|
if (wildcard.startsWith(ident.getFullName()+".")) |
|
|
|
if (matcher.matchesSub(ident, null)) |
|
|
|
((PackageIdentifier) ident).loadMatchingClasses(wildcard); |
|
|
|
((PackageIdentifier) ident) |
|
|
|
|
|
|
|
.loadMatchingClasses(matcher); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void applyPreserveRule(ModifierMatcher preserveRule) { |
|
|
|
public void applyPreserveRule(IdentifierMatcher preserveRule) { |
|
|
|
for (Iterator i = loadedClasses.values().iterator(); i.hasNext(); ) |
|
|
|
if (loadOnDemand) |
|
|
|
((Identifier) i.next()).applyPreserveRule(preserveRule); |
|
|
|
loadMatchingClasses(preserveRule); |
|
|
|
|
|
|
|
super.applyPreserveRule(preserveRule); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void reachableIdentifier(String fqn, boolean isVirtual) { |
|
|
|
public void reachableIdentifier(String fqn, boolean isVirtual) { |
|
|
@ -300,99 +306,99 @@ public class PackageIdentifier extends Identifier { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void preserveMatchingIdentifier(WildCard wildcard) { |
|
|
|
// public void preserveMatchingIdentifier(IdentifierMatcher matcher) {
|
|
|
|
String component = wildcard.getNextComponent(getFullName()); |
|
|
|
// String component = matcher.getNextComponent(getFullName());
|
|
|
|
if (component != null) { |
|
|
|
// if (component != null) {
|
|
|
|
String fullname = getFullName(); |
|
|
|
// String fullname = getFullName();
|
|
|
|
fullname = (fullname.length() > 0) |
|
|
|
// fullname = (fullname.length() > 0)
|
|
|
|
? fullname + "."+ component : component; |
|
|
|
// ? fullname + "."+ component : component;
|
|
|
|
Identifier ident = (Identifier) loadedClasses.get(component); |
|
|
|
// Identifier ident = (Identifier) loadedClasses.get(component);
|
|
|
|
if (ident == null) { |
|
|
|
// if (ident == null) {
|
|
|
|
if (!loadOnDemand) { |
|
|
|
// if (!loadOnDemand) {
|
|
|
|
GlobalOptions.err.println |
|
|
|
// GlobalOptions.err.println
|
|
|
|
("Warning: Didn't load package/class "+ fullname); |
|
|
|
// ("Warning: Didn't load package/class "+ fullname);
|
|
|
|
return; |
|
|
|
// return;
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (ClassInfo.isPackage(fullname)) { |
|
|
|
// if (ClassInfo.isPackage(fullname)) {
|
|
|
|
ident = new PackageIdentifier(bundle, this, |
|
|
|
// ident = new PackageIdentifier(bundle, this,
|
|
|
|
component, loadOnDemand); |
|
|
|
// component, loadOnDemand);
|
|
|
|
loadedClasses.put(component, ident); |
|
|
|
// loadedClasses.put(component, ident);
|
|
|
|
} else if (ClassInfo.exists(fullname)) { |
|
|
|
// } else if (ClassInfo.exists(fullname)) {
|
|
|
|
ident = new ClassIdentifier(this, component, |
|
|
|
// ident = new ClassIdentifier(this, component,
|
|
|
|
ClassInfo.forName(fullname)); |
|
|
|
// ClassInfo.forName(fullname));
|
|
|
|
loadedClasses.put(component, ident); |
|
|
|
// loadedClasses.put(component, ident);
|
|
|
|
((ClassIdentifier) ident).initClass(); |
|
|
|
// ((ClassIdentifier) ident).initClass();
|
|
|
|
if (bundle.preserveRule != null) |
|
|
|
// if (bundle.preserveRule != null)
|
|
|
|
ident.applyPreserveRule(bundle.preserveRule); |
|
|
|
// ident.applyPreserveRule(bundle.preserveRule);
|
|
|
|
} else { |
|
|
|
// } else {
|
|
|
|
GlobalOptions.err.println("Warning: Can't find class " |
|
|
|
// GlobalOptions.err.println("Warning: Can't find class "
|
|
|
|
+ fullname); |
|
|
|
// + fullname);
|
|
|
|
return; |
|
|
|
// return;
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (wildcard.matches(fullname)) { |
|
|
|
// if (matcher.matches(fullname)) {
|
|
|
|
if (GlobalOptions.verboseLevel > 1) |
|
|
|
// if (GlobalOptions.verboseLevel > 1)
|
|
|
|
GlobalOptions.err.println("preserving "+ident); |
|
|
|
// GlobalOptions.err.println("preserving "+ident);
|
|
|
|
ident.setPreserved(); |
|
|
|
// ident.setPreserved();
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (wildcard.startsWith(fullname+".")) { |
|
|
|
// if (matcher.startsWith(fullname+".")) {
|
|
|
|
if (ident instanceof PackageIdentifier) |
|
|
|
// if (ident instanceof PackageIdentifier)
|
|
|
|
((PackageIdentifier) ident) |
|
|
|
// ((PackageIdentifier) ident)
|
|
|
|
.preserveMatchingIdentifier(wildcard); |
|
|
|
// .preserveMatchingIdentifier(matcher);
|
|
|
|
else |
|
|
|
// else
|
|
|
|
((ClassIdentifier) ident) |
|
|
|
// ((ClassIdentifier) ident)
|
|
|
|
.preserveMatchingIdentifier(wildcard); |
|
|
|
// .preserveMatchingIdentifier(matcher);
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} else { |
|
|
|
// } else {
|
|
|
|
String fullname = getFullName(); |
|
|
|
// String fullname = getFullName();
|
|
|
|
if (fullname.length() > 0) |
|
|
|
// if (fullname.length() > 0)
|
|
|
|
fullname += "."; |
|
|
|
// fullname += ".";
|
|
|
|
if (loadOnDemand) { |
|
|
|
// if (loadOnDemand) {
|
|
|
|
/* Load all matching classes and packages */ |
|
|
|
// /* Load all matching classes and packages */
|
|
|
|
Enumeration enum = |
|
|
|
// Enumeration enum =
|
|
|
|
ClassInfo.getClassesAndPackages(getFullName()); |
|
|
|
// ClassInfo.getClassesAndPackages(getFullName());
|
|
|
|
while (enum.hasMoreElements()) { |
|
|
|
// while (enum.hasMoreElements()) {
|
|
|
|
String subclazz = (String)enum.nextElement(); |
|
|
|
// String subclazz = (String)enum.nextElement();
|
|
|
|
if (loadedClasses.containsKey(subclazz)) |
|
|
|
// if (loadedClasses.containsKey(subclazz))
|
|
|
|
continue; |
|
|
|
// continue;
|
|
|
|
String subFull = fullname + subclazz; |
|
|
|
// String subFull = fullname + subclazz;
|
|
|
|
|
|
|
|
|
|
|
|
if (wildcard.startsWith(subFull)) { |
|
|
|
// if (matcher.startsWith(subFull)) {
|
|
|
|
if (ClassInfo.isPackage(subFull)) { |
|
|
|
// if (ClassInfo.isPackage(subFull)) {
|
|
|
|
System.err.println("is package: "+subFull); |
|
|
|
// System.err.println("is package: "+subFull);
|
|
|
|
Identifier ident = new PackageIdentifier |
|
|
|
// Identifier ident = new PackageIdentifier
|
|
|
|
(bundle, this, subclazz, true); |
|
|
|
// (bundle, this, subclazz, true);
|
|
|
|
loadedClasses.put(subclazz, ident); |
|
|
|
// loadedClasses.put(subclazz, ident);
|
|
|
|
} else { |
|
|
|
// } else {
|
|
|
|
ClassIdentifier ident = new ClassIdentifier |
|
|
|
// ClassIdentifier ident = new ClassIdentifier
|
|
|
|
(this, subclazz, ClassInfo.forName(subFull)); |
|
|
|
// (this, subclazz, ClassInfo.forName(subFull));
|
|
|
|
loadedClasses.put(subclazz, ident); |
|
|
|
// loadedClasses.put(subclazz, ident);
|
|
|
|
((ClassIdentifier) ident).initClass(); |
|
|
|
// ((ClassIdentifier) ident).initClass();
|
|
|
|
if (bundle.preserveRule != null) |
|
|
|
// if (bundle.preserveRule != null)
|
|
|
|
ident.applyPreserveRule(bundle.preserveRule); |
|
|
|
// ident.applyPreserveRule(bundle.preserveRule);
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
// }
|
|
|
|
for (Iterator i = loadedClasses.values().iterator(); |
|
|
|
// for (Iterator i = loadedClasses.values().iterator();
|
|
|
|
i.hasNext(); ) { |
|
|
|
// i.hasNext(); ) {
|
|
|
|
Identifier ident = (Identifier) i.next(); |
|
|
|
// Identifier ident = (Identifier) i.next();
|
|
|
|
if (wildcard.matches(ident.getFullName())) { |
|
|
|
// if (matcher.matches(ident.getFullName())) {
|
|
|
|
if (GlobalOptions.verboseLevel > 1) |
|
|
|
// if (GlobalOptions.verboseLevel > 1)
|
|
|
|
GlobalOptions.err.println("Preserving "+ident); |
|
|
|
// GlobalOptions.err.println("Preserving "+ident);
|
|
|
|
ident.setPreserved(); |
|
|
|
// ident.setPreserved();
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (wildcard.startsWith(ident.getFullName()+".")) { |
|
|
|
// if (matcher.startsWith(ident.getFullName()+".")) {
|
|
|
|
if (ident instanceof PackageIdentifier) |
|
|
|
// if (ident instanceof PackageIdentifier)
|
|
|
|
((PackageIdentifier) ident) |
|
|
|
// ((PackageIdentifier) ident)
|
|
|
|
.preserveMatchingIdentifier(wildcard); |
|
|
|
// .preserveMatchingIdentifier(matcher);
|
|
|
|
else |
|
|
|
// else
|
|
|
|
((ClassIdentifier) ident) |
|
|
|
// ((ClassIdentifier) ident)
|
|
|
|
.preserveMatchingIdentifier(wildcard); |
|
|
|
// .preserveMatchingIdentifier(matcher);
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} |
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @return the full qualified name. |
|
|
|
* @return the full qualified name. |
|
|
|