Class InvokeDynamic.InvocationProvider.ArgumentProvider.ForInstance

    • Field Detail

      • FIELD_PREFIX

        private static final java.lang.String FIELD_PREFIX
        The prefix of any field generated by this argument provider.
        See Also:
        Constant Field Values
      • value

        private final java.lang.Object value
        The value that is stored in the static field.
      • fieldType

        private final TypeDescription fieldType
        The type of the static field.
    • Constructor Detail

      • ForInstance

        protected ForInstance​(java.lang.Object value,
                              TypeDescription fieldType)
        Creates a new argument provider that stores the given value in a static field.
        Parameters:
        value - The value that is to be provided to the bootstrapped method.
        fieldType - The type of the field which is also provided to the bootstrap method.