Class QVTOCompiler
- java.lang.Object
-
- org.eclipse.m2m.internal.qvt.oml.compiler.QVTOCompiler
-
public class QVTOCompiler extends Object
-
-
Constructor Summary
Constructors Constructor Description QVTOCompiler()QVTOCompiler(EPackage.Registry packageRegistry)QVTOCompiler(IMetamodelRegistryProvider metamodelRegistryProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcleanup()static CompiledUnit[]compile(Set<URI> unitURIs, EPackage.Registry registry)CompiledUnit[]compile(UnitProxy[] sources, QvtCompilerOptions options, org.eclipse.core.runtime.IProgressMonitor monitor)CompiledUnitcompile(UnitProxy[] sources, QvtCompilerOptions options, Monitor monitor)Deprecated.CompiledUnitcompile(UnitProxy source, QvtCompilerOptions options, org.eclipse.core.runtime.IProgressMonitor monitor)CompiledUnitcompile(UnitProxy source, QvtCompilerOptions options, Monitor monitor)Deprecated.static QVTOCompilercreateCompilerWithHistory(ResourceSet metamodelResourceSet)Creates compiler that caches already compiled modules untilcleanupis explicitly called.static ReadergetContentReader(UnitProxy unit)ResourceSetgetResourceSet()voidsetUseCompiledXMI(boolean flag)
-
-
-
Constructor Detail
-
QVTOCompiler
public QVTOCompiler()
-
QVTOCompiler
public QVTOCompiler(EPackage.Registry packageRegistry)
-
QVTOCompiler
public QVTOCompiler(IMetamodelRegistryProvider metamodelRegistryProvider)
-
-
Method Detail
-
createCompilerWithHistory
public static QVTOCompiler createCompilerWithHistory(ResourceSet metamodelResourceSet)
Creates compiler that caches already compiled modules untilcleanupis explicitly called.This enables to compile individual modules separately ensuring cross-referencing among already compiled modules.
- Parameters:
importResolver- resolver for other moduleAST importsmetamodelResourceSet- the resource set into which meta-model nsURI mapped to a resource location are to be loaded. If it isnull, a default resource set is created automatically.Note: The meta-models already loaded in the resource set are reused
- Returns:
- the compiler instance
-
compile
public static CompiledUnit[] compile(Set<URI> unitURIs, EPackage.Registry registry) throws MdaException
- Throws:
MdaException
-
setUseCompiledXMI
public void setUseCompiledXMI(boolean flag)
-
compile
public CompiledUnit[] compile(UnitProxy[] sources, QvtCompilerOptions options, org.eclipse.core.runtime.IProgressMonitor monitor) throws MdaException
- Throws:
MdaException
-
compile
@Deprecated public CompiledUnit compile(UnitProxy[] sources, QvtCompilerOptions options, Monitor monitor) throws MdaException
Deprecated.- Throws:
MdaException
-
compile
public CompiledUnit compile(UnitProxy source, QvtCompilerOptions options, org.eclipse.core.runtime.IProgressMonitor monitor) throws MdaException
- Throws:
MdaException
-
compile
@Deprecated public CompiledUnit compile(UnitProxy source, QvtCompilerOptions options, Monitor monitor) throws MdaException
Deprecated.- Throws:
MdaException
-
getContentReader
public static Reader getContentReader(UnitProxy unit) throws IOException
- Throws:
IOException
-
getResourceSet
public ResourceSet getResourceSet()
-
cleanup
public void cleanup()
-
-