org.eclipse.gmf.graphdef.editor.expressions
Class GMFGraphAbstractExpression

java.lang.Object
  extended by org.eclipse.gmf.graphdef.editor.expressions.GMFGraphAbstractExpression

public abstract class GMFGraphAbstractExpression
extends Object


Constructor Summary
protected GMFGraphAbstractExpression(String body, org.eclipse.emf.ecore.EClassifier context)
           
 
Method Summary
 String body()
           
 org.eclipse.emf.ecore.EClassifier context()
           
protected abstract  Object doEvaluate(Object context, Map env)
           
 Object evaluate(Object context)
           
 Object evaluate(Object context, Map env)
           
 org.eclipse.core.runtime.IStatus getStatus()
           
static Object performCast(Object value, org.eclipse.emf.ecore.EDataType targetType)
          Expression may return number value which is not directly compatible with feature type (e.g.
protected  void setStatus(int severity, String message, Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMFGraphAbstractExpression

protected GMFGraphAbstractExpression(String body,
                                     org.eclipse.emf.ecore.EClassifier context)
Method Detail

setStatus

protected void setStatus(int severity,
                         String message,
                         Throwable throwable)

getStatus

public org.eclipse.core.runtime.IStatus getStatus()

body

public String body()

context

public org.eclipse.emf.ecore.EClassifier context()

doEvaluate

protected abstract Object doEvaluate(Object context,
                                     Map env)

evaluate

public Object evaluate(Object context)

evaluate

public Object evaluate(Object context,
                       Map env)

performCast

public static Object performCast(Object value,
                                 org.eclipse.emf.ecore.EDataType targetType)
Expression may return number value which is not directly compatible with feature type (e.g. Double when Integer is expected), or EEnumLiteral meta-object when literal instance is expected



Copyright © 2011. All Rights Reserved.