Example #1
0
 private static int getContextSize() {
   return CALLER_RESOLVER.getClassContext().length - CALL_CONTEXT_OFFSET;
 }
Example #2
0
 public static Class getCallingClass() {
   return CallerResolver.getCallerClass(2);
 }
Example #3
0
 /*
  * Indexes into the current method call context with a given
  * offset.
  */
 private static Class getCallerClass(int callerOffset) {
   return CALLER_RESOLVER.getClassContext()[CALL_CONTEXT_OFFSET + callerOffset];
 }