Class ExecutorMethodInstanceHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean returnsOwnInstance​(java.lang.String internalClassName, java.lang.String methodName)
      Return whether the method always returns its calling instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExecutorMethodInstanceHandler

        public ExecutorMethodInstanceHandler​(java.util.Map<java.lang.String,​StringMatcher> alwaysReturnsOwnInstance)
        Creates an ExecutorMethodInstanceHandler using the given mapping.
        Parameters:
        alwaysReturnsOwnInstance - A mapping from class names to a matcher for methods that return a new instance
    • Method Detail

      • returnsOwnInstance

        public boolean returnsOwnInstance​(java.lang.String internalClassName,
                                          java.lang.String methodName)
        Description copied from interface: ExecutorInstanceHandler
        Return whether the method always returns its calling instance. If unknown, return false.
        Specified by:
        returnsOwnInstance in interface ExecutorInstanceHandler