Class AtlCompiler

java.lang.Object
org.eclipse.m2m.atl.engine.compiler.AtlCompiler

public final class AtlCompiler extends Object
The ATL compiler.
  • Field Details

  • Method Details

    • getCompiler

      public static AtlStandaloneCompiler getCompiler(String compilerName)
      Searches for the correct implementation of AtlStandaloneCompiler which is independent of Eclipse platform stuff like IFile, IResource, etc.
      Parameters:
      compilerName - name of the compiler to search for
      Returns:
      the compiler which was found
    • compile

      public static org.eclipse.emf.ecore.EObject[] compile(Reader in, org.eclipse.core.resources.IFile out) throws IOException
      Performs compilation.
      Parameters:
      in - The InputStream to get atl source from.
      out - The IFile to which the ATL compiled program will be saved.
      Returns:
      the problems which occured during compilation
      Throws:
      IOException
    • compile

      public static org.eclipse.emf.ecore.EObject[] compile(Reader in, String outputFileName) throws IOException
      Standalone compilation.
      Parameters:
      in - The InputStream to get atl source from.
      outputFileName - The output file name
      Returns:
      the problems which occurred during compilation
      Throws:
      IOException
    • compile

      public static org.eclipse.emf.ecore.EObject[] compile(InputStream in, OutputStream outputStream) throws IOException
      Standalone compilation, to an outputStream.
      Parameters:
      in - The InputStream to get atl source from.
      outputStream - The output file name
      Returns:
      the problems which occurred during compilation
      Throws:
      IOException