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 IGosuClasscreateProxy(String name, IType typeToCoerceTo, IType enclosingType, String relativeName) private static StringdecodeClassName(IType enclosingType, String fp) private static StringencodeClassName(String name) private static StringBuilderstatic IGosuClassgetBlockToInterfaceConversionClass(IType typeToCoerceTo, IType enclosingType) static IGosuClassgetBlockToInterfaceConversionClass(String relativeNameWithEncodedSuffix, IType enclosingType) private static IMethodInfogetSingleMethod(IType interfaceType) private static voidimplementIface(StringBuilder sb, IType type) private static StringmaybeCastReturnType(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
-