Home
last modified time | relevance | path

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

/external/guice/core/src/com/google/inject/internal/
DMessages.java173 private static Object appendModules(Object source, ElementSource elementSource) { in appendModules() argument
174 String modules = moduleSourceString(elementSource); in appendModules()
182 private static String moduleSourceString(ElementSource elementSource) { in moduleSourceString() argument
185 if (elementSource == null) { in moduleSourceString()
188 List<String> modules = Lists.newArrayList(elementSource.getModuleClassNames()); in moduleSourceString()
190 while (elementSource.getOriginalElementSource() != null) { in moduleSourceString()
191 elementSource = elementSource.getOriginalElementSource(); in moduleSourceString()
192 modules.addAll(0, elementSource.getModuleClassNames()); in moduleSourceString()
215 ElementSource elementSource = null; in formatSource() local
217 elementSource = (ElementSource) source; in formatSource()
[all …]
/external/guice/core/test/com/google/inject/spi/
DElementSourceTest.java40 ElementSource elementSource = in testCallStackSize() local
46 assertEquals(10 /* call stack size */, elementSource.getStackTrace().length); in testCallStackSize()
56 ElementSource elementSource = (ElementSource) binding.getSource(); in testGetCallStack_IntegrationTest() local
57 List<String> moduleClassNames = elementSource.getModuleClassNames(); in testGetCallStack_IntegrationTest()
65 StackTraceElement[] callStack = elementSource.getStackTrace(); in testGetCallStack_IntegrationTest()
70 (StackTraceElement) elementSource.getDeclaringSource(); in testGetCallStack_IntegrationTest()
85 assertEquals(skippedCallStackSize + 15, elementSource.getStackTrace().length); in testGetCallStack_IntegrationTest()
115 List<Integer> indexes = elementSource.getModuleConfigurePositionsInStackTrace(); in testGetCallStack_IntegrationTest()