Class FunctionToInterfaceClassGenerator

java.lang.Object
gw.internal.gosu.coercer.FunctionToInterfaceClassGenerator

public class FunctionToInterfaceClassGenerator extends Object
  • Field Details

  • Constructor Details

    • FunctionToInterfaceClassGenerator

      public FunctionToInterfaceClassGenerator()
  • Method Details

    • getBlockToInterfaceConversionClass

      public static IGosuClass getBlockToInterfaceConversionClass(IType typeToCoerceTo, IType enclosingType)
    • getBlockToInterfaceConversionClass

      public static IGosuClass getBlockToInterfaceConversionClass(String relativeNameWithEncodedSuffix, IType enclosingType)
    • encodeClassName

      private static String encodeClassName(String name)
    • decodeClassName

      private static String decodeClassName(IType enclosingType, String fp)
    • createProxy

      private static IGosuClass createProxy(String name, IType typeToCoerceTo, IType enclosingType, String relativeName)
    • genProxy

      private static StringBuilder genProxy(String name, IType type, String namespace, String relativeName)
    • implementIface

      private static void implementIface(StringBuilder sb, IType type)
    • maybeCastReturnType

      private static String maybeCastReturnType(IType returnType)
    • getSingleMethod

      private static IMethodInfo getSingleMethod(IType interfaceType)