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 classAgentBuilder.Default.Transformation.DifferentialMatcherA matcher that considers the differential of two transformers' transformations.protected static classAgentBuilder.Default.Transformation.SimpleMatcherA matcher that matches any type that is touched by a transformer without being ignored.protected static classAgentBuilder.Default.Transformation.TransformerIteratorAn iterator over a list of transformations that match a raw matcher specification.
-
Field Summary
Fields Modifier and Type Field Description private AgentBuilder.RawMatchermatcherThe matcher to identify types for transformation.private static byte[]NONEIndicates that a type should not be ignored.private booleanterminaltrueif this transformation is terminal.private java.util.List<AgentBuilder.Transformer>transformersA list of transformers to apply.
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransformation(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.RawMatchergetMatcher()Returns the matcher to identify types for transformation.protected java.util.List<AgentBuilder.Transformer>getTransformers()Returns a list of transformers to apply.protected booleanisTerminal()Returnstrueif this transformation is terminal.
-
-
-
Field Detail
-
NONE
@AlwaysNull 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
trueif 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()
Returnstrueif this transformation is terminal.- Returns:
trueif this transformation is terminal.
-
-