org.eclipse.xtext.xtend2.jvmmodel
Class DispatchMethodCompileStrategy

java.lang.Object
  extended by org.eclipse.xtext.xtend2.jvmmodel.DispatchMethodCompileStrategy
All Implemented Interfaces:
Functions.Function1<ImportManager,java.lang.CharSequence>

public class DispatchMethodCompileStrategy
extends java.lang.Object
implements Functions.Function1<ImportManager,java.lang.CharSequence>


Constructor Summary
DispatchMethodCompileStrategy()
           
 
Method Summary
 java.lang.CharSequence apply(ImportManager importManager)
           
protected  void generateActualDispatchCall(JvmOperation dispatchOperation, JvmOperation actualOperationToCall, IAppendable a)
           
protected  java.lang.String getVarName(JvmIdentifiableElement ex, IAppendable appendable)
          TODO: we assume that names from the inferred JVM model are the same in the Java code.
protected  void initialize(JvmOperation dispatchOperation, java.util.List<JvmOperation> sortedDispatchOperations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatchMethodCompileStrategy

public DispatchMethodCompileStrategy()
Method Detail

initialize

protected void initialize(JvmOperation dispatchOperation,
                          java.util.List<JvmOperation> sortedDispatchOperations)

apply

public java.lang.CharSequence apply(ImportManager importManager)
Specified by:
apply in interface Functions.Function1<ImportManager,java.lang.CharSequence>

generateActualDispatchCall

protected void generateActualDispatchCall(JvmOperation dispatchOperation,
                                          JvmOperation actualOperationToCall,
                                          IAppendable a)

getVarName

protected java.lang.String getVarName(JvmIdentifiableElement ex,
                                      IAppendable appendable)
TODO: we assume that names from the inferred JVM model are the same in the Java code. Does that assumption hold?