|
|
@ -46,8 +46,11 @@ public class PackageIdentifier extends Identifier { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Identifier getIdentifier(String name) { |
|
|
|
public Identifier getIdentifier(String name) { |
|
|
|
if (loadOnDemand) |
|
|
|
if (loadOnDemand) { |
|
|
|
return loadClass(name); |
|
|
|
Identifier ident = loadClass(name); |
|
|
|
|
|
|
|
if (bundle.preserveRule != -1) |
|
|
|
|
|
|
|
ident.applyPreserveRule(bundle.preserveRule); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int index = name.indexOf('.'); |
|
|
|
int index = name.indexOf('.'); |
|
|
|
if (index == -1) |
|
|
|
if (index == -1) |
|
|
@ -116,6 +119,12 @@ public class PackageIdentifier extends Identifier { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void applyPreserveRule(int preserveRule) { |
|
|
|
|
|
|
|
Enumeration enum = loadedClasses.elements(); |
|
|
|
|
|
|
|
while(enum.hasMoreElements()) |
|
|
|
|
|
|
|
((Identifier) enum.nextElement()).applyPreserveRule(preserveRule); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void reachableIdentifier(String fqn, boolean isVirtual) { |
|
|
|
public void reachableIdentifier(String fqn, boolean isVirtual) { |
|
|
|
int index = fqn.indexOf('.'); |
|
|
|
int index = fqn.indexOf('.'); |
|
|
|
String component = index == -1 ? fqn : fqn.substring(0, index); |
|
|
|
String component = index == -1 ? fqn : fqn.substring(0, index); |
|
|
|