Esempio n. 1
0
    public static object field(object o, string field)
    {
        global::haxe.lang.IHxObject ihx = ((global::haxe.lang.IHxObject)((o as global::haxe.lang.IHxObject)));
        if ((ihx != null))
        {
            return(ihx.__hx_getField(field, global::haxe.lang.FieldLookup.hash(field), false, false, false));
        }

        return(global::haxe.lang.Runtime.slowGetField(o, field, false));
    }
Esempio n. 2
0
    public static bool hasField(object o, string field)
    {
        global::haxe.lang.IHxObject ihx = ((global::haxe.lang.IHxObject)((o as global::haxe.lang.IHxObject)));
        if ((ihx != null))
        {
            return(ihx.__hx_getField(field, global::haxe.lang.FieldLookup.hash(field), false, true, false) != global::haxe.lang.Runtime.undefined);
        }

        return(global::haxe.lang.Runtime.slowHasField(o, field));
    }
Esempio n. 3
0
        public static object field(object o, string field)
        {
                        #line 44 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            global::haxe.lang.IHxObject ihx = ((global::haxe.lang.IHxObject)((o as global::haxe.lang.IHxObject)));
            if ((ihx != null))
            {
                                #line 46 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
                return(ihx.__hx_getField(field, global::haxe.lang.FieldLookup.hash(field), false, false, false));
            }

                        #line 48 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            return(global::haxe.lang.Runtime.slowGetField(o, field, false));
        }
Esempio n. 4
0
        public static bool hasField(object o, string field)
        {
                        #line 35 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            global::haxe.lang.IHxObject ihx = ((global::haxe.lang.IHxObject)((o as global::haxe.lang.IHxObject)));
            if ((ihx != null))
            {
                                #line 37 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
                return(ihx.__hx_getField(field, global::haxe.lang.FieldLookup.hash(field), false, true, false) != global::haxe.lang.Runtime.undefined);
            }

                        #line 39 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            return(global::haxe.lang.Runtime.slowHasField(o, field));
        }
Esempio n. 5
0
    public static object field(object o, string field)
    {
                #line 44 "/opt/haxe/std/cs/_std/Reflect.hx"
        global::haxe.lang.IHxObject ihx = (o as global::haxe.lang.IHxObject);
        if ((ihx != null))
        {
                        #line 46 "/opt/haxe/std/cs/_std/Reflect.hx"
            return(ihx.__hx_getField(field, global::haxe.lang.FieldLookup.hash(field), false, false, false));
        }

                #line 48 "/opt/haxe/std/cs/_std/Reflect.hx"
        return(global::haxe.lang.Runtime.slowGetField(o, field, false));
    }
Esempio n. 6
0
    public static bool hasField(object o, string field)
    {
                #line 35 "/opt/haxe/std/cs/_std/Reflect.hx"
        global::haxe.lang.IHxObject ihx = (o as global::haxe.lang.IHxObject);
        if ((ihx != null))
        {
                        #line 37 "/opt/haxe/std/cs/_std/Reflect.hx"
            return(ihx.__hx_getField(field, global::haxe.lang.FieldLookup.hash(field), false, true, false) != global::haxe.lang.Runtime.undefined);
        }

                #line 39 "/opt/haxe/std/cs/_std/Reflect.hx"
        return(global::haxe.lang.Runtime.slowHasField(o, field));
    }
Esempio n. 7
0
        public static object getProperty(object o, string field)
        {
                        #line 61 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            global::haxe.lang.IHxObject ihx = ((global::haxe.lang.IHxObject)((o as global::haxe.lang.IHxObject)));
            if ((ihx != null))
            {
                                #line 63 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
                return(ihx.__hx_getField(field, global::haxe.lang.FieldLookup.hash(field), false, false, true));
            }

                        #line 65 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            if (global::haxe.lang.Runtime.slowHasField(o, global::haxe.lang.Runtime.concat("get_", field)))
            {
                                #line 66 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
                return(global::haxe.lang.Runtime.slowCallField(o, global::haxe.lang.Runtime.concat("get_", field), null));
            }

                        #line 68 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
            return(global::haxe.lang.Runtime.slowGetField(o, field, false));
        }
Esempio n. 8
0
    public static object getProperty(object o, string field)
    {
                #line 61 "/opt/haxe/std/cs/_std/Reflect.hx"
        global::haxe.lang.IHxObject ihx = (o as global::haxe.lang.IHxObject);
        if ((ihx != null))
        {
                        #line 63 "/opt/haxe/std/cs/_std/Reflect.hx"
            return(ihx.__hx_getField(field, global::haxe.lang.FieldLookup.hash(field), false, false, true));
        }

                #line 65 "/opt/haxe/std/cs/_std/Reflect.hx"
        if (global::haxe.lang.Runtime.slowHasField(o, global::haxe.lang.Runtime.concat("get_", field)))
        {
                        #line 66 "/opt/haxe/std/cs/_std/Reflect.hx"
            return(global::haxe.lang.Runtime.slowCallField(o, global::haxe.lang.Runtime.concat("get_", field), null));
        }

                #line 68 "/opt/haxe/std/cs/_std/Reflect.hx"
        return(global::haxe.lang.Runtime.slowGetField(o, field, false));
    }