예제 #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));
    }
예제 #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));
    }
예제 #3
0
 public static void setField(object o, string field, object @value)
 {
     global::haxe.lang.IHxObject ihx = ((global::haxe.lang.IHxObject)((o as global::haxe.lang.IHxObject)));
     if ((ihx != null))
     {
         ihx.__hx_setField(field, global::haxe.lang.FieldLookup.hash(field), @value, false);
     }
     else
     {
         global::haxe.lang.Runtime.slowSetField(o, field, @value);
     }
 }
예제 #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));
        }
예제 #5
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));
        }
예제 #6
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));
    }
예제 #7
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));
    }
예제 #8
0
 public static void setField(object o, string field, object @value)
 {
                 #line 53 "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 55 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         ihx.__hx_setField(field, global::haxe.lang.FieldLookup.hash(field), @value, false);
     }
     else
     {
                         #line 57 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         global::haxe.lang.Runtime.slowSetField(o, field, @value);
     }
 }
예제 #9
0
 public static void setField(object o, string field, object @value)
 {
             #line 53 "/opt/haxe/std/cs/_std/Reflect.hx"
     global::haxe.lang.IHxObject ihx = (o as global::haxe.lang.IHxObject);
     if ((ihx != null))
     {
                     #line 55 "/opt/haxe/std/cs/_std/Reflect.hx"
         ihx.__hx_setField(field, global::haxe.lang.FieldLookup.hash(field), @value, false);
     }
     else
     {
                     #line 57 "/opt/haxe/std/cs/_std/Reflect.hx"
         global::haxe.lang.Runtime.slowSetField(o, field, @value);
     }
 }
예제 #10
0
 public static global::Array <object> fields(object o)
 {
     global::haxe.lang.IHxObject ihx = ((global::haxe.lang.IHxObject)((o as global::haxe.lang.IHxObject)));
     if ((ihx != null))
     {
         global::Array <object> ret = new global::Array <object>(new object[] {});
         ihx.__hx_getFields(ret);
         return(ret);
     }
     else if ((o is global::System.Type))
     {
         return(global::Type.getClassFields(((global::System.Type)(o))));
     }
     else
     {
         return(global::Reflect.instanceFields(o.GetType()));
     }
 }
예제 #11
0
 public static void setProperty(object o, string field, object @value)
 {
                 #line 72 "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 74 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         ihx.__hx_setField(field, global::haxe.lang.FieldLookup.hash(field), @value, true);
     }
     else if (global::haxe.lang.Runtime.slowHasField(o, global::haxe.lang.Runtime.concat("set_", field)))
     {
                         #line 76 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         global::haxe.lang.Runtime.slowCallField(o, global::haxe.lang.Runtime.concat("set_", field), new object[] { ((object)(@value)) });
     }
     else
     {
                         #line 78 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         global::haxe.lang.Runtime.slowSetField(o, field, @value);
     }
 }
예제 #12
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));
        }
예제 #13
0
 public static void setProperty(object o, string field, object @value)
 {
             #line 72 "/opt/haxe/std/cs/_std/Reflect.hx"
     global::haxe.lang.IHxObject ihx = (o as global::haxe.lang.IHxObject);
     if ((ihx != null))
     {
                     #line 74 "/opt/haxe/std/cs/_std/Reflect.hx"
         ihx.__hx_setField(field, global::haxe.lang.FieldLookup.hash(field), @value, true);
     }
     else if (global::haxe.lang.Runtime.slowHasField(o, global::haxe.lang.Runtime.concat("set_", field)))
     {
                     #line 76 "/opt/haxe/std/cs/_std/Reflect.hx"
         global::haxe.lang.Runtime.slowCallField(o, global::haxe.lang.Runtime.concat("set_", field), new object[] { ((object)(@value)) });
     }
     else
     {
                     #line 78 "/opt/haxe/std/cs/_std/Reflect.hx"
         global::haxe.lang.Runtime.slowSetField(o, field, @value);
     }
 }
예제 #14
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));
    }
예제 #15
0
 public static global::haxe.root.Array fields(object o)
 {
                 #line 88 "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 90 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         global::haxe.root.Array ret = new global::haxe.root.Array(new object[] {});
         ihx.__hx_getFields(ret);
                         #line 92 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         return(ret);
     }
     else if ((o is global::System.Type))
     {
                         #line 94 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         return(global::haxe.root.Type.getClassFields(((global::System.Type)(o))));
     }
     else
     {
                         #line 96 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\Reflect.hx"
         return(global::haxe.root.Reflect.instanceFields(o.GetType()));
     }
 }
예제 #16
0
 public static global::Array <string> fields(object o)
 {
             #line 88 "/opt/haxe/std/cs/_std/Reflect.hx"
     global::haxe.lang.IHxObject ihx = (o as global::haxe.lang.IHxObject);
     if ((ihx != null))
     {
                     #line 90 "/opt/haxe/std/cs/_std/Reflect.hx"
         global::Array <string> ret = new global::Array <string>(new string[] {});
         ihx.__hx_getFields(ret);
                     #line 92 "/opt/haxe/std/cs/_std/Reflect.hx"
         return(ret);
     }
     else if ((o is global::System.Type))
     {
                     #line 94 "/opt/haxe/std/cs/_std/Reflect.hx"
         return(global::Type.getClassFields(((global::System.Type)(o))));
     }
     else
     {
                     #line 96 "/opt/haxe/std/cs/_std/Reflect.hx"
         return(global::Reflect.instanceFields(o.GetType()));
     }
 }