Package javax.lang.model.element

Examples of javax.lang.model.element.AnnotationMirror


  @SuppressWarnings("unchecked")
  @Override
  public void validate(ProcessingEnvironment procEnv,
      RoundEnvironment roundEnv, TypeElement annotationType,
      AnnotationMirror annotation, Element e) {
    AnnotationMirror steretypeAnnotation = AnnotationProcessingUtil
        .findAnnotationMirror(procEnv, e,
            "javax.enterprise.inject.Stereotype");

    if (!(e instanceof ExecutableElement) && steretypeAnnotation == null) {
      procEnv.getMessager()
View Full Code Here


  /**
   * Harvest the condition on the specified {@link Element} and and register
   * the corresponding configuration item(s) if necessary.
   */
  public void harvest(Element element) {
    AnnotationMirror annotation = ModelUtils.getConditionalOnPropertyAnnotation(element);
    if (annotation != null) {
      Map<String, Object> parameters = ModelUtils.parseAnnotationProperties(annotation);
      harvest(parameters);
    }
  }
View Full Code Here

   * Return the attributes of the {@code ConfigurationProperties} annotation. If
   * the attribute is not defined, it is not present at all even if that attribute
   * has a default value.
   */
  private Map<String, Object> getConfigurationParameters(Element typeElement) {
    AnnotationMirror annotation = ModelUtils.getConfigurationPropertiesAnnotation(typeElement);
    if (annotation != null) {
      return ModelUtils.parseAnnotationProperties(annotation);
    }
    throw new IllegalStateException("No @ConfigurationProperties found on '" + typeElement + "'");
  }
View Full Code Here

TOP

Related Classes of javax.lang.model.element.AnnotationMirror

Copyright © 2018 www.massapicom. 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.