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
MdaException
public void setUseCompiledXMI(boolean flag)
public CompiledUnit[] compile(UnitProxy[] sources, QvtCompilerOptions options, IProgressMonitor monitor) throws MdaException
MdaException
public CompiledUnit compile(UnitProxy source, QvtCompilerOptions options, IProgressMonitor monitor) throws MdaException
MdaException
public static Reader getContentReader(UnitProxy unit) throws IOException
IOException
public ResourceSet getResourceSet()
public void cleanup()
public static IMetamodelRegistryProvider createStandaloneMetamodelRegistryProvider(EPackage.Registry packageRegistry)
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.