JavaExpression dcInstance;
dcInstance = getReferencedDC(typeName, dc);
return dcInstance;
} else {
MachineFunction mf = module.getFunction(qualName);
if (mf == null) {
throw new CodeGenerationException("Unable to retrieve MachineFunction for " + qualName.getQualifiedName());
}
LECCModule.FunctionGroupInfo fgi = module.getFunctionGroupInfo(qualName);
if (fgi == null) {
throw new CodeGenerationException("Unable to retrieve FunctionGroupInfo for " + qualName.getQualifiedName());
}
// Function
JavaTypeName fullClass = CALToJavaNames.createTypeNameFromSC(qualName, module);
if (mf.getArity() == 0) {
// This is a CAF or a zero arity function.
// Either way we need to invoke the static factory method
// 'make'.
if (fgi.getNCAFs() + fgi.getNZeroArityFunctions() <= 1) {
return new MethodInvocation.Static (