@Test public void testFieldPrefixMatcher() throws Exception { PrefixMatcher prefixMatcher = new PrefixMatcher("str"); CtClass ctClass = pool.get(PublicModifiers.class.getCanonicalName()); CtField ctField = ctClass.getField("string"); assertTrue(prefixMatcher.matches(ctField)); }
@Override public boolean matches(final CtClass ctClass) { return this.matchesPrefix(ctClass.getName()); }
PrefixMatcher implements IMatcher { @Override public boolean matches(final CtClass ctClass) { return this.matchesPrefix(ctClass.getName()); } }
PrefixMatcher implements IMatcher { @Override public boolean matches(final CtClass ctClass) { return this.matchesPrefix(ctClass.getName()); } PrefixMatcher(final String... strings);  PrefixMatcher(final List<String> strings); }
PrefixMatcher implements IMatcher { @Override public boolean matches(final CtClass ctClass) { return this.matchesPrefix(ctClass.getName()); } PrefixMatcher(final String... strings);  PrefixMatcher(final List<String> strings); @Override boolean matches(final CtClass ctClass); @Override boolean matches(final CtBehavior ctBehavior); @Override boolean matches(final CtField ctField); }
PrefixMatcher implements IMatcher { @Override public boolean matches(final CtClass ctClass) { return this.matchesPrefix(ctClass.getName()); } PrefixMatcher(final String... strings);  PrefixMatcher(final List<String> strings); @Override boolean matches(final CtClass ctClass); @Override boolean matches(final CtBehavior ctBehavior); @Override boolean matches(final CtField ctField);  }