Interface SpoonFile

All Superinterfaces:
All Known Implementing Classes:
FileSystemFile, VirtualFile, ZipFile

public interface SpoonFile extends SpoonResource
This interface represents files that can be used as resources for the Spoon compiler.
  • Method Details

    • getContent

      InputStream getContent()
      Gets the file content as a stream.
    • isJava

      boolean isJava()
      True if a Java source code file.
    • isActualFile

      boolean isActualFile()
      Tells if this file is an actual file (not a virtual file that holds in-memory contents).
    • getContentChars

      default char[] getContentChars(Environment env)
      Gets the file content as a char array, considering encoding or encoding provider.