Interface SourceLocation

    • 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 null if 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 null if it is not an accessible location.