Klasse TranspilerLanguagePlugin

java.lang.Object
de.svws_nrw.transpiler.TranspilerLanguagePlugin
Bekannte direkte Unterklassen:
ApiTranspilerTypeScriptPlugin, TranspilerTypeScriptPlugin

public abstract class TranspilerLanguagePlugin extends Object
The abstract super class of language plugins for the Transpiler.
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    protected final ArrayList<String>
    an ArrayList containing all the relative file names generated by this plugin
    protected final ArrayList<Boolean>
    an ArrayList containing additional information whether the files are only used as types (used e.g. in the typescript plugin)
    protected final Transpiler
    The internal reference to the transpiler using this language plugin
  • Konstruktorübersicht

    Konstruktoren
    Modifizierer
    Konstruktor
    Beschreibung
    protected
    This constructor is invoked on creating an new language plugin for the specified transpiler.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Returns a list containing all the relative file names generated by this plugin.
    Returns a list containing the information whether the output files are used as types only for all the files generated by this plugin.
    Returns the transpiler associated with this plugin
    abstract void
    This method is invoked by the transpiler to start the transpiling process for this language plugin.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • transpiler

      protected final Transpiler transpiler
      The internal reference to the transpiler using this language plugin
    • outputFiles

      protected final ArrayList<String> outputFiles
      an ArrayList containing all the relative file names generated by this plugin
    • outputFilesTypeOnly

      protected final ArrayList<Boolean> outputFilesTypeOnly
      an ArrayList containing additional information whether the files are only used as types (used e.g. in the typescript plugin)
  • Konstruktordetails

    • TranspilerLanguagePlugin

      protected TranspilerLanguagePlugin(Transpiler transpiler)
      This constructor is invoked on creating an new language plugin for the specified transpiler. The plugin is autmatically registered at the transpiler.
      Parameter:
      transpiler - the transpiler using this plugin instance
  • Methodendetails

    • getTranspiler

      public Transpiler getTranspiler()
      Returns the transpiler associated with this plugin
      Gibt zurück:
      the transpiler object used by this plugin
    • transpile

      public abstract void transpile()
      This method is invoked by the transpiler to start the transpiling process for this language plugin. It must be implemented by the language plugin.
    • getOutputFiles

      public List<String> getOutputFiles()
      Returns a list containing all the relative file names generated by this plugin.
      Gibt zurück:
      the filename list
    • getOutputFilesTypeOnly

      public List<Boolean> getOutputFilesTypeOnly()
      Returns a list containing the information whether the output files are used as types only for all the files generated by this plugin.
      Gibt zurück:
      the list