Class PolicyUtils.Commons

  • Enclosing class:
    PolicyUtils

    public static class PolicyUtils.Commons
    extends Object
    • Constructor Detail

      • Commons

        public Commons()
    • Method Detail

      • getStackMethodName

        public static String getStackMethodName​(int methodIndexInStack)
        Method returns the name of the method that is on the methodIndexInStack position in the call stack of the current Thread.
        Parameters:
        methodIndexInStack - index to the call stack to get the method name for.
        Returns:
        the name of the method that is on the methodIndexInStack position in the call stack of the current Thread.
      • getCallerMethodName

        public static String getCallerMethodName()
        Function returns the name of the caller method for the method executing this function.
        Returns:
        caller method name from the call stack of the current Thread.