getModifiers() private method

private getModifiers ( ) : int
return int
Beispiel #1
0
    public static java.lang.reflect.Field copyFieldAndMakeAccessible(java.lang.reflect.Field field)
    {
#if FIRST_PASS
        return(null);
#else
        field           = new java.lang.reflect.Field(field.getDeclaringClass(), field.getName(), field.getType(), field.getModifiers() & ~java.lang.reflect.Modifier.FINAL, field._slot(), null, null);
        field.@override = true;
        return(field);
#endif
    }
Beispiel #2
0
 private static void RegisterJVMField(GType type, Field field, bool register)
 {
     var modifiers = (ModifierFlags) field.getModifiers();
     if ((modifiers & (ModifierFlags.Private | ModifierFlags.Synthetic)) != ModifierFlags.None)
     {
         if (config.Verbose)
         {
             Console.WriteLine("Skip " + type + "." + field);
         }
         return;
     }
     var res = new GMethod();
     res.Type = type;
     res.IsField = true;
     res.Name = field.getName();
     res.JVMName = field.getName();
     res.CLRName = res.JVMName;
     res.IsJVMMethod = true;
     ConvertJVMAttributes(type, res, field);
     res.ReturnType = RegisterClass(field.getType());
     res.LowerName = (field.getName());
     if (register)
     {
         type.Methods.Add(res);
         type.MethodsWithInterfaces.Add(res);
     }
 }