|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.file.Paths
public class Paths
This class converts command line arguments, environment variables
and system properties (in File.pathSeparator-separated String form)
into a boot class path, user class path, and source path (in
Collection This is NOT part of any API supported by Sun Microsystems. If
you write code that depends on this, you do so at your own risk.
This code and its internal interfaces are subject to change or
deletion without notice.
Nested Class Summary
private classPaths.Path
Field Summary
private java.io.FilebootClassPathRtJar
rt.jar as found on the default bootclass path.
private Paths.PathclassSearchPath
The actual effective locations searched for classes
private FSInfofsInfo
Access to (possibly cached) file info
private booleaninited
private Lintlint
Handler for -Xlint options
private Loglog
The log to use for warning output
private Optionsoptions
Collection of command-line options
private Paths.PathotherSearchPath
The actual effective locations for non-source, non-class files
private java.util.Map<JavaFileManager.Location,Paths.Path>pathsForLocation
protected static Context.Key<Paths>pathsKey
The context key for the todo list
private Paths.PathsourceSearchPath
The actual effective locations searched for sources
private booleanwarn
Whether to warn about non-existent path elements
Constructor Summary
protected Paths(Context context)
Method Summary
java.util.Collection<java.io.File>bootClassPath()
java.util.Collection<java.io.File>classSearchPath()
private Paths.PathcomputeAnnotationProcessorPath()
private Paths.PathcomputeBootClassPath()
private Paths.PathcomputeSourcePath()
private Paths.PathcomputeUserClassPath()
private static java.lang.Iterable<java.io.File>getPathEntries(java.lang.String path)
Split a path into its elements.
private static java.lang.Iterable<java.io.File>getPathEntries(java.lang.String path,
java.io.File emptyPathDefault)
Split a path into its elements.
(package private) Paths.PathgetPathForLocation(JavaFileManager.Location location)
static Pathsinstance(Context context)
Get the Paths instance for this context.
private booleanisArchive(java.io.File file)
Is this the name of an archive file?
(package private) booleanisBootClassPathRtJar(java.io.File file)
protected voidlazy()
(package private) java.util.Collection<java.io.File>otherSearchPath()
(package private) voidsetContext(Context context)
(package private) voidsetPathForLocation(JavaFileManager.Location location,
java.lang.Iterable<? extends java.io.File> path)
java.util.Collection<java.io.File>sourcePath()
java.util.Collection<java.io.File>sourceSearchPath()
java.util.Collection<java.io.File>userClassPath()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
pathsKey
protected static final Context.Key<Paths> pathsKey
log
private Log log
options
private Options options
lint
private Lint lint
fsInfo
private FSInfo fsInfo
warn
private boolean warn
pathsForLocation
private java.util.Map<JavaFileManager.Location,Paths.Path> pathsForLocation
inited
private boolean inited
bootClassPathRtJar
private java.io.File bootClassPathRtJar
sourceSearchPath
private Paths.Path sourceSearchPath
classSearchPath
private Paths.Path classSearchPath
otherSearchPath
private Paths.Path otherSearchPath
Constructor Detail
Paths
protected Paths(Context context)
Method Detail
instance
public static Paths instance(Context context)
context - the context
setContext
void setContext(Context context)
getPathForLocation
Paths.Path getPathForLocation(JavaFileManager.Location location)
setPathForLocation
void setPathForLocation(JavaFileManager.Location location,
java.lang.Iterable<? extends java.io.File> path)
lazy
protected void lazy()
bootClassPath
public java.util.Collection<java.io.File> bootClassPath()
userClassPath
public java.util.Collection<java.io.File> userClassPath()
sourcePath
public java.util.Collection<java.io.File> sourcePath()
isBootClassPathRtJar
boolean isBootClassPathRtJar(java.io.File file)
getPathEntries
private static java.lang.Iterable<java.io.File> getPathEntries(java.lang.String path)
path - The path to be split
getPathEntries
private static java.lang.Iterable<java.io.File> getPathEntries(java.lang.String path,
java.io.File emptyPathDefault)
path - The path to be splitemptyPathDefault - The value to substitute for empty path elements,
or null, to ignore empty path elements
computeBootClassPath
private Paths.Path computeBootClassPath()
computeUserClassPath
private Paths.Path computeUserClassPath()
computeSourcePath
private Paths.Path computeSourcePath()
computeAnnotationProcessorPath
private Paths.Path computeAnnotationProcessorPath()
sourceSearchPath
public java.util.Collection<java.io.File> sourceSearchPath()
classSearchPath
public java.util.Collection<java.io.File> classSearchPath()
otherSearchPath
java.util.Collection<java.io.File> otherSearchPath()
isArchive
private boolean isArchive(java.io.File file)
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD