Package org.mapstruct.ap.internal.util
Class RoundContext
- java.lang.Object
-
- org.mapstruct.ap.internal.util.RoundContext
-
public class RoundContext extends java.lang.ObjectKeeps contextual data in the scope of one annotation processing round.
-
-
Field Summary
Fields Modifier and Type Field Description private AnnotationProcessorContextannotationProcessorContextprivate java.util.Set<javax.lang.model.type.TypeMirror>clearedTypes
-
Constructor Summary
Constructors Constructor Description RoundContext(AnnotationProcessorContext annotationProcessorContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTypeReadyForProcessing(javax.lang.model.type.TypeMirror type)Marks the given type as being ready for further processing.AnnotationProcessorContextgetAnnotationProcessorContext()booleanisReadyForProcessing(javax.lang.model.type.TypeMirror type)Whether the given type has been found to be ready for further processing or not.
-
-
-
Field Detail
-
annotationProcessorContext
private final AnnotationProcessorContext annotationProcessorContext
-
clearedTypes
private final java.util.Set<javax.lang.model.type.TypeMirror> clearedTypes
-
-
Constructor Detail
-
RoundContext
public RoundContext(AnnotationProcessorContext annotationProcessorContext)
-
-
Method Detail
-
getAnnotationProcessorContext
public AnnotationProcessorContext getAnnotationProcessorContext()
-
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
-
-