java.lang.Object
org.elasticsearch.entitlement.bridge.Util
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> Why would we write this instead of usingStackWalker.getCallerClass()? Because that method throwsIllegalCallerExceptionif called from the "outermost frame", which includes at least some cases of a method called from a native frame.
-
Field Details
-
NO_CLASS
A special value representing the case where a method has no caller. This can occur if it's called directly from the JVM.- See Also:
-
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getCallerClass
Why would we write this instead of usingStackWalker.getCallerClass()? Because that method throwsIllegalCallerExceptionif called from the "outermost frame", which includes at least some cases of a method called from a native frame.- Returns:
- the class that called the method which called this; or
NO_CLASSfrom the outermost frame.
-