package com.redhat.ceylon.compiler.java.language;

import ceylon.language.Callable;

/**
 * Stub implementation for {@link Callable}, so the anonymous inner classes 
 * generated by the compiler only need to define a single method.
 *
 * @param <Return>
 */
public class AbstractCallable<Return> implements Callable<Return> {
    public Return call() {
        throw new UnsupportedOperationException();
    }
    
    public Return call(java.lang.Object arg0) {
        throw new UnsupportedOperationException();
    }
    
    public Return call(java.lang.Object arg0, java.lang.Object arg1) {
        throw new UnsupportedOperationException();
    }
    
    public Return call(java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2) {
        throw new UnsupportedOperationException();
    }
    
    public Return call(java.lang.Object... args) {
        throw new UnsupportedOperationException();
    }
}
@@ -319,16 +319,141 @@
 turn%3E %7B%0A
+    %0A    private final String string;%0A%0A    public AbstractCallable(String string) %7B%0A        this.string = string;%0A    %7D%0A    %0A
     publ
@@ -1040,9 +1040,98 @@
 ;%0A    %7D%0A
+    %0A    @java.lang.Override%0A    public String toString() %7B%0A        return string;%0A    %7D%0A
 %7D

Change for ceylon/ceylon-compiler#417