@Beta public class AnnotationDefinition extends Object
AnnotationStrategy
interface, you have to construct instances of these classes. The VDM generator uses this to apply annotations to the
generated Java code.Constructor and Description |
---|
AnnotationDefinition(Class<? extends Annotation> annotationClass)
Create a plain annotation definition with no annotation parameters.
|
AnnotationDefinition(Class<? extends Annotation> annotationClass,
AnnotationParameter... parameters)
Create an annotation definition with the provided annotation parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationParameter(AnnotationParameter parameter)
Adds the provided annotation parameter to the set of parameters in this instance.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Class<? extends Annotation> |
getAnnotationClass() |
List<AnnotationParameter> |
getAnnotationParameters() |
int |
hashCode() |
public AnnotationDefinition(@Nonnull Class<? extends Annotation> annotationClass)
annotationClass
- Reference to the annotation class itself.public AnnotationDefinition(@Nonnull Class<? extends Annotation> annotationClass, @Nonnull AnnotationParameter... parameters)
annotationClass
- Reference to the annotation class itself.parameters
- A set of parameters that the VDM generator should apply to this annotation.public void addAnnotationParameter(@Nonnull AnnotationParameter parameter)
parameter
- The additional parameter that the VDM generator should apply to this annotation.protected boolean canEqual(Object other)
public Class<? extends Annotation> getAnnotationClass()
public List<AnnotationParameter> getAnnotationParameters()
Copyright © 2020 SAP SE. All rights reserved.