core/src/com/google/inject/spi/ElementSource.java
public List<Integer> getModuleConfigurePositionsInStackTrace() {
    int size = moduleSource.size();
    Integer[] positions = new Integer[size];
    int chunkSize = partialCallStack.length;
    positions[0] = chunkSize - 1;
    ModuleSource current = moduleSource;
    for (int cursor = 1; cursor < size; cursor++) {
      chunkSize = current.getPartialCallStackSize();
      positions[cursor] = positions[cursor - 1] + chunkSize;
      current = current.getParent();
    }
    return ImmutableList.<Integer>copyOf(positions);
  }
public List<Integer> getModuleConfigurePositionsInStackTrace() {
    int size = moduleSource.size();
    Integer[] positions = new Integer[size];
    int chunkSize = partialCallStack.length;
    positions[0] = chunkSize - 1;
    ModuleSource current = moduleSource;
    for (int cursor = 1; cursor < size; cursor++) {
      chunkSize = current.getPartialCallStackSize();
      positions[cursor] = positions[cursor - 1] + chunkSize;
      current = current.getParent();
    }
    return ImmutableList.<Integer>copyOf(positions);
  }
public List < Integer > getModuleConfigurePositionsInStackTrace ( ) { int size = moduleSource . size ( ) ; Integer [ ] positions = new Integer [ size ] ; int chunkSize = partialCallStack . length ; positions [ 0 ] = chunkSize - 1 ; ModuleSource current = moduleSource ; for ( int cursor = 1 ; cursor < size ; cursor ++ ) { chunkSize = current . getPartialCallStackSize ( ) ; positions [ cursor ] = positions [ cursor - 1 ] + chunkSize ; current = current . getParent ( ) ; } return ImmutableList . < Integer > copyOf ( positions ) ; }
Returns the position of {@link com.google.inject.Module#configure configure(Binder)} method
call in the {@link #getStackTrace stack trace} for modules that their classes returned by
{@link #getModuleClassNames}. For example, if the stack trace looks like the following:

<ol>
<li>{@code Binder.bind()}
<li>{@code ModuleTwo.configure()}
<li>{@code Binder.install()}
<li>{@code ModuleOne.configure()}
<li>{@code theRest().
</ol>

<p>1 and 3 are returned.

<p>In the cases where stack trace is not available (i.e., the stack trace was not collected),
it returns -1 for all module positions.
Returns the position of { @link com . google . inject . Module#configure configure ( Binder ) } method call in the { @link #getStackTrace stack trace } for modules that their classes returned by { @link #getModuleClassNames } . For example if the stack trace looks like the following :