Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant

    • 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.
      • bootstrapOwner

        private final TypeDescription bootstrapOwner
        The type that declares the bootstrap method, or void if 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
        true if 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, or void if 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 - true if invokedynamic should be used to bind the constant.