public class DirSourceLocation extends java.lang.Object implements SourceLocation
| Constructor and Description |
|---|
DirSourceLocation(java.io.File dir)
Constructor.
|
DirSourceLocation(java.lang.String dir)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CompilationUnit |
getCompilationUnit(ClassFile cf)
Returns an AST for the specified class file.
|
java.lang.String |
getLocationAsString()
Returns a string representation of this source location.
|
public DirSourceLocation(java.lang.String dir)
dir - The directory containing the source files.public DirSourceLocation(java.io.File dir)
dir - The directory containing the source files.public CompilationUnit getCompilationUnit(ClassFile cf) throws java.io.IOException
getCompilationUnit in interface SourceLocationcf - The class file to grab the AST for.null if it cannot be found.java.io.IOException - If an IO error occurs.public java.lang.String getLocationAsString()
getLocationAsString in interface SourceLocationnull if
it is not an accessible location.