Package io.micronaut.inject.visitor
Enum TypeElementVisitor.VisitorKind
- java.lang.Object
-
- java.lang.Enum<TypeElementVisitor.VisitorKind>
-
- io.micronaut.inject.visitor.TypeElementVisitor.VisitorKind
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypeElementVisitor.VisitorKind>
- Enclosing interface:
- TypeElementVisitor<C,E>
public static enum TypeElementVisitor.VisitorKind extends java.lang.Enum<TypeElementVisitor.VisitorKind>
Implementors of theTypeElementVisitorinterface should specify what kind of visitor it is. If the visitor looks at multipleElementand builds a file that references multipleElement(meaning it doesn't have an originating element) thenAGGREGATINGshould be used If the visitor generates classes from an originatingElementthenISOLATINGshould be used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AGGREGATINGA visitor that generates a one or more files in theTypeElementVisitor.finish(VisitorContext)method computed from visiting multipleElementinstances.ISOLATINGA visitor that generates a file for each visited element and calls.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypeElementVisitor.VisitorKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TypeElementVisitor.VisitorKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ISOLATING
public static final TypeElementVisitor.VisitorKind ISOLATING
A visitor that generates a file for each visited element and calls.
-
AGGREGATING
public static final TypeElementVisitor.VisitorKind AGGREGATING
A visitor that generates a one or more files in theTypeElementVisitor.finish(VisitorContext)method computed from visiting multipleElementinstances.
-
-
Method Detail
-
values
public static TypeElementVisitor.VisitorKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeElementVisitor.VisitorKind c : TypeElementVisitor.VisitorKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeElementVisitor.VisitorKind valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-