Home
last modified time | relevance | path

Searched refs:elementSource (Results 1 – 2 of 2) sorted by relevance

/external/guice/core/test/com/google/inject/spi/
DElementSourceTest.java38 ElementSource elementSource = new ElementSource( in testCallStackSize() local
40 assertEquals(10 /* call stack size */, elementSource.getStackTrace().length); in testCallStackSize()
50 ElementSource elementSource = (ElementSource) binding.getSource(); in testGetCallStack_IntegrationTest() local
51 List<String> moduleClassNames = elementSource.getModuleClassNames(); in testGetCallStack_IntegrationTest()
59 StackTraceElement[] callStack = elementSource.getStackTrace(); in testGetCallStack_IntegrationTest()
64 (StackTraceElement) elementSource.getDeclaringSource(); in testGetCallStack_IntegrationTest()
78 assertEquals(skippedCallStackSize + 15, elementSource.getStackTrace().length); in testGetCallStack_IntegrationTest()
117 List<Integer> indexes = elementSource.getModuleConfigurePositionsInStackTrace(); in testGetCallStack_IntegrationTest()
/external/guice/core/src/com/google/inject/internal/
DErrors.java738 private static Object appendModules(Object source, ElementSource elementSource) {
739 String modules = moduleSourceString(elementSource);
747 private static String moduleSourceString(ElementSource elementSource) {
750 if (elementSource == null) {
753 List<String> modules = Lists.newArrayList(elementSource.getModuleClassNames());
755 while(elementSource.getOriginalElementSource() != null) {
756 elementSource = elementSource.getOriginalElementSource();
757 modules.addAll(0, elementSource.getModuleClassNames());
780 ElementSource elementSource = null;
782 elementSource = (ElementSource)source;
[all …]