Class Advice.OffsetMapping.ForField.Unresolved

    • Field Detail

      • BEAN_PROPERTY

        protected static final java.lang.String BEAN_PROPERTY
        Indicates that a name should be extracted from an accessor method.
        See Also:
        Constant Field Values
      • name

        private final java.lang.String name
        The name of the field.
    • Constructor Detail

      • Unresolved

        public Unresolved​(TypeDescription.Generic target,
                          boolean readOnly,
                          Assigner.Typing typing,
                          java.lang.String name)
        Creates an offset mapping for a field that is not yet resolved.
        Parameters:
        target - The target type.
        readOnly - true if this mapping is read-only.
        typing - The typing to apply.
        name - The name of the field.
    • Method Detail

      • resolveAccessor

        private static FieldLocator.Resolution resolveAccessor​(FieldLocator fieldLocator,
                                                               MethodDescription methodDescription)
        Resolves a field locator for a potential accessor method.
        Parameters:
        fieldLocator - The field locator to use.
        methodDescription - The method description that is the potential accessor.
        Returns:
        A resolution for a field locator.
      • fieldLocator

        protected abstract FieldLocator fieldLocator​(TypeDescription instrumentedType)
        Returns a field locator for this instance.
        Parameters:
        instrumentedType - The instrumented type.
        Returns:
        An appropriate field locator.