public class Reflect$
extends java.lang.Object
INTERNAL API
Modifier and Type | Field and Description |
---|---|
static Reflect$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Reflect$() |
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Type |
findMarker(java.lang.Class<?> root,
java.lang.Class<?> marker) |
scala.Option<scala.Function1<java.lang.Object,java.lang.Class<?>>> |
getCallerClass()
This optionally holds a function which looks N levels above itself
on the call stack and returns the
Class[_] object for the code
executing in that stack frame. |
public static final Reflect$ MODULE$
public scala.Option<scala.Function1<java.lang.Object,java.lang.Class<?>>> getCallerClass()
Class[_]
object for the code
executing in that stack frame. Implemented using
sun.reflect.Reflection.getCallerClass
if available, None otherwise.
Hint: when comparing to Thread.currentThread.getStackTrace, add two levels.
public java.lang.reflect.Type findMarker(java.lang.Class<?> root, java.lang.Class<?> marker)