Code example for Method

Methods: getAnnotation

0
        m.setAccessible(true);
 
        return new MethodRef() { 
            @Override 
            public <T extends Annotation> T getAnnotation(Class<T> type) {
                return m.getAnnotation(type);
            } 
 
            @Override 
            public Object invoke(Object _this, Object... args) throws InvocationTargetException, IllegalAccessException {
                return m.invoke(_this,args);
            } 
        }; 
    } 
}