Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant
- java.lang.Object
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant
-
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
- Enclosing interface:
- MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
@Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant extends java.lang.Object implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
An offset mapping for a dynamic constant.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant.FactoryA factory to create an offset mapping for a dynamic constant.-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForArgument, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForCurrent, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<JavaConstant>argumentsThe constant arguments to the bootstrap method.private java.lang.StringbootstrapNameThe name of the bootstrap method.private TypeDescriptionbootstrapOwnerThe type that declares the bootstrap method, orvoidif the instrumented type.private java.util.List<? extends TypeDescription>bootstrapParameterTypesThe parameter types of the boostrap method.private TypeDescriptionbootstrapReturnTypeThe return type of the boostrap method.private JavaConstant.MethodHandle.HandleTypebootstrapTypeThe type of the bootstrap method.private booleaninvokedynamictrueif invokedynamic should be used to bind the constant.private java.lang.StringnameThe name of the dynamic constant.private TypeDescriptiontypeDescriptionThe type of the dynamic constant.
-
Constructor Summary
Constructors Constructor Description ForDynamicConstant(java.lang.String name, TypeDescription typeDescription, JavaConstant.MethodHandle.HandleType bootstrapType, TypeDescription bootstrapOwner, java.lang.String bootstrapName, TypeDescription bootstrapReturnType, java.util.List<? extends TypeDescription> bootstrapParameterTypes, java.util.List<JavaConstant> arguments, boolean invokedynamic)Creates an offset mapping for a dynamic constant.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolvedresolve(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)Resolves an offset mapping for a given instrumented method.
-
-
-
Field Detail
-
name
private final java.lang.String name
The name of the dynamic constant.
-
typeDescription
private final TypeDescription typeDescription
The type of the dynamic constant.
-
bootstrapType
private final JavaConstant.MethodHandle.HandleType bootstrapType
The type of the bootstrap method.
-
bootstrapOwner
private final TypeDescription bootstrapOwner
The type that declares the bootstrap method, orvoidif the instrumented type.
-
bootstrapName
private final java.lang.String bootstrapName
The name of the bootstrap method.
-
bootstrapReturnType
private final TypeDescription bootstrapReturnType
The return type of the boostrap method.
-
bootstrapParameterTypes
private final java.util.List<? extends TypeDescription> bootstrapParameterTypes
The parameter types of the boostrap method.
-
arguments
private final java.util.List<JavaConstant> arguments
The constant arguments to the bootstrap method.
-
invokedynamic
private final boolean invokedynamic
trueif invokedynamic should be used to bind the constant.
-
-
Constructor Detail
-
ForDynamicConstant
public ForDynamicConstant(java.lang.String name, TypeDescription typeDescription, JavaConstant.MethodHandle.HandleType bootstrapType, TypeDescription bootstrapOwner, java.lang.String bootstrapName, TypeDescription bootstrapReturnType, java.util.List<? extends TypeDescription> bootstrapParameterTypes, java.util.List<JavaConstant> arguments, boolean invokedynamic)Creates an offset mapping for a dynamic constant.- Parameters:
name- The name of the dynamic constant.typeDescription- The type of the dynamic constant.bootstrapType- The type of the bootstrap method.bootstrapOwner- The type that declares the bootstrap method, orvoidif the instrumented type.bootstrapName- The name of the bootstrap method.bootstrapReturnType- The return type of the boostrap method.bootstrapParameterTypes- The parameter types of the boostrap method.arguments- The constant arguments to the bootstrap method.invokedynamic-trueif invokedynamic should be used to bind the constant.
-
-
Method Detail
-
resolve
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved resolve(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.- Specified by:
resolvein interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping- Parameters:
assigner- The assigner to use.typing- The typing to use if no explicit typing is specified.instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.- Returns:
- A resolved version of this offset mapping.
-
-