/** * {@inheritDoc} */ public boolean matches(T target) { return matcher.matches(target); }
/** * {@inheritDoc} */ public boolean matches(FieldDescription.InDefinedShape target) { return target != null && matcher.matches(target); }
/** * {@inheritDoc} */ public boolean matches(TypeDescription target) { return matcher.matches(target); } }
/** * {@inheritDoc} */ public boolean matches(Iterable<? extends T> target) { for (T value : target) { if (matcher.matches(value)) { return true; } } return false; }
/** * {@inheritDoc} */ public boolean matches(T target) { return !matcher.matches(target); }
/** * {@inheritDoc} */ public boolean matches(MethodDescription target) { return target != null && matcher.matches(target); }
/** * {@inheritDoc} */ public boolean matches(FieldDescription target) { return matcher.matches(target); } }
/** * {@inheritDoc} */ public boolean matches(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined, ProtectionDomain protectionDomain) { return moduleMatcher.matches(module) && classLoaderMatcher.matches(classLoader) && typeMatcher.matches(typeDescription); } }
/** * {@inheritDoc} */ public boolean matches(T target) { try { return matcher.matches(target); } catch (Exception ignored) { return fallback; } }
/** * Invoked if the cache is not hit. * * @param target The element to be matched. * @return {@code true} if the element is matched. */ protected boolean onCacheMiss(T target) { boolean cached = matcher.matches(target); map.put(target, cached); return cached; }
/** * {@inheritDoc} */ public boolean matches(T target) { return matcher.matches(target.getExceptionTypes()); }
/** * {@inheritDoc} */ public boolean matches(T target) { return matcher.matches(target.getSort()); }
/** * {@inheritDoc} */ public boolean matches(T target) { return matcher.matches(target.asSignatureToken()); }
/** * {@inheritDoc} */ public boolean matches(T target) { return matcher.matches(target.asErasure()); }
/** * {@inheritDoc} */ public void onDiscovery(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) { if (matcher.matches(typeName)) { delegate.onDiscovery(typeName, classLoader, module, loaded); } }
/** * {@inheritDoc} */ public boolean matches(T target) { return target != null && matcher.matches(TypeDescription.ForLoadedType.of(target.getClass())); }
/** * {@inheritDoc} */ public void onError(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded, Throwable throwable) { if (matcher.matches(typeName)) { delegate.onError(typeName, classLoader, module, loaded, throwable); } }
/** * {@inheritDoc} */ public boolean matches(T target) { return matcher.matches(target.asTypeList()); }