public class QVTOCompiler extends Object
| Constructor and Description |
|---|
QVTOCompiler(IMetamodelRegistryProvider metamodelRegistryProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
static CompiledUnit[] |
compile(Set<URI> unitURIs,
EPackage.Registry registry) |
CompiledUnit[] |
compile(UnitProxy[] sources,
QvtCompilerOptions options,
IProgressMonitor monitor) |
CompiledUnit |
compile(UnitProxy source,
QvtCompilerOptions options,
IProgressMonitor monitor) |
static QVTOCompiler |
createCompiler(EPackage.Registry registry) |
static QVTOCompiler |
createCompilerWithHistory(ResourceSet metamodelResourceSet)
Creates compiler that caches already compiled modules until
cleanup is explicitly called. |
static IMetamodelRegistryProvider |
createStandaloneMetamodelRegistryProvider(EPackage.Registry packageRegistry) |
static Reader |
getContentReader(UnitProxy unit) |
ResourceSet |
getResourceSet() |
void |
setUseCompiledXMI(boolean flag) |
public QVTOCompiler(IMetamodelRegistryProvider metamodelRegistryProvider)
public static QVTOCompiler createCompilerWithHistory(ResourceSet metamodelResourceSet)
cleanup is explicitly called.
This enables to compile individual modules separately ensuring cross-referencing among already compiled modules.
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 is null, a default resource set is created
automatically.
Note: The meta-models already loaded in the resource set are reused
public static QVTOCompiler createCompiler(EPackage.Registry registry)
public static CompiledUnit[] compile(Set<URI> unitURIs, EPackage.Registry registry) throws MdaException
MdaExceptionpublic void setUseCompiledXMI(boolean flag)
public CompiledUnit[] compile(UnitProxy[] sources, QvtCompilerOptions options, IProgressMonitor monitor) throws MdaException
MdaExceptionpublic CompiledUnit compile(UnitProxy source, QvtCompilerOptions options, IProgressMonitor monitor) throws MdaException
MdaExceptionpublic static Reader getContentReader(UnitProxy unit) throws IOException
IOExceptionpublic ResourceSet getResourceSet()
public void cleanup()
public static IMetamodelRegistryProvider createStandaloneMetamodelRegistryProvider(EPackage.Registry packageRegistry)
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.