Package net.bytebuddy.agent.builder
Class AgentBuilder.Default.Transformation
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.Default.Transformation
-
- Enclosing class:
- AgentBuilder.Default
@Enhance protected static class AgentBuilder.Default.Transformation extends java.lang.Object
A transformation to apply.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AgentBuilder.Default.Transformation.DifferentialMatcher
A matcher that considers the differential of two transformers' transformations.protected static class
AgentBuilder.Default.Transformation.SimpleMatcher
A matcher that matches any type that is touched by a transformer without being ignored.protected static class
AgentBuilder.Default.Transformation.TransformerIterator
An iterator over a list of transformations that match a raw matcher specification.
-
Field Summary
Fields Modifier and Type Field Description private AgentBuilder.RawMatcher
matcher
The matcher to identify types for transformation.private static byte[]
NONE
Indicates that a type should not be ignored.private boolean
terminal
true
if this transformation is terminal.private java.util.List<AgentBuilder.Transformer>
transformers
A list of transformers to apply.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Transformation(AgentBuilder.RawMatcher matcher, java.util.List<AgentBuilder.Transformer> transformers, boolean terminal)
Creates a new transformation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AgentBuilder.RawMatcher
getMatcher()
Returns the matcher to identify types for transformation.protected java.util.List<AgentBuilder.Transformer>
getTransformers()
Returns a list of transformers to apply.protected boolean
isTerminal()
Returnstrue
if this transformation is terminal.
-
-
-
Field Detail
-
NONE
private static final byte[] NONE
Indicates that a type should not be ignored.
-
matcher
private final AgentBuilder.RawMatcher matcher
The matcher to identify types for transformation.
-
transformers
private final java.util.List<AgentBuilder.Transformer> transformers
A list of transformers to apply.
-
terminal
private final boolean terminal
true
if this transformation is terminal.
-
-
Constructor Detail
-
Transformation
protected Transformation(AgentBuilder.RawMatcher matcher, java.util.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 Detail
-
getMatcher
protected AgentBuilder.RawMatcher getMatcher()
Returns the matcher to identify types for transformation.- Returns:
- The matcher to identify types for transformation.
-
getTransformers
protected java.util.List<AgentBuilder.Transformer> 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.
-
-