|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.engine.compiler.AtlDefaultCompiler
public abstract class AtlDefaultCompiler
Default implementation of methods necessary for all ATL compilers. Attention: This class MUST NOT reference any types of the platform (e.g. IFile), because it must be usable stand-alone, without Eclipse, too.
Constructor Summary | |
---|---|
AtlDefaultCompiler()
|
Method Summary | |
---|---|
CompileTimeError[] |
compile(java.io.InputStream in,
java.lang.String outputFileName)
Compiles an ATL script and returns easily accessible error messages. |
org.eclipse.emf.ecore.EObject[] |
compileWithProblemModel(IModel atlModel,
java.io.OutputStream outputStream)
Compiles an ATL script and returns easily accessible error messages. |
org.eclipse.emf.ecore.EObject[] |
compileWithProblemModel(IModel atlModel,
java.lang.String outputFileName)
Compiles an ATL script and returns easily accessible error messages. |
org.eclipse.emf.ecore.EObject[] |
compileWithProblemModel(java.io.InputStream in,
java.io.OutputStream outputStream)
Compiles an ATL script and returns easily accessible error messages. |
org.eclipse.emf.ecore.EObject[] |
compileWithProblemModel(java.io.InputStream in,
java.lang.String outputFileName)
Compiles an ATL script and returns easily accessible error messages. |
protected abstract java.net.URL |
getCodegeneratorURL()
Returns the URL of the ATL compiler transformation; to be implemented by concrete subclass. |
static java.io.OutputStream |
getCompilationOutputStream()
Allow to write the compilation result on an OutputStream . |
protected abstract java.net.URL |
getSemanticAnalyzerURL()
Returns the ATL WFR URL (whatever that may be); to be implemented by concrete subclass. |
org.eclipse.emf.ecore.EObject[] |
internalCompile(IModel atlmodel,
java.lang.String outputFileName)
Compiles an ATL model. |
org.eclipse.emf.ecore.EObject[] |
internalCompile(java.io.InputStream in,
java.lang.String outputFileName)
Compiles an ATL source file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AtlDefaultCompiler()
Method Detail |
---|
public final CompileTimeError[] compile(java.io.InputStream in, java.lang.String outputFileName)
compile
in interface AtlStandaloneCompiler
in
- The InputStream to get atl source from.outputFileName
- Name of the file to which the ATL compiled program will be saved.
AtlStandaloneCompiler.compile(java.io.InputStream,
java.lang.String)
public org.eclipse.emf.ecore.EObject[] compileWithProblemModel(java.io.InputStream in, java.lang.String outputFileName)
compileWithProblemModel
in interface AtlStandaloneCompiler
in
- The InputStream to get atl source from.outputFileName
- Name of the file to which the ATL compiled program will be saved.
AtlStandaloneCompiler.compileWithProblemModel(java.io.InputStream,
java.lang.String)
public org.eclipse.emf.ecore.EObject[] compileWithProblemModel(java.io.InputStream in, java.io.OutputStream outputStream)
compileWithProblemModel
in interface AtlStandaloneCompiler
in
- The InputStream to get atl source from.outputStream
- the compilation ASM output stream
AtlStandaloneCompiler.compileWithProblemModel(java.io.InputStream,
java.io.OutputStream)
public org.eclipse.emf.ecore.EObject[] compileWithProblemModel(IModel atlModel, java.lang.String outputFileName)
compileWithProblemModel
in interface AtlStandaloneCompiler
atlModel
- The atlModel.outputFileName
- Name of the file to which the ATL compiled program will be saved.
AtlStandaloneCompiler.compileWithProblemModel(org.eclipse.m2m.atl.core.IModel,
java.lang.String)
public org.eclipse.emf.ecore.EObject[] compileWithProblemModel(IModel atlModel, java.io.OutputStream outputStream)
compileWithProblemModel
in interface AtlStandaloneCompiler
atlModel
- The atlModel.outputStream
- the compilation ASM output stream
AtlStandaloneCompiler.compileWithProblemModel(org.eclipse.m2m.atl.core.IModel,
java.io.OutputStream)
protected abstract java.net.URL getSemanticAnalyzerURL()
protected abstract java.net.URL getCodegeneratorURL()
public org.eclipse.emf.ecore.EObject[] internalCompile(java.io.InputStream in, java.lang.String outputFileName)
in
- The InputStream to get atl source from.outputFileName
- The name of the file to which the ATL compiled program will be saved.
public org.eclipse.emf.ecore.EObject[] internalCompile(IModel atlmodel, java.lang.String outputFileName) throws ATLCoreException, java.io.IOException, ATLExecutionException
atlmodel
- The atl ModeloutputFileName
- The name of the file to which the ATL compiled program will be saved.
ATLCoreException
java.io.IOException
ATLExecutionException
public static java.io.OutputStream getCompilationOutputStream()
OutputStream
.
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |