Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) 2005, 2006 Borland Software Corporation
  * 
  * All rights reserved. This program and the accompanying materials are made
  * available under the terms of the Eclipse Public License v1.0 which
  * accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
  * 
  * Contributors: 
 *    Radek Dvorak (Borland) - initial API and implementation
 */
package org.eclipse.gmf.internal.validate.expressions;
This interface represents implements language specific expression provider. The implementations are registered through org.eclipse.gmf.validate.expressions extension point.

public interface IModelExpressionProvider {

Creates expression from body in the specified context.

The context is represented by EClass referenceable from the expression body. Its instance passed at evalution time provides the evalution context.

Parameters:
body definition of the evaluation logic in the language of this expression provider
context the context classifier for parsing
Returns:
parsed model expression instance with the status indicating success or possible failure.
Creates expression from body in the specified context class and extended environment.

In addition to the context EClass, extended environment with custom variables is passed. The variable are referencable in the

Parameters:
body definition of the evaluation logic in the language of this expression provider
context the context classifier for parsing
Returns:
parsed model expression instance with the status indicating success or possible failure.
See also:
EnvironmentProvider.createParseEnv()
New to GrepCode? Check out our FAQ X