Package org.fife.rsta.ac.java.buildpath
Interface SourceLocation
-
- All Known Implementing Classes:
ClasspathSourceLocation,DirSourceLocation,ZipSourceLocation
public interface SourceLocationRepresents the location of Java source, either in a zip file (src.zip), a flat file (source in a project's source folder), or in some other location.- Version:
- 1.0
- See Also:
DirSourceLocation,ZipSourceLocation,ClasspathSourceLocation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompilationUnitgetCompilationUnit(ClassFile cf)Returns an AST for the specified class file.java.lang.StringgetLocationAsString()Returns a string representation of this source location.
-
-
-
Method Detail
-
getCompilationUnit
CompilationUnit getCompilationUnit(ClassFile cf) throws java.io.IOException
Returns an AST for the specified class file.- Parameters:
cf- The class file to grab the AST for.- Returns:
- The AST, or
nullif it cannot be found. - Throws:
java.io.IOException- If an IO error occurs.
-
getLocationAsString
java.lang.String getLocationAsString()
Returns a string representation of this source location. For locations on disk such as zip files or directories, this should be the full path to the resource.- Returns:
- The location of this source as a string, or
nullif it is not an accessible location.
-
-