|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.engine.parser.AtlParser
public final class AtlParser
TCS utilities Wrapper.
Constructor Summary | |
---|---|
AtlParser()
|
Method Summary | |
---|---|
void |
extract(IModel sourceModel,
java.io.OutputStream target,
java.util.Map options)
Extracts an IModel using the given options. |
void |
extract(IModel sourceModel,
java.lang.String target)
Extracts an IModel using default options. |
void |
extract(IModel sourceModel,
java.lang.String target,
java.util.Map options)
Extracts an IModel using the given options. |
IReferenceModel |
getAtlMetamodel()
|
IModel |
getAtlTcsModel()
|
static AtlParser |
getDefault()
Returns the default ATL parser. |
ModelFactory |
getModelFactory()
|
IReferenceModel |
getProblemMetamodel()
|
void |
inject(IModel targetModel,
java.io.InputStream source,
java.util.Map options)
Injects data into an IModel using the given options. |
void |
inject(IModel targetModel,
java.lang.String source)
Injects data into an IModel using default options. |
void |
inject(IModel targetModel,
java.lang.String source,
java.util.Map options)
Injects data into an IModel using the given options. |
IModel[] |
inject(java.io.InputStream source,
java.util.Map options)
Create a new Model then injects data using the given options. |
org.eclipse.emf.ecore.EObject |
parse(java.io.InputStream in)
Parses the given input stream. |
org.eclipse.emf.ecore.EObject[] |
parseExpression(java.lang.String expression,
java.lang.String expressionType)
ATL injector launcher. |
IModel |
parseToModel(java.io.InputStream in)
Parses the given input stream. |
IModel[] |
parseToModelWithProblems(java.io.InputStream in,
boolean hideErrors)
Parses the given input stream. |
org.eclipse.emf.ecore.EObject[] |
parseWithProblems(java.io.InputStream in)
Returns An array of EObject, the first one being an ATL! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AtlParser()
Method Detail |
---|
public static AtlParser getDefault()
public ModelFactory getModelFactory()
public IModel getAtlTcsModel()
public IReferenceModel getProblemMetamodel()
public IReferenceModel getAtlMetamodel()
public IModel[] inject(java.io.InputStream source, java.util.Map options) throws ATLCoreException
source
- the InputStream
containing the modeloptions
- the injection parameters
ATLCoreException
public void inject(IModel targetModel, java.io.InputStream source, java.util.Map options) throws ATLCoreException
inject
in interface IInjector
targetModel
- the IModel where to injectsource
- the InputStream
containing the modeloptions
- the injection parameters
ATLCoreException
IInjector.inject(org.eclipse.m2m.atl.core.IModel, java.io.InputStream,
java.util.Map)
public void inject(IModel targetModel, java.lang.String source, java.util.Map options) throws ATLCoreException
inject
in interface IInjector
targetModel
- the IModel where to injectsource
- the source indication to load the sourceModel: an URL, or a specific thingoptions
- the injection parameters
ATLCoreException
IInjector.inject(org.eclipse.m2m.atl.core.IModel, java.lang.String,
java.util.Map)
public void inject(IModel targetModel, java.lang.String source) throws ATLCoreException
inject
in interface IInjector
targetModel
- the IModel where to injectsource
- the source indication to load the sourceModel
ATLCoreException
IInjector.inject(org.eclipse.m2m.atl.core.IModel, java.lang.String)
public void extract(IModel sourceModel, java.io.OutputStream target, java.util.Map options) throws ATLCoreException
extract
in interface IExtractor
sourceModel
- the IModel to extracttarget
- the OutputStream
where to extract the targetModeloptions
- the extraction parameters
ATLCoreException
IExtractor.extract(org.eclipse.m2m.atl.core.IModel, java.io.OutputStream,
java.util.Map)
public void extract(IModel sourceModel, java.lang.String target, java.util.Map options) throws ATLCoreException
extract
in interface IExtractor
sourceModel
- the IModel to extracttarget
- the target indication to extract the targetModeloptions
- the extraction parameters
ATLCoreException
IExtractor.extract(org.eclipse.m2m.atl.core.IModel, java.lang.String,
java.util.Map)
public void extract(IModel sourceModel, java.lang.String target) throws ATLCoreException
extract
in interface IExtractor
sourceModel
- the IModel to extracttarget
- the target indication to extract the targetModel
ATLCoreException
IExtractor.extract(org.eclipse.m2m.atl.core.IModel, java.lang.String)
public org.eclipse.emf.ecore.EObject parse(java.io.InputStream in) throws ATLCoreException
in
- an input stream
ATLCoreException
public org.eclipse.emf.ecore.EObject[] parseWithProblems(java.io.InputStream in) throws ATLCoreException
in
- InputStream to parse ATL code from.
ATLCoreException
public IModel parseToModel(java.io.InputStream in) throws ATLCoreException
in
- an input stream
ATLCoreException
public IModel[] parseToModelWithProblems(java.io.InputStream in, boolean hideErrors) throws ATLCoreException
in
- an input streamhideErrors
- disable standard output in order to hide errors
ATLCoreException
public org.eclipse.emf.ecore.EObject[] parseExpression(java.lang.String expression, java.lang.String expressionType)
expression
- an ATL expressionexpressionType
- the ATL expression type the Syntax Element parsed
|
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 |