/** * Creates and returns a child {@link ModuleSource} corresponding to the {@link Module module}. * * @param module the corresponding module * @param partialCallStack the chunk of call stack that starts from the parent module {@link * Module#configure(Binder) configure(Binder)} call and ends just before the module {@link * Module#configure(Binder) configure(Binder)} method invocation */ ModuleSource createChild(Object module, StackTraceElement[] partialCallStack) { return new ModuleSource(this, module, partialCallStack); }
private ModuleSource getModuleSource(Object module) { StackTraceElement[] partialCallStack; if (getIncludeStackTraceOption() == IncludeStackTraceOption.COMPLETE) { partialCallStack = getPartialCallStack(new Throwable().getStackTrace()); } else { partialCallStack = new StackTraceElement[0]; } if (moduleSource == null) { return new ModuleSource(module, partialCallStack); } return moduleSource.createChild(module, partialCallStack); }
/** * Creates and returns a child {@link ModuleSource} corresponding to the {@link Module module}. * * @param module the corresponding module * @param partialCallStack the chunk of call stack that starts from the parent module {@link * Module#configure(Binder) configure(Binder)} call and ends just before the module {@link * Module#configure(Binder) configure(Binder)} method invocation */ ModuleSource createChild(Object module, StackTraceElement[] partialCallStack) { return new ModuleSource(this, module, partialCallStack); }
/** * Creates and returns a child {@link ModuleSource} corresponding to the {@link Module module}. * * @param module the corresponding module * @param partialCallStack the chunk of call stack that starts from the parent module {@link * Module#configure(Binder) configure(Binder)} call and ends just before the module {@link * Module#configure(Binder) configure(Binder)} method invocation */ ModuleSource createChild(Object module, StackTraceElement[] partialCallStack) { return new ModuleSource(this, module, partialCallStack); }
/** * Creates and returns a child {@link ModuleSource} corresponding to the {@link Module module}. * * @param module the corresponding module * @param partialCallStack the chunk of call stack that starts from the parent module {@link * Module#configure(Binder) configure(Binder)} call and ends just before the module {@link * Module#configure(Binder) configure(Binder)} method invocation */ ModuleSource createChild(Object module, StackTraceElement[] partialCallStack) { return new ModuleSource(this, module, partialCallStack); }
private ModuleSource getModuleSource(Object module) { StackTraceElement[] partialCallStack; if (getIncludeStackTraceOption() == IncludeStackTraceOption.COMPLETE) { partialCallStack = getPartialCallStack(new Throwable().getStackTrace()); } else { partialCallStack = new StackTraceElement[0]; } if (moduleSource == null) { return new ModuleSource(module, partialCallStack); } return moduleSource.createChild(module, partialCallStack); }
private ModuleSource getModuleSource(Object module) { StackTraceElement[] partialCallStack; if (getIncludeStackTraceOption() == IncludeStackTraceOption.COMPLETE) { partialCallStack = getPartialCallStack(new Throwable().getStackTrace()); } else { partialCallStack = new StackTraceElement[0]; } if (moduleSource == null) { return new ModuleSource(module, partialCallStack); } return moduleSource.createChild(module, partialCallStack); }
private ModuleSource getModuleSource(Object module) { StackTraceElement[] partialCallStack; if (getIncludeStackTraceOption() == IncludeStackTraceOption.COMPLETE) { partialCallStack = getPartialCallStack(new Throwable().getStackTrace()); } else { partialCallStack = new StackTraceElement[0]; } if (moduleSource == null) { return new ModuleSource(module, partialCallStack); } return moduleSource.createChild(module, partialCallStack); }