@HashCodeAndEqualsPlugin.Enhance public static class Implementation.Compound.Composable extends Object implements Implementation.Composable
Implementation.Composable
.
Note that the combination of two implementation might break the contract for implementing
Object.equals(Object)
and Object.hashCode()
as described for
Implementation
.Implementation
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.Target
Constructor and Description |
---|
Composable(Implementation implementation,
Implementation.Composable composable)
Creates a new compound composable.
|
Composable(List<? extends Implementation> implementations,
Implementation.Composable composable)
Creates a new compound composable.
|
Modifier and Type | Method and Description |
---|---|
Implementation.Composable |
andThen(Implementation.Composable implementation)
Appends the supplied composable implementation to this implementation.
|
Implementation |
andThen(Implementation implementation)
Appends the supplied implementation to this implementation.
|
ByteCodeAppender |
appender(Implementation.Target implementationTarget)
Creates a byte code appender that determines the implementation of the instrumented type's methods.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
public Composable(Implementation implementation, Implementation.Composable composable)
implementation
- An implementation that is represented by this compound implementation prior to the composable.composable
- The composable implementation that is applied last.public Composable(List<? extends Implementation> implementations, Implementation.Composable composable)
implementations
- All implementation that are represented by this compound implementation excluding the composable.composable
- The composable implementation that is applied last.public InstrumentedType prepare(InstrumentedType instrumentedType)
prepare
in interface InstrumentedType.Prepareable
instrumentedType
- The instrumented type in its current form.public ByteCodeAppender appender(Implementation.Target implementationTarget)
appender
in interface Implementation
implementationTarget
- The target of the current implementation.InstrumentedType.Prepareable.prepare(InstrumentedType)
.public Implementation andThen(Implementation implementation)
andThen
in interface Implementation.Composable
implementation
- The subsequent implementation.public Implementation.Composable andThen(Implementation.Composable implementation)
andThen
in interface Implementation.Composable
implementation
- The subsequent composable implementation.Copyright © 2014–2020. All rights reserved.