org.eclipse.xtend.core.jvmmodel
Class DispatchMethodCompileStrategy

java.lang.Object
  extended by org.eclipse.xtend.core.jvmmodel.DispatchMethodCompileStrategy
All Implemented Interfaces:
Procedures.Procedure1<ITreeAppendable>

@NonNullByDefault
public class DispatchMethodCompileStrategy
extends java.lang.Object
implements Procedures.Procedure1<ITreeAppendable>


Constructor Summary
DispatchMethodCompileStrategy()
           
 
Method Summary
 void apply(ITreeAppendable a)
           
protected  void generateActualDispatchCall(JvmOperation dispatchOperation, JvmOperation actualOperationToCall, ITreeAppendable 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 void apply(@Nullable
                  ITreeAppendable a)
Specified by:
apply in interface Procedures.Procedure1<ITreeAppendable>

generateActualDispatchCall

protected void generateActualDispatchCall(JvmOperation dispatchOperation,
                                          JvmOperation actualOperationToCall,
                                          ITreeAppendable 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?