@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.Simple extends Object implements MemberSubstitution.Substitution.Chain.Step, MemberSubstitution.Substitution.Chain.Step.Resolution, MemberSubstitution.Substitution.Chain.Step.Factory
MemberSubstitution.Substitution.Chain.Step.Factory, MemberSubstitution.Substitution.Chain.Step.Resolution, MemberSubstitution.Substitution.Chain.Step.Simple
Constructor and Description |
---|
Simple(StackManipulation stackManipulation,
TypeDescription.Generic resultType)
Creates a new simple substitution step.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription.Generic |
getResultType()
Returns the resulting type of the substitution or
void if no resulting value is applied. |
StackManipulation |
getStackManipulation()
Returns the stack manipulation to apply the substitution.
|
MemberSubstitution.Substitution.Chain.Step |
make(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.
|
MemberSubstitution.Substitution.Chain.Step.Resolution |
resolve(TypeDescription targetType,
ByteCodeElement target,
TypeList.Generic parameters,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
public Simple(StackManipulation stackManipulation, TypeDescription.Generic resultType)
stackManipulation
- The stack manipulation to apply.resultType
- The resulting type of applying the stack manipulation.public MemberSubstitution.Substitution.Chain.Step make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)
make
in interface MemberSubstitution.Substitution.Chain.Step.Factory
assigner
- The assigner to use.typing
- The typing to use.instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.public MemberSubstitution.Substitution.Chain.Step.Resolution resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic current, Map<Integer,Integer> offsets, int freeOffset)
resolve
in interface MemberSubstitution.Substitution.Chain.Step
targetType
- The target result type of the substitution.target
- The byte code element that is currently substituted.parameters
- The parameters of the substituted element.current
- The current type of the applied substitution that is the top element on the operand stack.offsets
- The arguments of the substituted byte code element mapped to their local variable offsets.freeOffset
- The first free offset in the local variable array.public StackManipulation getStackManipulation()
getStackManipulation
in interface MemberSubstitution.Substitution.Chain.Step.Resolution
public TypeDescription.Generic getResultType()
void
if no resulting value is applied.getResultType
in interface MemberSubstitution.Substitution.Chain.Step.Resolution
void
if no resulting value is applied.Copyright © 2014–1970. All rights reserved.