|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtl.parser.ast.CST2ASTConverter
public class CST2ASTConverter
The main class used to transform a CST model to an AST model. This class is not able to run the 'Resolve' step.
| Field Summary | |
|---|---|
protected ASTFactory |
factory
The factory used to create the objects of the AST model. |
| Constructor Summary | |
|---|---|
CST2ASTConverter()
Constructor. |
|
| Method Summary | |
|---|---|
void |
createAST(Module rootCST,
org.eclipse.emf.ecore.resource.Resource resourceAST)
Creates an AST model in the given resource. |
OCLParser |
getOCL()
Gets the OCL parser (from the OCL plug-in). |
protected void |
log(java.lang.String message,
int posBegin,
int posEnd)
To log a new problem. |
void |
setLogHandler(IASTLogHandler logHandler)
Sets the log Handler to save AST logging messages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ASTFactory factory
| Constructor Detail |
|---|
public CST2ASTConverter()
| Method Detail |
|---|
public OCLParser getOCL()
public void setLogHandler(IASTLogHandler logHandler)
logHandler - is the new log handler
protected void log(java.lang.String message,
int posBegin,
int posEnd)
message - is the messageposBegin - is the beginning index of the problemposEnd - is the ending index of the problem
public void createAST(Module rootCST,
org.eclipse.emf.ecore.resource.Resource resourceAST)
rootCST - is the root element of the input module (CST)resourceAST - is the resource to be updated with the output model (AST)
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||