Class MethodRebaseResolver.Default

    • Constructor Detail

      • Default

        protected Default​(java.util.Map<MethodDescription.InDefinedShape,​MethodRebaseResolver.Resolution> resolutions,
                          java.util.List<DynamicType> dynamicTypes)
        Creates a new default method rebased resolver.
        Parameters:
        resolutions - A mapping of rebased methods to their existing resolutions.
        dynamicTypes - A list of dynamic types that need to be appended to the created type in order to allow for the rebasement.
    • Method Detail

      • make

        public static MethodRebaseResolver make​(TypeDescription instrumentedType,
                                                java.util.Set<? extends MethodDescription.Token> rebaseableMethodTokens,
                                                ClassFileVersion classFileVersion,
                                                AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
                                                MethodNameTransformer methodNameTransformer)
        Creates a new method rebase resolver.
        Parameters:
        instrumentedType - The instrumented type.
        rebaseableMethodTokens - Tokens describing all methods that can possibly be rebased.
        classFileVersion - The class file version for the instrumentation.
        auxiliaryTypeNamingStrategy - The naming strategy for naming a potential auxiliary type.
        methodNameTransformer - A transformer for method names.
        Returns:
        A method rebase resolver that is capable of rebasing any of the provided methods.
      • getAuxiliaryTypes

        public java.util.List<DynamicType> getAuxiliaryTypes()
        Returns a (potentially empty) list of auxiliary types that are required by this method rebase resolver.
        Specified by:
        getAuxiliaryTypes in interface MethodRebaseResolver
        Returns:
        A list of auxiliary types that are required by this method rebase resolver.