core/src/com/google/inject/spi/ModuleSource.java
StackTraceElement[] getStackTrace() {
    int stackTraceSize = getStackTraceSize();
    StackTraceElement[] callStack = new StackTraceElement[stackTraceSize];
    int cursor = 0;
    ModuleSource current = this;
    while (current != null) {
      StackTraceElement[] chunk =
          StackTraceElements.convertToStackTraceElement(current.partialCallStack);
      int chunkSize = chunk.length;
      System.arraycopy(chunk, 0, callStack, cursor, chunkSize);
      current = current.parent;
      cursor = cursor + chunkSize;
    }
    return callStack;
  }
StackTraceElement[] getStackTrace() {
    int stackTraceSize = getStackTraceSize();
    StackTraceElement[] callStack = new StackTraceElement[stackTraceSize];
    int cursor = 0;
    ModuleSource current = this;
    while (current != null) {
      StackTraceElement[] chunk =
          StackTraceElements.convertToStackTraceElement(current.partialCallStack);
      int chunkSize = chunk.length;
      System.arraycopy(chunk, 0, callStack, cursor, chunkSize);
      current = current.parent;
      cursor = cursor + chunkSize;
    }
    return callStack;
  }
StackTraceElement [ ] getStackTrace ( ) { int stackTraceSize = getStackTraceSize ( ) ; StackTraceElement [ ] callStack = new StackTraceElement [ stackTraceSize ] ; int cursor = 0 ; ModuleSource current = this ; while ( current != null ) { StackTraceElement [ ] chunk = StackTraceElements . convertToStackTraceElement ( current . partialCallStack ) ; int chunkSize = chunk . length ; System . arraycopy ( chunk , 0 , callStack , cursor , chunkSize ) ; current = current . parent ; cursor = cursor + chunkSize ; } return callStack ; }
Returns the full call stack that ends just before the module {@link Module#configure(Binder)
configure(Binder)} method invocation. The return array is non-empty if stack trace collection
on.
Returns the full call stack that ends just before the module {