Class MethodRegistry.Default.Compiled.Entry

    • Field Detail

      • attributeAppender

        private final MethodAttributeAppender attributeAppender
        The attribute appender of a compiled method.
      • methodDescription

        private final MethodDescription methodDescription
        The method to be implemented including potential transformations.
      • bridgeTypes

        private final java.util.Set<MethodDescription.TypeToken> bridgeTypes
        The type tokens representing all bridge methods for the method.
      • visibility

        private final Visibility visibility
        The represented method's minimum visibility.
      • bridgeMethod

        private final boolean bridgeMethod
        true if this entry represents a bridge method.
    • Constructor Detail

      • Entry

        protected Entry​(MethodRegistry.Handler.Compiled handler,
                        MethodAttributeAppender attributeAppender,
                        MethodDescription methodDescription,
                        java.util.Set<MethodDescription.TypeToken> bridgeTypes,
                        Visibility visibility,
                        boolean bridgeMethod)
        Creates a new entry for a compiled method registry.
        Parameters:
        handler - The handler to be used for implementing a method.
        attributeAppender - The attribute appender of a compiled method.
        methodDescription - The method to be implemented including potential transformations.
        bridgeTypes - The type tokens representing all bridge methods for the method.
        visibility - The represented method's minimum visibility.
        bridgeMethod - true if this entry represents a bridge method.
    • Method Detail

      • bind

        protected TypeWriter.MethodPool.Record bind​(TypeDescription instrumentedType,
                                                    boolean supportsBridges)
        Transforms this entry into a method record.
        Parameters:
        instrumentedType - The instrumented type to bind.
        supportsBridges - true if the record should support bridge methods.
        Returns:
        A record representing this entry's properties.