public enum VariableAnnotations extends Enum<VariableAnnotations>
| Enum Constant and Description |
|---|
PATH_VARIABLE |
REQUEST_BODY |
REQUEST_PARAM |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isOptional(AnnotationMirror annotationMirror) |
static boolean |
isOptionalByAnnotation(VariableElement variableElement) |
static VariableAnnotations |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VariableAnnotations[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VariableAnnotations PATH_VARIABLE
public static final VariableAnnotations REQUEST_PARAM
public static final VariableAnnotations REQUEST_BODY
public static VariableAnnotations[] values()
for (VariableAnnotations c : VariableAnnotations.values()) System.out.println(c);
public static VariableAnnotations 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 static boolean isOptionalByAnnotation(VariableElement variableElement)
public static boolean isOptional(AnnotationMirror annotationMirror)
Copyright © 2016–2018. All rights reserved.