home *** CD-ROM | disk | FTP | other *** search
- package sun.misc;
-
- import java.net.URL;
- import java.util.Enumeration;
- import java.util.NoSuchElementException;
-
- final class URLClassPath$1 implements Enumeration {
- private int index;
- private URL url;
- // $FF: synthetic field
- final String val$name;
- // $FF: synthetic field
- final boolean val$check;
- // $FF: synthetic field
- final URLClassPath this$0;
-
- URLClassPath$1(URLClassPath var1, String var2, boolean var3) {
- this.this$0 = var1;
- this.val$name = var2;
- this.val$check = var3;
- this.index = 0;
- this.url = null;
- }
-
- private boolean next() {
- if (this.url != null) {
- return true;
- } else {
- URLClassPath.Loader var1;
- while((var1 = URLClassPath.access$000(this.this$0, this.index++)) != null) {
- this.url = var1.findResource(this.val$name, this.val$check);
- if (this.url != null) {
- return true;
- }
- }
-
- return false;
- }
- }
-
- public boolean hasMoreElements() {
- return this.next();
- }
-
- public Object nextElement() {
- if (!this.next()) {
- throw new NoSuchElementException();
- } else {
- URL var1 = this.url;
- this.url = null;
- return var1;
- }
- }
- }
-