home *** CD-ROM | disk | FTP | other *** search
- package sun.applet;
-
- import java.net.URL;
- import java.util.Enumeration;
- import java.util.NoSuchElementException;
-
- class AppletClassLoader$3 implements Enumeration {
- private boolean done;
- // $FF: synthetic field
- private final Enumeration val$e;
- // $FF: synthetic field
- private final URL val$url;
- // $FF: synthetic field
- private final AppletClassLoader this$0;
-
- AppletClassLoader$3(AppletClassLoader var1, Enumeration var2, URL var3) {
- this.this$0 = var1;
- this.val$e = var2;
- this.val$url = var3;
- }
-
- public Object nextElement() {
- if (!this.done) {
- if (this.val$e.hasMoreElements()) {
- return this.val$e.nextElement();
- }
-
- this.done = true;
- if (this.val$url != null) {
- return this.val$url;
- }
- }
-
- throw new NoSuchElementException();
- }
-
- public boolean hasMoreElements() {
- return !this.done && (this.val$e.hasMoreElements() || this.val$url != null);
- }
- }
-