org.eclipse.xtext.xbase.impl
Class FeatureCallToJavaMapping

java.lang.Object
  extended by org.eclipse.xtext.xbase.impl.FeatureCallToJavaMapping

public class FeatureCallToJavaMapping
extends java.lang.Object

Author:
Sven Efftinge - Initial contribution and API, Sebastian Zarnekow - Support for linking assumptions

Constructor Summary
FeatureCallToJavaMapping()
           
 
Method Summary
 java.util.List<XExpression> getActualArguments(XAbstractFeatureCall featureCall)
           
 java.util.List<XExpression> getActualArguments(XAbstractFeatureCall featureCall, JvmIdentifiableElement feature, XExpression implicitReceiver, XExpression implicitFirstArgument)
           
 XExpression getActualReceiver(XAbstractFeatureCall call)
           
 XExpression getActualReceiver(XAbstractFeatureCall featureCall, JvmIdentifiableElement feature, XExpression implicitReceiver)
           
protected  JvmIdentifiableElement getFeature(XAbstractFeatureCall expr)
           
protected  XExpression getImplicitFirstArgument(XAbstractFeatureCall expr)
           
protected  XExpression getImplicitReceiver(XAbstractFeatureCall expr)
           
protected  boolean isStaticJavaFeature(JvmIdentifiableElement feature)
           
 boolean isTargetsMemberSyntaxCall(XAbstractFeatureCall featureCall, JvmIdentifiableElement feature, XExpression implicitReceiver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureCallToJavaMapping

public FeatureCallToJavaMapping()
Method Detail

isStaticJavaFeature

protected boolean isStaticJavaFeature(JvmIdentifiableElement feature)

getActualReceiver

public XExpression getActualReceiver(XAbstractFeatureCall call)

getActualReceiver

public XExpression getActualReceiver(XAbstractFeatureCall featureCall,
                                     JvmIdentifiableElement feature,
                                     XExpression implicitReceiver)

getFeature

protected JvmIdentifiableElement getFeature(XAbstractFeatureCall expr)

getImplicitReceiver

protected XExpression getImplicitReceiver(XAbstractFeatureCall expr)

getImplicitFirstArgument

protected XExpression getImplicitFirstArgument(XAbstractFeatureCall expr)

getActualArguments

public java.util.List<XExpression> getActualArguments(XAbstractFeatureCall featureCall)

getActualArguments

public java.util.List<XExpression> getActualArguments(XAbstractFeatureCall featureCall,
                                                      JvmIdentifiableElement feature,
                                                      XExpression implicitReceiver,
                                                      XExpression implicitFirstArgument)

isTargetsMemberSyntaxCall

public boolean isTargetsMemberSyntaxCall(XAbstractFeatureCall featureCall,
                                         JvmIdentifiableElement feature,
                                         XExpression implicitReceiver)
Parameters:
featureCall - may be used by inheritors
implicitReceiver - may be used by inheritors