Package com.formdev.flatlaf.ui
Class StackUtils
java.lang.Object
com.formdev.flatlaf.ui.StackUtils
- Direct Known Subclasses:
StackUtilsImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
wasInvokedFrom
(String className, String methodName, int limit) Checks whether current method was invoked from the given class and method.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.(package private) boolean
wasInvokedFromImpl
(BiPredicate<String, String> predicate, int limit)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
StackUtils
StackUtils()
-
-
Method Details
-
wasInvokedFrom
Checks whether current method was invoked from the given class and method. -
wasInvokedFrom
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
-