org.eclipse.mtl.parser.ast
Interface IASTProvider

All Known Implementing Classes:
MTLSourceBuffer

public interface IASTProvider

An AST provider. You can create an AST model with the method 'createAST'. An AST is created in a single resource. All the dependencies of this resource should be searched in the other resources of the same 'ResourceSet'. You should resolve the links between the different AST models of the current 'ResourceSet' with the method 'resolveAST'.


Method Summary
 void createAST(org.eclipse.emf.ecore.resource.Resource resource)
          Creates the AST model.
 Module getAST()
          Gets the AST model.
 void resolveAST()
          Resolution step of the AST creation: OCL and invocations.
 

Method Detail

getAST

Module getAST()
Gets the AST model. It is created when you call the 'createAST' function.

Returns:
the AST model

createAST

void createAST(org.eclipse.emf.ecore.resource.Resource resource)
Creates the AST model. This function must be called before 'resolveAST'

Parameters:
resource - where the AST will be stored

resolveAST

void resolveAST()
Resolution step of the AST creation: OCL and invocations. This function must be called after 'createAST'.


Copyright 2008 Obeo
All Rights Reserved.