Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ClassPath.java

00001 package gov.nasa.arc.ase.jpf.jvm;
00002 
00003 import java.util.StringTokenizer;
00004 import java.io.File;
00005 
00006 public class ClassPath {
00007   private static String[] classPath;
00008   
00009   static {
00010     StringTokenizer st = new StringTokenizer(System.getProperty("java.class.path"), File.pathSeparator);
00011     classPath = new String[st.countTokens()];
00012     for(int i = 0; st.hasMoreTokens(); i++)
00013       classPath[i] = st.nextToken();
00014   }
00015 
00016   private ClassPath() {
00017   }  
00018   public static String get(int index) {
00019     return classPath[index];
00020   }  
00021   public static int length() {
00022     return classPath.length;
00023   }  
00024 }

Generated at Thu Feb 7 06:42:29 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001