Class StructuralTypeProxyGenerator
java.lang.Object
gw.internal.gosu.ir.compiler.bytecode.expression.StructuralTypeProxyGenerator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringBuilder
generateProxy
(IType ifaceType, IType type, String name) private void
genInterfaceMethodDecl
(StringBuilder sb, IMethodInfo mi, IType rootType) private void
genInterfacePropertyDecl
(StringBuilder sb, IPropertyInfo pi, IType rootType) private String
getNamespace
(IType ifaceType) private String
getReflectiveName
(IAttributedFeatureInfo pi, IType rootType, ITypeInfo rootTypeInfo) private String
implementIface
(IType ifaceType, IType rootType) private boolean
implementsMethod
(IType type, IMethodInfo mi) private static boolean
static Class
private String
maybeCastParamType
(IMethodInfo ifaceMethod, IType paramType, IType rootType, int iParam) private String
maybeCastPropertyAssignment
(IPropertyInfo pi, IType rootType) private String
maybeCastReturnType
(IMethodInfo mi, IType returnType, IType rootType)
-
Field Details
-
_bStatic
private final boolean _bStatic -
_type
-
-
Constructor Details
-
StructuralTypeProxyGenerator
private StructuralTypeProxyGenerator(boolean bStatic)
-
-
Method Details
-
makeProxy
-
generateProxy
-
getNamespace
-
implementIface
-
genInterfaceMethodDecl
-
implementsMethod
-
maybeCastReturnType
-
maybeCastParamType
private String maybeCastParamType(IMethodInfo ifaceMethod, IType paramType, IType rootType, int iParam) -
maybeCastPropertyAssignment
-
genInterfacePropertyDecl
-
getReflectiveName
-
isExpando
-