javax.annotation.processing

Interface RoundEnvironment

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean errorRaised()
      Returns true if an error was raised in the prior round of processing; returns false otherwise.
      Set<? extends Element> getElementsAnnotatedWith(Class<? extends Annotation> a)
      Returns the elements annotated with the given annotation type.
      Set<? extends Element> getElementsAnnotatedWith(TypeElement a)
      Returns the elements annotated with the given annotation type.
      Set<? extends Element> getRootElements()
      Returns the root elements for annotation processing generated by the prior round.
      boolean processingOver()
      Returns true if types generated by this round will not be subject to a subsequent round of annotation processing; returns false otherwise.

        

    • Method Detail

      • processingOver

        boolean processingOver()
        Returns true if types generated by this round will not be subject to a subsequent round of annotation processing; returns false otherwise.
        Returns:
        true if types generated by this round will not be subject to a subsequent round of annotation processing; returns false otherwise
      • errorRaised

        boolean errorRaised()
        Returns true if an error was raised in the prior round of processing; returns false otherwise.
        Returns:
        true if an error was raised in the prior round of processing; returns false otherwise
      • getRootElements

        Set<? extends Element> getRootElements()
        Returns the root elements for annotation processing generated by the prior round.
        Returns:
        the root elements for annotation processing generated by the prior round, or an empty set if there were none
      • getElementsAnnotatedWith

        Set<? extends Element> getElementsAnnotatedWith(TypeElement a)
        Returns the elements annotated with the given annotation type. The annotation may appear directly or be inherited. Only package elements and type elements included in this round of annotation processing, or declarations of members, constructors, parameters, or type parameters declared within those, are returned. Included type elements are root types and any member types nested within them. Elements in a package are not considered included simply because a package-info file for that package was created.
        Parameters:
        a - annotation type being requested
        Returns:
        the elements annotated with the given annotation type, or an empty set if there are none
        Throws:
        IllegalArgumentException - if the argument does not represent an annotation type
      • getElementsAnnotatedWith

        Set<? extends Element> getElementsAnnotatedWith(Class<? extends Annotation> a)
        Returns the elements annotated with the given annotation type. The annotation may appear directly or be inherited. Only package elements and type elements included in this round of annotation processing, or declarations of members, constructors, parameters, or type parameters declared within those, are returned. Included type elements are root types and any member types nested within them. Elements in a package are not considered included simply because a package-info file for that package was created.
        Parameters:
        a - annotation type being requested
        Returns:
        the elements annotated with the given annotation type, or an empty set if there are none
        Throws:
        IllegalArgumentException - if the argument does not represent an annotation type

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 11/06/2005, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/annotation/processing/RoundEnvironment.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut