001    package org.jetbrains.jet.cli.jvm.compiler;
002    
003    import com.intellij.openapi.vfs.VirtualFile;
004    import org.jetbrains.annotations.NotNull;
005    
006    import java.util.ArrayList;
007    import java.util.Iterator;
008    import java.util.List;
009    
010    public final class ClassPath implements Iterable<VirtualFile> {
011    
012        @NotNull
013        private final List<VirtualFile> roots = new ArrayList<VirtualFile>();
014    
015        @Override
016        public Iterator<VirtualFile> iterator() {
017            return roots.iterator();
018        }
019    
020        public void add(@NotNull VirtualFile root) {
021            roots.add(root);
022        }
023    }