Code example for Field

Methods: setAccessiblegetDeclaringClassgetNamegetTypeset

                    fragment = fragmentFindFragmentByIdMethod.invoke(fragmentManagerProvider.get(), id);
                    fragment = fragmentFindFragmentByTagMethod.invoke(fragmentManagerProvider.get(), injectFragment.tag());
                if (fragment == null && Nullable.notNullable(field))
                    throw new NullPointerException(String.format("Can't inject null value into %s.%s when field is not @Nullable", field.getDeclaringClass(), field.getName()));
                field.set(instance, fragment);
            } catch (IllegalAccessException e) {
                throw new RuntimeException(e);
            } catch (InvocationTargetException e) {
                throw new RuntimeException( e );
            } catch (IllegalArgumentException f) {
                throw new IllegalArgumentException(String.format("Can't assign %s value %s to %s field %s", fragment != null ? fragment.getClass() : "(null)", fragment,
                        field.getType(), field.getName()), f);
        protected static void injectViews(Object activityOrFragment) {
Connect your IDE to all the code out there  Get Codota for Java