public static enum TypeElementVisitor.VisitorKind extends Enum<TypeElementVisitor.VisitorKind>
TypeElementVisitor
interface should specify what kind of visitor it is.
If the visitor looks at multiple Element
and builds a file that references
multiple Element
(meaning it doesn't have an originating element) then
AGGREGATING
should be used
If the visitor generates classes from an originating Element
then ISOLATING
should be used.Enum Constant and Description |
---|
AGGREGATING
A visitor that generates a one or more files in the
TypeElementVisitor.finish(VisitorContext) method computed from visiting multiple Element instances. |
ISOLATING
A visitor that generates a file for each visited element and calls.
|
Modifier and Type | Method and Description |
---|---|
static TypeElementVisitor.VisitorKind |
valueOf(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.
|
public static final TypeElementVisitor.VisitorKind ISOLATING
public static final TypeElementVisitor.VisitorKind AGGREGATING
TypeElementVisitor.finish(VisitorContext)
method computed from visiting multiple Element
instances.public static TypeElementVisitor.VisitorKind[] values()
for (TypeElementVisitor.VisitorKind c : TypeElementVisitor.VisitorKind.values()) System.out.println(c);
public static TypeElementVisitor.VisitorKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null