Class RebaseDynamicTypeBuilder.RebaseableMatcher

    • Field Detail

      • tokens

        private final java.util.Set<MethodDescription.Token> tokens
        A set of method tokens representing all instrumented methods.
    • Constructor Detail

      • RebaseableMatcher

        protected RebaseableMatcher​(java.util.Set<MethodDescription.Token> tokens)
        Creates a new matcher for identifying rebasable methods.
        Parameters:
        tokens - A set of method tokens representing all instrumented methods.
    • Method Detail

      • of

        protected static ElementMatcher<MethodDescription.Token> of​(TypeDescription instrumentedType,
                                                                    MethodList<?> instrumentedMethods)
        Returns a matcher that filters any method that should not be rebased.
        Parameters:
        instrumentedType - The instrumented type.
        instrumentedMethods - All instrumented methods.
        Returns:
        A suitable matcher that filters all methods that should not be rebased.