Home
last modified time | relevance | path

Searched refs:typeElement (Results 1 – 21 of 21) sorted by relevance

/external/smali/smalidea/src/test/java/org/jf/smalidea/
DSmaliClassTypeElementTest.java53 SmaliClassTypeElement typeElement = in testGetType() local
55 Assert.assertNotNull(typeElement); in testGetType()
56 SmaliClassType type = typeElement.getType(); in testGetType()
58 Assert.assertEquals("blarg", typeElement.getName()); in testGetType()
59 Assert.assertEquals("my.blarg", typeElement.getCanonicalText()); in testGetType()
63 SmaliClass resolvedClass = (SmaliClass)typeElement.resolve(); in testGetType()
84 SmaliClassTypeElement typeElement = in testSimpleInnerClass() local
86 Assert.assertNotNull(typeElement); in testSimpleInnerClass()
87 SmaliClassType type = typeElement.getType(); in testSimpleInnerClass()
89 Assert.assertEquals("Outer.Inner", typeElement.getQualifiedName()); in testSimpleInnerClass()
[all …]
DClassReferenceTest.java50 SmaliClassTypeElement typeElement = (SmaliClassTypeElement)configureByFileText( in testJavaReferenceFromSmali() local
53 Assert.assertNotNull(typeElement); in testJavaReferenceFromSmali()
54 Assert.assertEquals("Object", typeElement.getName()); in testJavaReferenceFromSmali()
56 PsiClass psiClass = typeElement.resolve(); in testJavaReferenceFromSmali()
60 JavaResolveResult resolveResult = typeElement.advancedResolve(false); in testJavaReferenceFromSmali()
64 JavaResolveResult[] resolveResults = typeElement.multiResolve(false); in testJavaReferenceFromSmali()
74 SmaliClassTypeElement typeElement = (SmaliClassTypeElement)configureByFileText( in testJavaReferenceFromSmaliInDumbMode() local
77 Assert.assertNotNull(typeElement); in testJavaReferenceFromSmaliInDumbMode()
78 Assert.assertEquals("Object", typeElement.getName()); in testJavaReferenceFromSmaliInDumbMode()
82 PsiClass psiClass = typeElement.resolve(); in testJavaReferenceFromSmaliInDumbMode()
[all …]
DSmaliFieldTest.java59 PsiTypeElement typeElement = fields[0].getTypeElement(); in testBasicField() local
60 Assert.assertNotNull("I", typeElement); in testBasicField()
61 Assert.assertEquals("I", typeElement.getText()); in testBasicField()
226 PsiTypeElement typeElement = fields[0].getTypeElement(); in testFieldAnnotations() local
227 Assert.assertNotNull("I", typeElement); in testFieldAnnotations()
228 Assert.assertEquals("I", typeElement.getText()); in testFieldAnnotations()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DUtil.java120 private static boolean requiresEnclosingInstance(TypeElement typeElement) { in requiresEnclosingInstance() argument
121 switch (typeElement.getNestingKind()) { in requiresEnclosingInstance()
125 return !typeElement.getModifiers().contains(STATIC); in requiresEnclosingInstance()
131 + typeElement.getNestingKind()); in requiresEnclosingInstance()
139 static boolean componentCanMakeNewInstances(TypeElement typeElement) { in componentCanMakeNewInstances() argument
140 switch (typeElement.getKind()) { in componentCanMakeNewInstances()
148 throw new AssertionError("TypeElement cannot have kind: " + typeElement.getKind()); in componentCanMakeNewInstances()
151 if (typeElement.getModifiers().contains(ABSTRACT)) { in componentCanMakeNewInstances()
155 if (requiresEnclosingInstance(typeElement)) { in componentCanMakeNewInstances()
159 for (Element enclosed : typeElement.getEnclosedElements()) { in componentCanMakeNewInstances()
DBinding.java195 TypeElement typeElement = MoreElements.asType(t.asElement()); in nonPublicPackageUse()
196 if (!typeElement.getModifiers().contains(PUBLIC)) { in nonPublicPackageUse()
197 PackageElement elementPackage = MoreElements.getPackage(typeElement); in nonPublicPackageUse()
204 typeElement.getEnclosingElement().asType().accept(this, p); in nonPublicPackageUse()
DScope.java112 TypeElement typeElement = MoreTypes.asTypeElement(annotationMirror.getAnnotationType()); in getQualifiedName() local
113 return typeElement.getQualifiedName().toString(); in getQualifiedName()
DMapKeyGenerator.java169 TypeElement typeElement = MoreTypes.asTypeElement(t);
170 if (typeElement.getKind() == ElementKind.ANNOTATION_TYPE) {
171 nestedAnnotationElements(typeElement, p);
DProvisionBinding.java144 TypeElement typeElement = MoreElements.asType(type.asElement()); in membersInjectionRequest() local
146 typeElement.getSuperclass())) { in membersInjectionRequest()
149 for (Element enclosedElement : typeElement.getEnclosedElements()) { in membersInjectionRequest()
DMembersInjectionBinding.java213 TypeElement typeElement = MoreElements.asType(declaredType.asElement()); in forInjectedType() local
219 hasNonDefaultTypeParameters(typeElement, key.type(), types), in forInjectedType()
220 typeElement, in forInjectedType()
DSourceFiles.java276 static ClassName membersInjectorNameForType(TypeElement typeElement) { in membersInjectorNameForType() argument
277 ClassName injectedClassName = ClassName.fromTypeElement(typeElement); in membersInjectorNameForType()
DConfigurationAnnotations.java195 static ImmutableList<DeclaredType> enclosedBuilders(TypeElement typeElement, in enclosedBuilders() argument
198 for (TypeElement element : ElementFilter.typesIn(typeElement.getEnclosedElements())) { in enclosedBuilders()
DAbstractComponentWriter.java1148 private static String simpleVariableName(TypeElement typeElement) { in simpleVariableName() argument
1149 return UPPER_CAMEL.to(LOWER_CAMEL, typeElement.getSimpleName().toString()); in simpleVariableName()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/
DHelpers.java100 TypeElement typeElement) { in getImplementsMirror() argument
101 return getAnnotationMirror(types, elem, typeElement); in getImplementsMirror()
201 String getPackageOf(TypeElement typeElement) { in getPackageOf() argument
202 PackageElement name = typeElement == null ? null : elements.getPackageOf(typeElement); in getPackageOf()
206 String getBinaryName(TypeElement typeElement) { in getBinaryName() argument
207 Name name = typeElement == null ? null : elements.getBinaryName(typeElement); in getBinaryName()
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/stub/element/
DSmaliFieldElementType.java69 SmaliTypeElement typeElement = psi.getTypeElement(); in createStub() local
70 if (typeElement != null) { in createStub()
71 fieldSmaliTypeName = typeElement.getSmaliName(); in createStub()
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
DSmaliMethodParameter.java79 SmaliTypeElement typeElement = findChildByClass(SmaliTypeElement.class); in getTypeElement() local
80 assert typeElement != null; in getTypeElement()
81 return typeElement; in getTypeElement()
DSmaliField.java99 PsiTypeElement typeElement = getTypeElement(); in getType() local
100 if (typeElement == null) { in getType()
/external/parameter-framework/upstream/parameter/
DSubsystemObject.cpp84 const CTypeElement *typeElement = in toPlainInteger() local
88 return typeElement->toPlainInteger(sizeOptimizedData); in toPlainInteger()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DTypeWriter.java85 public void addImplementedType(TypeElement typeElement) { in addImplementedType() argument
86 implementedTypes.add(ClassName.fromTypeElement(typeElement)); in addImplementedType()
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/
DKeyTest.java68 TypeElement typeElement = in forInjectConstructorWithResolvedType() local
71 Iterables.getOnlyElement(ElementFilter.constructorsIn(typeElement.getEnclosedElements())); in forInjectConstructorWithResolvedType()
76 MoreTypes.equivalence().wrap(typeElement.asType()))); in forInjectConstructorWithResolvedType()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestBasic.java198 R2<DtdType, String> typeElement = Row.of(type, in checkDtds() local
201 foundAttributes.put(typeElement, "NONE"); in checkDtds()
205 foundAttributes.put(typeElement, attribute); in checkDtds()
225 R2<DtdType, String> typeElement = Row.of(type, name); in showFoundElements() local
227 theoryAttributes.put(typeElement, "NONE"); in showFoundElements()
230 theoryAttributes.put(typeElement, attribute.name); in showFoundElements()
241 R2<DtdType, String> typeElement = s.getKey(); in showFoundElements() local
243 DtdType type = typeElement.get0(); in showFoundElements()
244 String element = typeElement.get1(); in showFoundElements()
252 Set<String> usedAttributes = foundAttributes.get(typeElement); in showFoundElements()
/external/desugar/java/com/google/devtools/common/options/processor/
DOptionProcessor.java113 TypeElement typeElement = elementUtils.getTypeElement(typeName); in init() local
115 if (typeElement != null) { in init()
116 converterMapBuilder.put(typeElement.asType(), entry.getValue()); in init()