Package net.bytebuddy.agent.builder
Class AgentBuilder.Default.Transformation
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.Default.Transformation
- Enclosing class:
- AgentBuilder.Default
A transformation to apply.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A matcher that considers the differential of two transformers' transformations.protected static class
A matcher that matches any type that is touched by a transformer without being ignored.protected static class
An iterator over a list of transformations that match a raw matcher specification. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AgentBuilder.RawMatcher
The matcher to identify types for transformation.private static final byte[]
Indicates that a type should not be ignored.private final boolean
true
if this transformation is terminal.private final List<AgentBuilder.Transformer>
A list of transformers to apply. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Transformation
(AgentBuilder.RawMatcher matcher, List<AgentBuilder.Transformer> transformers, boolean terminal) Creates a new transformation. -
Method Summary
Modifier and TypeMethodDescriptionprotected AgentBuilder.RawMatcher
Returns the matcher to identify types for transformation.protected List<AgentBuilder.Transformer>
Returns a list of transformers to apply.protected boolean
Returnstrue
if this transformation is terminal.
-
Field Details
-
NONE
Indicates that a type should not be ignored. -
matcher
The matcher to identify types for transformation. -
transformers
A list of transformers to apply. -
terminal
private final boolean terminaltrue
if this transformation is terminal.
-
-
Constructor Details
-
Transformation
protected Transformation(AgentBuilder.RawMatcher matcher, List<AgentBuilder.Transformer> transformers, boolean terminal) Creates a new transformation.- Parameters:
matcher
- The matcher to identify types eligable for transformation.transformers
- A list of transformers to apply.terminal
- Indicates that this transformation is terminal.
-
-
Method Details
-
getMatcher
Returns the matcher to identify types for transformation.- Returns:
- The matcher to identify types for transformation.
-
getTransformers
Returns a list of transformers to apply.- Returns:
- A list of transformers to apply.
-
isTerminal
protected boolean isTerminal()Returnstrue
if this transformation is terminal.- Returns:
true
if this transformation is terminal.
-