Klasse TranspilerResource

java.lang.Object
de.svws_nrw.transpiler.TranspilerResource

public class TranspilerResource extends Object
This class represents the content of a resource file that is associated with a java class and that is used by a language plugin.
  • Felddetails

    • packageName

      public final String packageName
      the package name of the associated class
    • className

      public final String className
      the name of the associated class
    • extension

      public final String extension
      the files extension of the resource file
    • path

      public final Path path
      the path of the resource file
    • data

      public final String data
      the content of the resource file as an UTF-8 string
  • Konstruktordetails

    • TranspilerResource

      public TranspilerResource(String packageName, String className, String extension, Path path) throws IOException
      Create a new transpiler resource object and reads the file content.
      Parameter:
      packageName - the package name of the associated class
      className - the name of the associated class
      extension - the files extension of the resource file
      path - the path of the resource file
      Löst aus:
      IOException - this exception is thrown if the resource file data cannot be read