Example #1
0
    public static object getDeclaredAnnotationsImpl(java.lang.reflect.Field thisField)
    {
        FieldWrapper fw = FieldWrapper.FromField(thisField);

        return(Java_java_lang_Class.AnnotationsToMap(fw.DeclaringType.GetClassLoader(), fw.DeclaringType.GetFieldAnnotations(fw)));
    }
Example #2
0
    public static object getDeclaredAnnotationsImpl(object methodOrConstructor)
    {
        MethodWrapper mw = MethodWrapper.FromMethodOrConstructor(methodOrConstructor);

        return(Java_java_lang_Class.AnnotationsToMap(mw.DeclaringType.GetClassLoader(), mw.DeclaringType.GetMethodAnnotations(mw)));
    }
Example #3
0
    public static object declaredAnnotationsImpl(java.lang.reflect.Executable executable)
    {
        MethodWrapper mw = MethodWrapper.FromExecutable(executable);

        return(Java_java_lang_Class.AnnotationsToMap(mw.DeclaringType.GetClassLoader(), mw.DeclaringType.GetMethodAnnotations(mw)));
    }