@Test public void testConstructorFallback() { final Hack.HackedMethod1<Simple, Void, Unchecked, Unchecked, Unchecked, Integer> constructor = Hack.into(Simple.class).constructor().withParam(int.class); assertTrue(constructor.isAbsent()); final Hack.HackedMethod0<Simple, Void, Unchecked, Unchecked, Unchecked> absent_constructor = Hack.into(Simple.class).constructor().withoutParams(); assertTrue(absent_constructor.isAbsent()); }
public static HackedObject into(final Object source) { return new HackedMirrorObject(source); }
Hack { public static HackedObject into(final Object source) { return new HackedMirrorObject(source); } }
Hack { public static HackedObject into(final Object source) { return new HackedMirrorObject(source); } private  Hack(); }
Hack { public static HackedObject into(final Object source) { return new HackedMirrorObject(source); } private  Hack(); static HackedObject into(final Object source); static R mirrorStaticMethod(final String tag, final R fallback, final Object... args); static void verifyAllMirrorsIn(final Class<?> enclosing); static HackedClass<T> into(final @NonNull Class<T> clazz); static HackedClass<T> into(final String class_name); @SuppressWarnings("unchecked") static Hack.HackedClass<C> onlyIf(final boolean condition, final Hacking<Hack.HackedClass<C>> hacking); static ConditionalHack onlyIf(final boolean condition); static AssertionFailureHandler setAssertionFailureHandler(final @Nullable AssertionFailureHandler handler); }
Hack { public static HackedObject into(final Object source) { return new HackedMirrorObject(source); } private  Hack(); static HackedObject into(final Object source); static R mirrorStaticMethod(final String tag, final R fallback, final Object... args); static void verifyAllMirrorsIn(final Class<?> enclosing); static HackedClass<T> into(final @NonNull Class<T> clazz); static HackedClass<T> into(final String class_name); @SuppressWarnings("unchecked") static Hack.HackedClass<C> onlyIf(final boolean condition, final Hacking<Hack.HackedClass<C>> hacking); static ConditionalHack onlyIf(final boolean condition); static AssertionFailureHandler setAssertionFailureHandler(final @Nullable AssertionFailureHandler handler); static Class<?> ANY_TYPE; }