Class RoundContext


  • public class RoundContext
    extends java.lang.Object
    Keeps contextual data in the scope of one annotation processing round.
    • Field Detail

      • clearedTypes

        private final java.util.Set<javax.lang.model.type.TypeMirror> clearedTypes
    • Method Detail

      • addTypeReadyForProcessing

        public void addTypeReadyForProcessing​(javax.lang.model.type.TypeMirror type)
        Marks the given type as being ready for further processing.
        Parameters:
        type - the type that is ready for further processing by MapStruct
      • isReadyForProcessing

        public boolean isReadyForProcessing​(javax.lang.model.type.TypeMirror type)
        Whether the given type has been found to be ready for further processing or not. This is the case if the type's hierarchy is complete (no super-types need to be generated by other processors) and no processors have signaled the intention to amend the given type.
        Parameters:
        type - the typed to be checked for its readiness
        Returns:
        true when the type is ready to be processed by MapStruct
        See Also:
        AstModifyingAnnotationProcessor