Package org.mapstruct.ap.internal.util
Class RoundContext
- java.lang.Object
-
- org.mapstruct.ap.internal.util.RoundContext
-
public class RoundContext extends Object
Keeps contextual data in the scope of one annotation processing round.- Author:
- Gunnar Morling
-
-
Constructor Summary
Constructors Constructor Description RoundContext(AnnotationProcessorContext annotationProcessorContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTypeReadyForProcessing(TypeMirror type)
Marks the given type as being ready for further processing.AnnotationProcessorContext
getAnnotationProcessorContext()
boolean
isReadyForProcessing(TypeMirror type)
Whether the given type has been found to be ready for further processing or not.
-
-
-
Constructor Detail
-
RoundContext
public RoundContext(AnnotationProcessorContext annotationProcessorContext)
-
-
Method Detail
-
getAnnotationProcessorContext
public AnnotationProcessorContext getAnnotationProcessorContext()
-
addTypeReadyForProcessing
public void addTypeReadyForProcessing(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(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
-
-