Package org.apache.pekko.util
Class Reflect$
java.lang.Object
org.apache.pekko.util.Reflect$
Collection of internal reflection utilities which may or may not be
available (most services specific to HotSpot, but fails gracefully).
INTERNAL API
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindMarker(Class<?> root, Class<?> marker) This optionally holds a function which looks N levels above itself on the call stack and returns theClass[_]object for the code executing in that stack frame.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Reflect$
public Reflect$()
-
-
Method Details
-
getCallerClass
This optionally holds a function which looks N levels above itself on the call stack and returns theClass[_]object for the code executing in that stack frame. Implemented usingsun.reflect.Reflection.getCallerClassif available, None otherwise.Hint: when comparing to Thread.currentThread().getStackTrace, add two levels.
-
findMarker
-