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 classA matcher that considers the differential of two transformers' transformations.protected static classA matcher that matches any type that is touched by a transformer without being ignored.protected static classAn iterator over a list of transformations that match a raw matcher specification. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AgentBuilder.RawMatcherThe matcher to identify types for transformation.private static final byte[]Indicates that a type should not be ignored.private final booleantrueif this transformation is terminal.private final List<AgentBuilder.Transformer> A list of transformers to apply. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransformation(AgentBuilder.RawMatcher matcher, List<AgentBuilder.Transformer> transformers, boolean terminal) Creates a new transformation. -
Method Summary
Modifier and TypeMethodDescriptionprotected AgentBuilder.RawMatcherReturns the matcher to identify types for transformation.protected List<AgentBuilder.Transformer> Returns a list of transformers to apply.protected booleanReturnstrueif 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 terminaltrueif 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()Returnstrueif this transformation is terminal.- Returns:
trueif this transformation is terminal.
-