public static class AgentBuilder.RawMatcher.ForElementMatcherPair extends Object implements AgentBuilder.RawMatcher
TypeDescription
and its ClassLoader against two suitable matchers in order to determine if the matched
type should be instrumented.AgentBuilder.RawMatcher.ForElementMatcherPair| Constructor and Description |
|---|
ForElementMatcherPair(ElementMatcher<? super TypeDescription> typeMatcher,
ElementMatcher<? super ClassLoader> classLoaderMatcher)
Creates a new
AgentBuilder.RawMatcher that only matches the
supplied TypeDescription and its
ClassLoader against two matcher in order to decied if an instrumentation should
be conducted. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
matches(TypeDescription typeDescription,
ClassLoader classLoader,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformers. |
String |
toString() |
public ForElementMatcherPair(ElementMatcher<? super TypeDescription> typeMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher)
AgentBuilder.RawMatcher that only matches the
supplied TypeDescription and its
ClassLoader against two matcher in order to decied if an instrumentation should
be conducted.typeMatcher - The type matcher to apply to a
TypeDescription.classLoaderMatcher - The class loader to apply to a ClassLoader.public boolean matches(TypeDescription typeDescription, ClassLoader classLoader, Class<?> classBeingRedefined, ProtectionDomain protectionDomain)
AgentBuilder.RawMatchertypeDescription should be instrumented with the entailed
AgentBuilder.Transformers.matches in interface AgentBuilder.RawMatchertypeDescription - A description of the type to be instrumented.classLoader - The class loader of the instrumented type. Might be null if this class
loader represents the bootstrap class loader.classBeingRedefined - The class being redefined which is only not null if a retransofmration
is applied.protectionDomain - The protection domain of the type being transformed.true if the entailed AgentBuilder.Transformers should
be applied for the given typeDescription.Copyright © 2014–2015. All rights reserved.