public class ExplicitNullableTypeChecker extends Object
| Constructor and Description |
|---|
ExplicitNullableTypeChecker() |
| Modifier and Type | Method and Description |
|---|---|
String |
checkValueForAnnotatedElement(Object value,
AnnotatedElement annotatedElement)
Validates the given value for the given expected method return value
type.
|
static boolean |
isRequired(AnnotatedElement element)
Checks if the reflected element should be required (not nullable) in the
generated Typescript code based on annotations.
|
static boolean |
isRequired(List<com.github.javaparser.ast.expr.AnnotationExpr> annotations)
Checks if the parsed node should be required (not nullable) in the
generated Typescript code based on the list of annotations.
|
public static boolean isRequired(AnnotatedElement element)
element - an element to be requiredpublic static boolean isRequired(List<com.github.javaparser.ast.expr.AnnotationExpr> annotations)
annotations - a list of node annotations to checkpublic String checkValueForAnnotatedElement(Object value, AnnotatedElement annotatedElement)
value - the value to validateannotatedElement - the entity to be type checkedCopyright © 2000–2022 Vaadin Ltd. All rights reserved.