Package com.formdev.flatlaf.ui
Class StackUtils
- java.lang.Object
-
- com.formdev.flatlaf.ui.StackUtils
-
public class StackUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanwasInvokedFrom(String className, String methodName, int limit)Checks whether current method was invoked from the given class and method.static booleanwasInvokedFrom(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.
-
-
-
Method Detail
-
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.
-
-