Package org.eclipse.xtext.parser
Interface IAstFactory
-
- All Known Implementing Classes:
CardinalityAwareEcoreFactory,DefaultEcoreElementFactory
public interface IAstFactoryResponsible for instantiating and initializing the semantic model according to call backs from clients. Main (and only default) client is the parser.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(org.eclipse.emf.ecore.EObject _this, java.lang.String feature, java.lang.Object value, java.lang.String lexerRule, INode node)Adds a given value to a list described by the given feature.org.eclipse.emf.ecore.EObjectcreate(org.eclipse.emf.ecore.EClassifier clazz)Creates an instance of the given type which has to be anEClass.voidset(org.eclipse.emf.ecore.EObject _this, java.lang.String feature, java.lang.Object value, java.lang.String lexerRule, INode node)Assigns a given value to a feature of the element_this.
-
-
-
Method Detail
-
create
org.eclipse.emf.ecore.EObject create(org.eclipse.emf.ecore.EClassifier clazz)
Creates an instance of the given type which has to be anEClass.- Parameters:
clazz- theEClassto be instantiated.- Returns:
- the instantiated
EObjectwhich must conform the given class.
-
set
void set(org.eclipse.emf.ecore.EObject _this, java.lang.String feature, java.lang.Object value, java.lang.String lexerRule, INode node) throws ValueConverterExceptionAssigns a given value to a feature of the element_this. The value may be converted according to the optional lexer rule. The feature must be resolvable to a single value feature.- Throws:
ValueConverterException- if the value cannot be converted.
-
add
void add(org.eclipse.emf.ecore.EObject _this, java.lang.String feature, java.lang.Object value, java.lang.String lexerRule, INode node) throws ValueConverterExceptionAdds a given value to a list described by the given feature. The list is owned by the element_this. The given value may be converted according to the optional lexer rule. The feature must be resolvable to a multi value feature.- Throws:
ValueConverterException- if the value cannot be converted.
-
-