Class FieldAccessor.ForSetter.OfReferenceValue

    • Field Detail

      • PREFIX

        protected static final java.lang.String PREFIX
        The prefix used for implicitly named cached fields.
        See Also:
        Constant Field Values
      • value

        private final java.lang.Object value
        The value to store.
      • name

        private final java.lang.String name
        The name of the field to store the reference in.
    • Constructor Detail

      • OfReferenceValue

        protected OfReferenceValue​(FieldAccessor.FieldLocation fieldLocation,
                                   Assigner assigner,
                                   Assigner.Typing typing,
                                   FieldAccessor.ForSetter.TerminationHandler terminationHandler,
                                   java.lang.Object value,
                                   java.lang.String name)
        Creates a setter instrumentation for setting a value stored in a static field of the instrumented type.
        Parameters:
        fieldLocation - The field's location.
        assigner - The assigner to use.
        typing - Indicates if dynamic type castings should be attempted for incompatible assignments.
        terminationHandler - The termination handler to apply.
        value - The value to store.
        name - The name of the field to store the reference in.