Home
last modified time | relevance | path

Searched refs:mapKey (Results 1 – 20 of 20) sorted by relevance

/external/guice/extensions/multibindings/src/com/google/inject/multibindings/
DMultibindingsScanner.java81 AnnotationOrError mapKey = findMapKeyAnnotation(binder, method);
83 if (mapKey.annotation != null) {
88 if (mapKey.error) {
92 if (mapKey.annotation == null) {
97 TypeAndValue typeAndValue = typeAndValueOfMapKey(mapKey.annotation);
101 if (mapKey.annotation != null) {
135 MapKey mapKey = annotation.annotationType().getAnnotation(MapKey.class);
136 if (mapKey != null) {
141 if (mapKey.unwrapValue()) {
DMapBinder.java252 TypeLiteral<K> keyType, TypeLiteral<V> valueType, Key<Map<K, V>> mapKey, in newRealMapBinder() argument
255 new RealMapBinder<K, V>(binder, keyType, valueType, mapKey, entrySetBinder); in newRealMapBinder()
317 private final Key<Map<K, V>> mapKey; field in MapBinder.RealMapBinder
332 Key<Map<K, V>> mapKey, Multibinder<Map.Entry<K, Provider<V>>> entrySetBinder) { in RealMapBinder() argument
335 this.mapKey = mapKey; in RealMapBinder()
336 this.providerMapKey = mapKey.ofType(mapOfProviderOf(keyType, valueType)); in RealMapBinder()
337 this.javaxProviderMapKey = mapKey.ofType(mapOfJavaxProviderOf(keyType, valueType)); in RealMapBinder()
338 this.multimapKey = mapKey.ofType(mapOf(keyType, setOf(valueType))); in RealMapBinder()
339 this.providerMultimapKey = mapKey.ofType(mapOfSetOfProviderOf(keyType, valueType)); in RealMapBinder()
398 binder.bind(mapKey).toProvider(new RealMapProvider(dependencies, mapProvider)); in configure()
[all …]
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DMapKeys.java86 static Optional<? extends AnnotationValue> unwrapValue(AnnotationMirror mapKey) { in unwrapValue() argument
87 MapKey mapKeyAnnotation = mapKey.getAnnotationType().asElement().getAnnotation(MapKey.class); in unwrapValue()
89 mapKeyAnnotation != null, "%s is not annotated with @MapKey", mapKey.getAnnotationType()); in unwrapValue()
91 ? Optional.of(getOnlyElement(mapKey.getElementValues().values())) in unwrapValue()
154 AnnotationMirror mapKey = getMapKey(bindingElement).get(); in getMapKeySnippet() local
156 getMapKeyCreatorClassName(MoreTypes.asTypeElement(mapKey.getAnnotationType())); in getMapKeySnippet()
157 Optional<? extends AnnotationValue> unwrappedValue = unwrapValue(mapKey); in getMapKeySnippet()
162 return annotationSnippet(mapKey, new MapKeySnippet(mapKeyCreator)); in getMapKeySnippet()
DContributionBinding.java265 AnnotationMirror mapKey = getMapKey(mapBinding.bindingElement()).get();
266 Optional<? extends AnnotationValue> unwrappedValue = unwrapValue(mapKey);
267 return unwrappedValue.isPresent() ? unwrappedValue.get().getValue() : mapKey;
/external/jsilver/src/com/google/clearsilver/jsilver/precompiler/
DPrecompiledTemplateLoader.java66 PrecompiledTemplateMapKey mapKey = (PrecompiledTemplateMapKey) entry.getKey(); in makeTemplateMap() local
69 compiledTemplate.setEscapeMode(mapKey.getEscapeMode()); in makeTemplateMap()
106 PrecompiledTemplateMapKey mapKey = new PrecompiledTemplateMapKey(key, escapeMode); in load() local
107 Template template = templateMap.get(mapKey); in load()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
DNGramList.java24 Object mapKey(String key); in mapKey() method
103 Object mappedKey = keyMapper.mapKey(key); in get()
110 Object mappedKey = keyMapper.mapKey(key); in put()
DInputFile.java130 public Object mapKey(String key) in mapKey() method in InputFile
DStatisticsTool.java137 public Object mapKey(String key) in mapKey() method in StatisticsTool
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/
DSpiUtils.java110 static <T> void assertMapVisitor(Key<T> mapKey, TypeLiteral<?> keyType, TypeLiteral<?> valueType, in assertMapVisitor() argument
118 mapInjectorTest(mapKey, keyType, valueType, modules, allowDuplicates, expectedMapBindings, in assertMapVisitor()
123 mapModuleTest(mapKey, keyType, valueType, modules, allowDuplicates, expectedMapBindings, in assertMapVisitor()
129 private static <T> void mapInjectorTest(Key<T> mapKey, TypeLiteral<?> keyType, in mapInjectorTest() argument
134 Binding<T> mapBinding = injector.getBinding(mapKey); in mapInjectorTest()
168 Key<?> mapOfJavaxProvider = mapKey.ofType(mapOfJavaxProviderOf(keyType, valueType)); in mapInjectorTest()
169 Key<?> mapOfProvider = mapKey.ofType(mapOfProviderOf(keyType, valueType)); in mapInjectorTest()
170 Key<?> mapOfSetOfProvider = mapKey.ofType(mapOfSetOfProviderOf(keyType, valueType)); in mapInjectorTest()
171 Key<?> mapOfSet = mapKey.ofType(mapOf(keyType, setOf(valueType))); in mapInjectorTest()
172 Key<?> setOfEntry = mapKey.ofType(setOf(entryOfProviderOf(keyType, valueType))); in mapInjectorTest()
[all …]
DMapBinderTest.java1007 Key<Map<String, String>> mapKey = Key.get(new TypeLiteral<Map<String, String>>() {}); in testWeakKeySet_integration_mapbinder() local
1014 WeakKeySetUtils.assertNotBlacklisted(parentInjector, mapKey); in testWeakKeySet_integration_mapbinder()
1024 WeakKeySetUtils.assertBlacklisted(parentInjector, mapKey); in testWeakKeySet_integration_mapbinder()
1030 WeakKeySetUtils.assertNotBlacklisted(parentInjector, mapKey); in testWeakKeySet_integration_mapbinder()
/external/emma/core/java12/com/vladium/jcd/cls/
DConstantCollection.java155 final String mapKey = ((CONSTANT_Utf8_info) result).m_value; in set() local
158 if (m_CONSTANT_Utf8_index.get (mapKey, out) && (out [0] == zindex)) in set()
159 m_CONSTANT_Utf8_index.remove (mapKey); in set()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTrieMapTest.java221 String mapKey = mapEntry.getKey(); in checkContents() local
223 if (!mapKey.contentEquals(trieKey)) { in checkContents()
224 assertEquals(style + "\tKeys match", mapKey, trieKey.toString()); in checkContents()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DTrieMapTest.java225 String mapKey = mapEntry.getKey(); in checkContents() local
227 if (!mapKey.contentEquals(trieKey)) { in checkContents()
228 assertEquals(style + "\tKeys match", mapKey, trieKey.toString()); in checkContents()
/external/icu/icu4c/source/tools/genrb/
Dreslist.h86 int32_t mapKey(int32_t oldpos) const;
Dreslist.cpp483 SRBRoot::mapKey(int32_t oldpos) const { in mapKey() function in SRBRoot
598 fKey = bundle->mapKey(fKey); in write16()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.debug.core_3.6.0.v20100519.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
Dorg.eclipse.swt.win32.win32.x86_3.6.1.v3657a.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/owasp/sanitizer/tools/emma/lib/
Demma.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/vladium/ com/ ...
/external/emma/lib/
Demma.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/vladium/ com/ ...
/external/testng/ant/3rdparty/
Ddoclava-1.0.3.jarMETA-INF/MANIFEST.MF assets/html/index.html assets/templates/data ...