public static List<Element> getElements(Stage stage, Iterable<? extends Module> modules) {
    RecordingBinder binder = new RecordingBinder(stage);
    for (Module module : modules) {
      binder.install(module);
    }
    binder.scanForAnnotatedMethods();
    for (RecordingBinder child : binder.privateBinders) {
      child.scanForAnnotatedMethods();
    }
    // Free the memory consumed by the stack trace elements cache
    StackTraceElements.clearCache();
    return Collections.unmodifiableList(binder.elements);
  }
public static List<Element> getElements(Stage stage, Iterable<? extends Module> modules) {
    RecordingBinder binder = new RecordingBinder(stage);
    for (Module module : modules) {
      binder.install(module);
    }
    binder.scanForAnnotatedMethods();
    for (RecordingBinder child : binder.privateBinders) {
      child.scanForAnnotatedMethods();
    }
    
    StackTraceElements.clearCache();
    return Collections.unmodifiableList(binder.elements);
  }
public static List < Element > getElements ( Stage stage , Iterable < ? extends Module > modules ) { RecordingBinder binder = new RecordingBinder ( stage ) ; for ( Module module : modules ) { binder . install ( module ) ; } binder . scanForAnnotatedMethods ( ) ; for ( RecordingBinder child : binder . privateBinders ) { child . scanForAnnotatedMethods ( ) ; } // Free the memory consumed by the stack trace elements cache StackTraceElements . clearCache ( ) ; return Collections . unmodifiableList ( binder . elements ) ; }
Records the elements executed by {@code modules}.
Records the elements executed by {