@Test public void testPluginMatches() throws Exception { Plugin plugin = new ToStringPlugin(); assertThat(plugin.matches(TypeDescription.ForLoadedType.of(SimpleSample.class)), is(true)); assertThat(plugin.matches(TypeDescription.OBJECT), is(false)); }
public boolean matches(TypeDescription target) { return target.getDeclaredAnnotations().isAnnotationPresent(Enhance.class); }
ToStringPlugin implements Plugin, Plugin.Factory { public boolean matches(TypeDescription target) { return target.getDeclaredAnnotations().isAnnotationPresent(Enhance.class); } }
ToStringPlugin implements Plugin, Plugin.Factory { public boolean matches(TypeDescription target) { return target.getDeclaredAnnotations().isAnnotationPresent(Enhance.class); }  }
ToStringPlugin implements Plugin, Plugin.Factory { public boolean matches(TypeDescription target) { return target.getDeclaredAnnotations().isAnnotationPresent(Enhance.class); }  Plugin make(); boolean matches(TypeDescription target); DynamicType.Builder<?> apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator); void close(); }
ToStringPlugin implements Plugin, Plugin.Factory { public boolean matches(TypeDescription target) { return target.getDeclaredAnnotations().isAnnotationPresent(Enhance.class); }  Plugin make(); boolean matches(TypeDescription target); DynamicType.Builder<?> apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator); void close();  }