public static enum ConstrainedElement.ConstrainedElementKind extends Enum<ConstrainedElement.ConstrainedElementKind>
ConstrainedElement
. Can be used to determine an
element's type when traversing over a collection of constrained elements.Enum Constant and Description |
---|
CONSTRUCTOR |
FIELD |
GETTER |
METHOD |
PARAMETER |
TYPE |
Modifier and Type | Method and Description |
---|---|
boolean |
isExecutable() |
boolean |
isMethod() |
static ConstrainedElement.ConstrainedElementKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConstrainedElement.ConstrainedElementKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConstrainedElement.ConstrainedElementKind TYPE
public static final ConstrainedElement.ConstrainedElementKind FIELD
public static final ConstrainedElement.ConstrainedElementKind CONSTRUCTOR
public static final ConstrainedElement.ConstrainedElementKind METHOD
public static final ConstrainedElement.ConstrainedElementKind PARAMETER
public static final ConstrainedElement.ConstrainedElementKind GETTER
public static ConstrainedElement.ConstrainedElementKind[] values()
for (ConstrainedElement.ConstrainedElementKind c : ConstrainedElement.ConstrainedElementKind.values()) System.out.println(c);
public static ConstrainedElement.ConstrainedElementKind 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 nullpublic boolean isExecutable()
public boolean isMethod()
Copyright © 2007-2020 Red Hat, Inc. All Rights Reserved