Home
last modified time | relevance | path

Searched refs:hasAnnotation (Results 1 – 25 of 72) sorted by relevance

123

/external/doclava/src/com/google/doclava/
DAndroidLinter.java76 boolean hasAnnotation = false; in lintMethod()
79 hasAnnotation = true; in lintMethod()
107 if (!hasAnnotation) { in lintMethod()
136 boolean hasAnnotation = false; in lintVariable()
139 hasAnnotation |= b.type().qualifiedNameMatches("android", "annotation.IntDef"); in lintVariable()
142 if (!hasAnnotation) { in lintVariable()
149 boolean hasAnnotation = false; in lintVariable()
151 hasAnnotation |= a.type().qualifiedNameMatches("android", "annotation.NonNull"); in lintVariable()
152 hasAnnotation |= a.type().qualifiedNameMatches("android", "annotation.Nullable"); in lintVariable()
154 if (!hasAnnotation) { in lintVariable()
/external/dagger2/java/dagger/hilt/processor/internal/
DComponents.java51 if (Processors.hasAnnotation(element, ClassNames.INSTALL_IN) in getComponents()
52 || Processors.hasAnnotation(element, ClassNames.TEST_INSTALL_IN)) { in getComponents()
61 && Processors.hasAnnotation(enclosing, ClassNames.MODULE) in getComponents()
92 Processors.hasAnnotation(element, ClassNames.INSTALL_IN) in getHiltInstallInComponents()
93 || Processors.hasAnnotation(element, ClassNames.TEST_INSTALL_IN)); in getHiltInstallInComponents()
97 Processors.hasAnnotation(element, ClassNames.INSTALL_IN) in getHiltInstallInComponents()
109 .filter(component -> !Processors.hasAnnotation(component, ClassNames.DEFINE_COMPONENT)) in getHiltInstallInComponents()
DProcessors.java447 public static boolean hasAnnotation(Element element, Class<? extends Annotation> annotation) {
452 public static boolean hasAnnotation(Element element, ClassName className) {
457 public static boolean hasAnnotation(AnnotationMirror mirror, ClassName className) {
458 return hasAnnotation(mirror.getAnnotationType().asElement(), className);
462 public static boolean hasAnnotation(
464 return hasAnnotation(mirror.getAnnotationType().asElement(), annotation);
771 .filter(annotation -> hasAnnotation(annotation, subAnnotation))
876 return hasAnnotation(method, ClassNames.BINDS)
877 || hasAnnotation(method, ClassNames.BINDS_OPTIONAL_OF)
878 || hasAnnotation(method, ClassNames.MULTIBINDS)
[all …]
/external/dagger2/java/dagger/hilt/processor/internal/root/
DRootType.java51 if (Processors.hasAnnotation(element, ClassNames.HILT_ANDROID_APP)) { in of()
53 } else if (Processors.hasAnnotation(element, ClassNames.HILT_ANDROID_TEST)) { in of()
55 } else if (Processors.hasAnnotation(element, ClassNames.INTERNAL_TEST_ROOT)) { in of()
DTestRootMetadata.java66 !Processors.hasAnnotation(element, ClassNames.ANDROID_ENTRY_POINT), in of()
71 Processors.hasAnnotation(element, ClassNames.HILT_ANDROID_TEST), in of()
/external/dagger2/java/dagger/hilt/android/processor/internal/customtestapplication/
DCustomTestApplicationMetadata.java55 Processors.hasAnnotation(element, ClassNames.CUSTOM_TEST_APPLICATION), in of()
83 !Processors.hasAnnotation(baseSuperclassElement, ClassNames.HILT_ANDROID_APP), in getBaseElement()
92 .filter(field -> Processors.hasAnnotation(field, ClassNames.INJECT)) in getBaseElement()
105 .filter(method -> Processors.hasAnnotation(method, ClassNames.INJECT)) in getBaseElement()
118 .filter(method -> Processors.hasAnnotation(method, ClassNames.INJECT)) in getBaseElement()
/external/dagger2/java/dagger/hilt/processor/internal/aggregateddeps/
DAggregatedDepsProcessor.java159 || Processors.hasAnnotation(module.getEnclosingElement(), ClassNames.HILT_ANDROID_TEST), in processModule()
188 if (Processors.hasAnnotation(module, ClassNames.TEST_INSTALL_IN)) { in processModule()
215 !Processors.hasAnnotation(replacedModule, ClassNames.INSTALL_IN)) in processModule()
295 !Processors.hasAnnotation(element, ClassNames.TEST_INSTALL_IN), in processEntryPoint()
348 .filter(annotation -> Processors.hasAnnotation(element, annotation)) in getAnnotation()
367 return Processors.hasAnnotation(topLevelType, ClassNames.HILT_ANDROID_TEST) in getOriginatingTestElement()
374 if (Processors.hasAnnotation(topLevelType, ClassNames.ORIGINATING_ELEMENT)) { in getOriginatingTopLevelType()
392 || Processors.hasAnnotation(element, ClassNames.DISABLE_INSTALL_IN_CHECK); in installInCheckDisabled()
400 if (!Processors.hasAnnotation(element, ClassNames.MODULE)) { in isDaggerGeneratedModule()
455 .filter(method -> Processors.hasAnnotation(method, ClassNames.PROVIDES))
DPkgPrivateMetadata.java73 if (Processors.hasAnnotation(element, ClassNames.INSTALL_IN)) { in of()
75 } else if (Processors.hasAnnotation(element, ClassNames.TEST_INSTALL_IN)) { in of()
/external/dagger2/java/dagger/hilt/android/processor/internal/uninstallmodules/
DUninstallModulesProcessor.java52 && Processors.hasAnnotation(element, ClassNames.HILT_ANDROID_TEST), in processEach()
67 !(Processors.hasAnnotation(module, ClassNames.MODULE) in processEach()
68 && Processors.hasAnnotation(module, ClassNames.INSTALL_IN))) in processEach()
/external/javassist/src/main/javassist/
DCtMember.java35 public boolean hasAnnotation(String clz) { return false; } in hasAnnotation() method in CtMember.Cache
230 public boolean hasAnnotation(Class<?> clz) { in hasAnnotation() method in CtMember
231 return hasAnnotation(clz.getName()); in hasAnnotation()
241 public abstract boolean hasAnnotation(String annotationTypeName); in hasAnnotation() method in CtMember
DCtClass.java593 public boolean hasAnnotation(Class<?> annotationType) { in hasAnnotation() method in CtClass
594 return hasAnnotation(annotationType.getName()); in hasAnnotation()
604 public boolean hasAnnotation(String annotationTypeName) { in hasAnnotation() method in CtClass
/external/dagger2/java/dagger/lint/
DDaggerKotlinIssueDetector.kt180 if (annotation.resolve()?.hasAnnotation(QUALIFIER_ANNOTATION) == true) { in <lambda>()
201 node.hasAnnotation(PROVIDES_ANNOTATION) && in <lambda>()
202 node.hasAnnotation(JVM_STATIC_ANNOTATION) in <lambda>()
224 if (node.hasAnnotation(MODULE_ANNOTATION) && node.isCompanionObject(context.evaluator)) { in <lambda>()
226 if (parent.hasAnnotation(MODULE_ANNOTATION)) { in <lambda>()
/external/dagger2/java/dagger/hilt/android/internal/testing/
DMarkThatRulesRanRule.java51 hasAnnotation(testInstance, HILT_ANDROID_TEST), in MarkThatRulesRanRule()
62 !hasAnnotation(context, HILT_ANDROID_APP), in MarkThatRulesRanRule()
128 private static boolean hasAnnotation(Object obj, String annotationName) {
/external/junit-params/src/main/java/junitparams/internal/annotation/
DFrameworkMethodAnnotations.java19 return hasAnnotation(Parameters.class) in isParametrised()
31 public boolean hasAnnotation(Class<? extends Annotation> annotation) { in hasAnnotation() method in FrameworkMethodAnnotations
/external/dagger2/java/dagger/hilt/android/processor/internal/viewmodel/
DViewModelMetadata.kt64 !Processors.hasAnnotation(constructor, ClassNames.ASSISTED_INJECT), in <lambda>()
68 Processors.hasAnnotation(constructor, ClassNames.INJECT) in <lambda>()
DViewModelValidationPlugin.kt25 import dagger.hilt.processor.internal.Processors.hasAnnotation in <lambda>()
73 hasAnnotation(asElement(target.key().type()), AndroidClassNames.HILT_VIEW_MODEL) in <lambda>()
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/
DAndroidEntryPointMetadata.java101 return Processors.hasAnnotation(element(), AndroidClassNames.OPTIONAL_INJECT); in allowsOptionalInjection()
447 if (Processors.hasAnnotation(element, AndroidClassNames.HILT_ANDROID_APP)) { in of()
480 Processors.hasAnnotation(element, AndroidClassNames.WITH_FRAGMENT_BINDINGS); in forAndroidEntryPoint()
501 || !Processors.hasAnnotation(element, AndroidClassNames.OPTIONAL_INJECT), in checkConsistentAnnotations()
510 boolean isAnnotated = Processors.hasAnnotation(element, annotationName); in checkAnnotationsMatch()
511 boolean isBaseAnnotated = Processors.hasAnnotation(baseElement, annotationName); in checkAnnotationsMatch()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserClassDeclarationTest.java876 assertTrue(ca.hasAnnotation("foo.bar.MyAnnotation")); in testHasAnnotation()
877 assertFalse(ca.hasAnnotation("foo.bar.MyAnnotation2")); in testHasAnnotation()
878 assertFalse(ca.hasAnnotation("MyAnnotation")); in testHasAnnotation()
879 assertFalse(ca.hasAnnotation("foo.bar.MyUnexistingAnnotation")); in testHasAnnotation()
882 assertTrue(cb.hasAnnotation("foo.bar.MyAnnotation")); in testHasAnnotation()
883 assertTrue(cb.hasAnnotation("foo.bar.MyAnnotation2")); in testHasAnnotation()
884 assertFalse(cb.hasAnnotation("MyAnnotation")); in testHasAnnotation()
885 assertFalse(cb.hasAnnotation("foo.bar.MyUnexistingAnnotation")); in testHasAnnotation()
/external/dagger2/java/dagger/hilt/processor/internal/definecomponent/
DDefineComponentBuilderMetadatas.java65 Processors.hasAnnotation(element, ClassNames.DEFINE_COMPONENT_BUILDER), in getUncached()
123 && Processors.hasAnnotation( in getUncached()
DDefineComponentMetadatas.java80 Processors.hasAnnotation(element, ClassNames.DEFINE_COMPONENT), in getUncached()
155 || Processors.hasAnnotation(parent, ClassNames.DEFINE_COMPONENT), in getUncached()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/
DPOJOPropertiesCollectorTest.java479 assertTrue(prop.getGetter().hasAnnotation(A.class)); in testDuplicateGetters()
480 assertTrue(prop.getGetter().hasAnnotation(B.class)); in testDuplicateGetters()
491 assertTrue(prop._getters.value.hasAnnotation(A.class)); in testDuplicateGettersCreator()
493 assertTrue(prop._getters.next.value.hasAnnotation(A.class)); in testDuplicateGettersCreator()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/
DAnnotated.java19 public abstract boolean hasAnnotation(Class<?> acls); in hasAnnotation() method in Annotated
/external/protobuf/php/src/Google/Protobuf/Internal/
DGeneratedCodeInfo.php76 public function hasAnnotation() function in Google\\Protobuf\\Internal\\GeneratedCodeInfo
/external/dagger2/java/dagger/hilt/processor/internal/disableinstallincheck/
DDisableInstallInCheckProcessor.java44 Processors.hasAnnotation(element, ClassNames.MODULE), in processEach()
/external/dagger2/java/dagger/hilt/processor/internal/aliasof/
DAliasOfProcessor.java46 Processors.hasAnnotation(element, ClassNames.SCOPE), in processEach()

123