public static enum ConstraintLocation.ConstraintLocationKind extends Enum<ConstraintLocation.ConstraintLocationKind>
Enum Constant and Description |
---|
CONSTRUCTOR |
FIELD |
GETTER |
METHOD |
PARAMETER |
TYPE |
TYPE_USE |
Modifier and Type | Method and Description |
---|---|
ElementType |
getElementType() |
boolean |
isExecutable() |
boolean |
isMethod() |
static ConstraintLocation.ConstraintLocationKind |
of(ConstrainedElement.ConstrainedElementKind constrainedElementKind) |
static ConstraintLocation.ConstraintLocationKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConstraintLocation.ConstraintLocationKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConstraintLocation.ConstraintLocationKind TYPE
public static final ConstraintLocation.ConstraintLocationKind CONSTRUCTOR
public static final ConstraintLocation.ConstraintLocationKind METHOD
public static final ConstraintLocation.ConstraintLocationKind PARAMETER
public static final ConstraintLocation.ConstraintLocationKind FIELD
public static final ConstraintLocation.ConstraintLocationKind GETTER
public static final ConstraintLocation.ConstraintLocationKind TYPE_USE
public static ConstraintLocation.ConstraintLocationKind[] values()
for (ConstraintLocation.ConstraintLocationKind c : ConstraintLocation.ConstraintLocationKind.values()) System.out.println(c);
public static ConstraintLocation.ConstraintLocationKind 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 ElementType getElementType()
public boolean isExecutable()
public boolean isMethod()
public static ConstraintLocation.ConstraintLocationKind of(ConstrainedElement.ConstrainedElementKind constrainedElementKind)
Copyright © 2007-2020 Red Hat, Inc. All Rights Reserved