Package org.eclipse.xtext.xbase.interpreter.impl

Examples of org.eclipse.xtext.xbase.interpreter.impl.DefaultEvaluationContext


    return null;
  }

  private String interpret(final Model m, final IProgressMonitor monitor) {
    final List<String> data = new ArrayList<String>();
    IEvaluationContext context = new DefaultEvaluationContext();
    context.newValue(qualifiedNameConverter.toQualifiedName(IModelQueryConstants.INFERRED_CLASS_NAME + "." + IModelQueryConstants.INDEX), resourceDescriptions);
    context.newValue(qualifiedNameConverter.toQualifiedName(IModelQueryConstants.INFERRED_CLASS_NAME + "." + IModelQueryConstants.RESOURCESET), resourceSetProvider.get());
    context.newValue(qualifiedNameConverter.toQualifiedName(IModelQueryConstants.INFERRED_CLASS_NAME + "." + IModelQueryConstants.INJECTOR), injector);
    for (XImportDeclaration i : m.getImports().getImportDeclarations()) {
      data.add(serializer.serialize(i).trim());
    }
    for (XMethodDeclaration d : m.getMethods()) {
      data.add(serializer.serialize(d).trim());
View Full Code Here


public class RuleEvaluationContext extends DefaultEvaluationContext {

  private IEvaluationContext globalContext = null;
 
  public RuleEvaluationContext() {
    super(new DefaultEvaluationContext());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.xbase.interpreter.impl.DefaultEvaluationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.