Examples of annotationType()


Examples of booton.translator.annotation.PrimitiveMarker.annotationType()

        assert annotation instanceof Annotation;
        assert annotation instanceof PrimitiveMarker;
        assert annotation.intValue() == 5;
        assert annotation.booleanValue();
        assert annotation.longValue() == 10;
        assert annotation.annotationType() == PrimitiveMarker.class;

        assert annotation == Annotated.class.getAnnotation(PrimitiveMarker.class);
    }

    @Test
View Full Code Here

Examples of com.carrotsearch.junitbenchmarks.BenchmarkOptions.annotationType()

           
            if (!hit) {
                BenchmarkOptions opts = getDefaultBenchmarkOptions(rounds);
                modifiedAnnotations.add(opts);
                log.debug("Added BenchmarkOptions {} with annotation type {} to {}",
                        new Object[] { opts, opts.annotationType(), mname });
            }
           
            Description roundsAdjustedDesc =
                    Description.createTestDescription(
                            clazz, mname,
View Full Code Here

Examples of com.netflix.governator.guice.annotations.Bootstrap.annotationType()

                              .asEagerSingleton();
                        added = true;
                      }
                      // This is a bootstrap module
                      if (!bootstrap.bootstrap().equals(Bootstrap.NullBootstrapModule.class)) {
                        Preconditions.checkState(added==false, bootstrap.annotationType().getName() + " already added as a LifecycleInjectorBuilderSuite");
                        added = true;
                            LOG.info("Adding BootstrapModule {}", bootstrap.bootstrap());
                          bootstrapModules
                              .addBinding()
                              .to(bootstrap.bootstrap())
View Full Code Here

Examples of com.netflix.governator.guice.annotations.Bootstrap.annotationType()

                          // Make this annotation injectable into any plain Module
                          builder.withAdditionalBootstrapModules(forAnnotation(annot));
                      }
                      // This is a plain guice module
                      if (!bootstrap.module().equals(Bootstrap.NullModule.class)) {
                        Preconditions.checkState(added==false, bootstrap.annotationType().getName() + " already added as a BootstrapModule");
                        added = true;
                            LOG.info("Adding Module {}", bootstrap.bootstrap());
                          builder.withAdditionalModuleClasses(bootstrap.module());
                          // Make the annotation injectable into the module
                          builder.withAdditionalBootstrapModules(forAnnotation(annot));
View Full Code Here

Examples of com.sun.javadoc.AnnotationDesc.annotationType()

   */
  private void checkAnnotations(Doc doc, AnnotationDesc[] annotations) {
    for (int i=0; i < annotations.length; i++) {
      AnnotationDesc annotationDesc = annotations[i];
      boolean isDocumented = false;
      for (AnnotationDesc a : annotationDesc.annotationType().annotations()) {
        if (java.lang.annotation.Documented.class.getName().equals(a.annotationType().qualifiedName())) {
          isDocumented = true;
        }
      }
      checkReference(doc, annotations[i], isDocumented ? WARNING_ANNOTATION : WARNING_PRIVATE_ANNOTATION);
View Full Code Here

Examples of cpw.mods.fml.relauncher.SideOnly.annotationType()

                    call = new FECallable(m, obj);
                }

                for (Annotation annot : m.getAnnotations())
                {
                    String name = annot.annotationType().getName();
                    callables.put(name, call);
                }
            }
        }
        catch (Throwable e)
View Full Code Here

Examples of java.lang.annotation.Annotation.annotationType()

        }
        WebParam webParam = null;
        for (int i = 0; i < annotations[parameter].length; i++)
        {
            Annotation annotation = annotations[parameter][i];
            if (annotation.annotationType().equals(WebParam.class))
            {
                webParam = (WebParam) annotations[parameter][i];
                break;
            }
        }
View Full Code Here

Examples of java.lang.annotation.Annotation.annotationType()

        Annotation[] annotations = m.getParameterAnnotations()[index];

        for (int i = 0; i < annotations.length; i++)
        {
            Annotation annotation = annotations[i];
            if (annotation.annotationType().equals(XmlParamType.class))
            {
                return (XmlParamType) annotations[i];
            }
        }
View Full Code Here

Examples of java.lang.annotation.Annotation.annotationType()

        else
        {
            for (int i = 0; i < annotations[parameter].length; i++)
            {
                Annotation annotation = annotations[parameter][i];
                if (annotation.annotationType().equals(WebParam.class))
                {
                    return true;
                }
            }
            return false;
View Full Code Here

Examples of java.lang.annotation.Annotation.annotationType()

      fail("Instance constructor is missing FooAnnotation.");
    }

    // check for parameter annotation
    Annotation paramAnnotation = ctor.getParameterAnnotations()[0][0];
    assertEquals(paramAnnotation.annotationType(), BarAnnotation.class);
  }
}
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.