src/share/classes/com/sun/tools/javac/file/Paths.java

Print this page




  49 /** This class converts command line arguments, environment variables
  50  *  and system properties (in File.pathSeparator-separated String form)
  51  *  into a boot class path, user class path, and source path (in
  52  *  Collection<String> form).
  53  *
  54  *  <p><b>This is NOT part of any API supported by Sun Microsystems.  If
  55  *  you write code that depends on this, you do so at your own risk.
  56  *  This code and its internal interfaces are subject to change or
  57  *  deletion without notice.</b>
  58  */
  59 public class Paths {
  60 
  61     /** The context key for the todo list */
  62     protected static final Context.Key<Paths> pathsKey =
  63         new Context.Key<Paths>();
  64 
  65     /** Get the Paths instance for this context.
  66      *  @param context the context
  67      *  @return the Paths instance for this context
  68      */
  69     static Paths instance(Context context) {
  70         Paths instance = context.get(pathsKey);
  71         if (instance == null)
  72             instance = new Paths(context);
  73         return instance;
  74     }
  75 
  76     /** The log to use for warning output */
  77     private Log log;
  78 
  79     /** Collection of command-line options */
  80     private Options options;
  81 
  82     /** Handler for -Xlint options */
  83     private Lint lint;
  84 
  85     /** Access to (possibly cached) file info */
  86     private FSInfo fsInfo;
  87 
  88     protected Paths(Context context) {
  89         context.put(pathsKey, this);




  49 /** This class converts command line arguments, environment variables
  50  *  and system properties (in File.pathSeparator-separated String form)
  51  *  into a boot class path, user class path, and source path (in
  52  *  Collection<String> form).
  53  *
  54  *  <p><b>This is NOT part of any API supported by Sun Microsystems.  If
  55  *  you write code that depends on this, you do so at your own risk.
  56  *  This code and its internal interfaces are subject to change or
  57  *  deletion without notice.</b>
  58  */
  59 public class Paths {
  60 
  61     /** The context key for the todo list */
  62     protected static final Context.Key<Paths> pathsKey =
  63         new Context.Key<Paths>();
  64 
  65     /** Get the Paths instance for this context.
  66      *  @param context the context
  67      *  @return the Paths instance for this context
  68      */
  69     public static Paths instance(Context context) {
  70         Paths instance = context.get(pathsKey);
  71         if (instance == null)
  72             instance = new Paths(context);
  73         return instance;
  74     }
  75 
  76     /** The log to use for warning output */
  77     private Log log;
  78 
  79     /** Collection of command-line options */
  80     private Options options;
  81 
  82     /** Handler for -Xlint options */
  83     private Lint lint;
  84 
  85     /** Access to (possibly cached) file info */
  86     private FSInfo fsInfo;
  87 
  88     protected Paths(Context context) {
  89         context.put(pathsKey, this);