public override ICodegenExpression HandleNestedValueFragmentCodegen(ICodegenExpression name,
     ICodegenContext context)
 {
     string method = CodegenBlockPropertyBeanOrUnd.From(context, typeof(object[]), _arrayGetter,
         CodegenBlockPropertyBeanOrUnd.AccessType.FRAGMENT, GetType());
     return LocalMethod(method, name);
 }
Esempio n. 2
0
        public static ICodegenExpression HandleNestedValueArrayWithMapCode(
            int index,
            MapEventPropertyGetter getter,
            ICodegenExpression @ref,
            ICodegenContext context,
            Type generator)
        {
            var method = CodegenBlockPropertyBeanOrUnd.From(context, typeof(Map), getter,
                                                            CodegenBlockPropertyBeanOrUnd.AccessType.GET, generator);

            return(LocalMethod(method, StaticMethodTakingExprAndConst(typeof(BaseNestableEventUtil), "GetBNArrayValueAtIndex", @ref, index)));
        }
Esempio n. 3
0
 private string GenerateMethod(ICodegenContext context, CodegenBlockPropertyBeanOrUnd.AccessType accessType)
 {
     return CodegenBlockPropertyBeanOrUnd.From(context, typeof(Object[]), _arrayGetter, accessType, this.GetType());
 }
 public override ICodegenExpression HandleNestedValueFragmentCodegen(ICodegenExpression refName, ICodegenContext context)
 {
     return LocalMethod(CodegenBlockPropertyBeanOrUnd.From(context, typeof(Map), _mapGetter, CodegenBlockPropertyBeanOrUnd.AccessType.FRAGMENT, this.GetType()), refName);
 }