Examples of findAnnotation()


Examples of com.intellij.psi.PsiModifierList.findAnnotation()

  @Override
  public void invoke(@NotNull Project project, Editor editor, PsiFile file) throws IncorrectOperationException {
    final PsiModifierList modifierList = myModifierListOwner.getModifierList();
    LOG.assertTrue(modifierList != null);
    if (modifierList.findAnnotation(myAnnotation) != null) {
      return;
    }

    final PsiFile containingFile = myModifierListOwner.getContainingFile();
    if (!CodeInsightUtilBase.preparePsiElementForWrite(containingFile)) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.TypeReference.findAnnotation()

        if (nullTagBits == 0L) {
          nullTagBits |= superNullTagBits;
        } else if (superNullTagBits != nullTagBits) {
          // not finding either bound or ann should be considered a compiler bug
          TypeReference bound = findBound(this.firstBound, parameter);
          Annotation ann = bound.findAnnotation(superNullTagBits);
          scope.problemReporter().contradictoryNullAnnotationsOnBounds(ann, nullTagBits);
          this.tagBits &= ~TagBits.AnnotationNullMASK;
        }
      }
    } 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.TypeReference.findAnnotation()

          if (nullTagBits == 0L) {
            nullTagBits |= superNullTagBits;
          } else if (superNullTagBits != nullTagBits) {
            // not finding either bound or ann should be considered a compiler bug
            TypeReference bound = findBound(this.firstBound, parameter);
            Annotation ann = bound.findAnnotation(superNullTagBits);
            scope.problemReporter().contradictoryNullAnnotationsOnBounds(ann, nullTagBits);
            this.tagBits &= ~TagBits.AnnotationNullMASK;
          }
        }
        interfaces[i] = resolveType;
View Full Code Here

Examples of org.springframework.data.mapping.PersistentProperty.findAnnotation()

        if (!isOfFileReferenceType(persistentProperty)) {
            return emptyList();
        }

        Annotation annotation = persistentProperty.findAnnotation(FileReference.class);

        FileReference fileReference = (FileReference) annotation;

        if (isEmpty(fileReference.baseDirectory())) {
            if (lightAdminConfiguration.getFileStorageDirectory() != null) {
View Full Code Here

Examples of org.springframework.data.mapping.context.SamplePersistentProperty.findAnnotation()

    Map<Class<? extends Annotation>, Annotation> cache = getAnnotationCache(property);
    assertThat(cache.containsKey(MyAnnotationAsMeta.class), is(true));
    assertThat(cache.containsKey(MyAnnotation.class), is(false));

    // Assert meta annotation is found and cached
    MyAnnotation annotation = property.findAnnotation(MyAnnotation.class);
    assertThat(annotation, is(notNullValue()));
    assertThat(cache.containsKey(MyAnnotation.class), is(true));
  }

  /**
 
View Full Code Here

Examples of org.testng.internal.annotations.IAnnotationFinder.findAnnotation()

    Map<String, XmlSuite> suites = new HashMap<String, XmlSuite>();
    IAnnotationFinder finder = getAnnotationFinder();
   
    for (int i = 0; i < classes.length; i++) {
      Class c = classes[i];
      ITest test = (ITest) finder.findAnnotation(c, ITest.class);
      String suiteName = getDefaultSuiteName();
      String testName = getDefaultTestName();
      if (test != null) {
        final String candidateSuiteName = test.getSuiteName();
        if (candidateSuiteName != null && !"".equals(candidateSuiteName)) {
View Full Code Here

Examples of org.testng.internal.annotations.IAnnotationFinder.findAnnotation()

    Map<String, XmlSuite> suites = new HashMap<String, XmlSuite>();
    IAnnotationFinder finder = getAnnotationFinder();
   
    for (int i = 0; i < classes.length; i++) {
      Class c = classes[i];
      ITest test = (ITest) finder.findAnnotation(c, ITest.class);
      String suiteName = getDefaultSuiteName();
      String testName = getDefaultTestName();
      if (test != null) {
        final String candidateSuiteName = test.getSuiteName();
        if (candidateSuiteName != null && !"".equals(candidateSuiteName)) {
View Full Code Here

Examples of org.testng.internal.annotations.IAnnotationFinder.findAnnotation()

    Class<? extends ITestNGListenerFactory> listenerFactoryClass = null;

    for (IClass cls : getTestClasses()) {
      IAnnotationFinder finder = m_annotationFinder;
      Class<? extends ITestNGListenerFactory> realClass = cls.getRealClass();
      IListeners l = (IListeners) finder.findAnnotation(realClass, IListeners.class);
      if (ITestNGListenerFactory.class.isAssignableFrom(realClass)) {
        if (listenerFactoryClass == null) {
          listenerFactoryClass = realClass;
        }
        else {
View Full Code Here

Examples of org.testng.internal.annotations.IAnnotationFinder.findAnnotation()

    Map<String, XmlSuite> suites = Maps.newHashMap();
    IAnnotationFinder finder = getAnnotationFinder();
   
    for (int i = 0; i < classes.length; i++) {
      Class c = classes[i];
      ITestAnnotation test = (ITestAnnotation) finder.findAnnotation(c, ITestAnnotation.class);
      String suiteName = getDefaultSuiteName();
      String testName = getDefaultTestName();
      if (test != null) {
        final String candidateSuiteName = test.getSuiteName();
        if (candidateSuiteName != null && !"".equals(candidateSuiteName)) {
View Full Code Here

Examples of org.testng.internal.annotations.IAnnotationFinder.findAnnotation()

      Class<? extends ITestNGListenerFactory> listenerFactoryClass = null;

      for (IClass cls : tr.getTestClasses()) {
        IAnnotationFinder finder = m_configuration.getAnnotationFinder();
        Class<? extends ITestNGListenerFactory> realClass = cls.getRealClass();
        IListeners l = (IListeners) finder.findAnnotation(realClass, IListeners.class);
        if (ITestNGListenerFactory.class.isAssignableFrom(realClass)) {
          if (listenerFactoryClass == null) {
            listenerFactoryClass = realClass;
          }
          else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.