Class ScalaInheritedPropertyMutationVisitor
java.lang.Object
io.micronaut.scala.processing.test.ScalaInheritedPropertyMutationVisitor
- All Implemented Interfaces:
io.micronaut.core.order.Ordered, io.micronaut.core.util.Toggleable, io.micronaut.inject.visitor.TypeElementVisitor<Object,Object>
public final class ScalaInheritedPropertyMutationVisitor
extends Object
implements io.micronaut.inject.visitor.TypeElementVisitor<Object,Object>
Annotates the properties a type names in its own
@IgnoreProps, the way
micronaut-serialization does for @JsonIgnoreProperties, and records once every type
was visited which properties and fields carry the annotation when read through each type.
The Scala counterpart of the two visitors in Core's InheritedPropertyAnnotationMutationSpec.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classWhat one compilation recorded, by type name.Nested classes/interfaces inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
io.micronaut.inject.visitor.TypeElementVisitor.VisitorKind -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe annotation naming the properties to annotate.static final StringThe annotation added to the named properties.Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish(io.micronaut.inject.visitor.VisitorContext visitorContext) Executes a compilation with this visitor enabled.voidvisitClass(io.micronaut.inject.ast.ClassElement element, io.micronaut.inject.visitor.VisitorContext context) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.order.Ordered
getOrderMethods inherited from interface io.micronaut.core.util.Toggleable
isEnabledMethods inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
getClassType, getElementType, getSupportedAnnotationNames, getSupportedOptions, getVisitorKind, query, start, visitConstructor, visitEnumConstant, visitField, visitMethod
-
Field Details
-
IGNORE_PROPS
-
IGNORED
-
-
Constructor Details
-
ScalaInheritedPropertyMutationVisitor
public ScalaInheritedPropertyMutationVisitor()
-
-
Method Details
-
record
Executes a compilation with this visitor enabled.- Parameters:
compilation- The compilation- Returns:
- The recording
-
visitClass
-
finish
-