org.eclipse.xtext.xtend2.jvmmodel
Class DispatchMethodCompileStrategy
java.lang.Object
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DispatchMethodCompileStrategy
public DispatchMethodCompileStrategy()
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?