Package gw.internal.gosu.coercer
Class FunctionToInterfaceClassGenerator
java.lang.Object
gw.internal.gosu.coercer.FunctionToInterfaceClassGenerator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static IGosuClass
createProxy
(String name, IType typeToCoerceTo, IType enclosingType, String relativeName) private static String
decodeClassName
(IType enclosingType, String fp) private static String
encodeClassName
(String name) private static StringBuilder
static IGosuClass
getBlockToInterfaceConversionClass
(IType typeToCoerceTo, IType enclosingType) static IGosuClass
getBlockToInterfaceConversionClass
(String relativeNameWithEncodedSuffix, IType enclosingType) private static IMethodInfo
getSingleMethod
(IType interfaceType) private static void
implementIface
(StringBuilder sb, IType type) private static String
maybeCastReturnType
(IType returnType)
-
Field Details
-
MAP
-
PROXY_FOR
- See Also:
-
-
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
-
decodeClassName
-
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
-
maybeCastReturnType
-
getSingleMethod
-