public static class AgentBuilder.RawMatcher.Conjunction extends Object implements AgentBuilder.RawMatcher
AgentBuilder.RawMatcher.Conjunction, AgentBuilder.RawMatcher.Disjunction, AgentBuilder.RawMatcher.ForElementMatcherPair
Modifier | Constructor and Description |
---|---|
protected |
Conjunction(AgentBuilder.RawMatcher left,
AgentBuilder.RawMatcher right)
Creates a new conjunction of two raw matchers.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
hashCode() |
boolean |
matches(TypeDescription typeDescription,
ClassLoader classLoader,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain)
Decides if the given
typeDescription should be instrumented with the entailed
AgentBuilder.Transformer s. |
String |
toString() |
protected Conjunction(AgentBuilder.RawMatcher left, AgentBuilder.RawMatcher right)
left
- The left matcher which is applied first.right
- The right matcher which is applied second.public boolean matches(TypeDescription typeDescription, ClassLoader classLoader, Class<?> classBeingRedefined, ProtectionDomain protectionDomain)
AgentBuilder.RawMatcher
typeDescription
should be instrumented with the entailed
AgentBuilder.Transformer
s.matches
in interface AgentBuilder.RawMatcher
typeDescription
- 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 retransformation
is applied.protectionDomain
- The protection domain of the type being transformed.true
if the entailed AgentBuilder.Transformer
s should
be applied for the given typeDescription
.Copyright © 2014–2016. All rights reserved.