Class StackUtils

java.lang.Object
com.formdev.flatlaf.ui.StackUtils
Direct Known Subclasses:
StackUtilsImpl

class StackUtils extends Object
  • Field Details

    • INSTANCE

      private static final StackUtils INSTANCE
  • Constructor Details

    • StackUtils

      StackUtils()
  • Method Details

    • wasInvokedFrom

      public static boolean wasInvokedFrom(String className, String methodName, int limit)
      Checks whether current method was invoked from the given class and method.
    • wasInvokedFrom

      public static boolean wasInvokedFrom(BiPredicate<String,String> predicate, int limit)
      Checks whether current method was invoked from a class and method using the given predicate, which gets the class name of the stack frame as first parameter and the method name as second parameter.
    • wasInvokedFromImpl

      boolean wasInvokedFromImpl(BiPredicate<String,String> predicate, int limit)