public class AnnotationParameter extends Object
AnnotationStrategy
interface, you add instances of this class to AnnotationDefinition
instances. The VDM generator uses this to
add parameters to annotations while generating Java code. NOTE: Only primitive types, String
, Enum
, and Class
are supported.Constructor and Description |
---|
AnnotationParameter(String name,
boolean value)
Creates an annotation parameter with a
boolean value. |
AnnotationParameter(String name,
byte value)
Creates an annotation parameter with a
byte value. |
AnnotationParameter(String name,
char value)
Creates an annotation parameter with a
char value. |
AnnotationParameter(String name,
Class<?> value)
Creates an annotation parameter with a
Class value. |
AnnotationParameter(String name,
double value)
Creates an annotation parameter with a
double value. |
AnnotationParameter(String name,
Enum<?> value)
Creates an annotation parameter with an
Enum value. |
AnnotationParameter(String name,
float value)
Creates an annotation parameter with a
float value. |
AnnotationParameter(String name,
int value)
Creates an annotation parameter with an
int value. |
AnnotationParameter(String name,
long value)
Creates an annotation parameter with a
long value. |
AnnotationParameter(String name,
short value)
Creates an annotation parameter with a
short value. |
AnnotationParameter(String name,
String value)
Creates an annotation parameter with a
String value. |
public AnnotationParameter(@Nonnull String name, @Nonnull Class<?> value)
Class
value.name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use
"value".value
- The value to use in the parameter of the annotation itself.public AnnotationParameter(@Nonnull String name, @Nonnull Enum<?> value)
Enum
value.name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use
"value".value
- The value to use in the parameter of the annotation itself.public AnnotationParameter(@Nonnull String name, @Nonnull String value)
String
value.name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use
"value".value
- The value to use in the parameter of the annotation itself.public AnnotationParameter(@Nonnull String name, char value)
char
value.name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use
"value".value
- The value to use in the parameter of the annotation itself.public AnnotationParameter(@Nonnull String name, byte value)
byte
value.name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use
"value".value
- The value to use in the parameter of the annotation itself.public AnnotationParameter(@Nonnull String name, boolean value)
boolean
value.name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use
"value".value
- The value to use in the parameter of the annotation itself.public AnnotationParameter(@Nonnull String name, double value)
double
value.name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use
"value".value
- The value to use in the parameter of the annotation itself.public AnnotationParameter(@Nonnull String name, float value)
float
value.name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use
"value".value
- The value to use in the parameter of the annotation itself.public AnnotationParameter(@Nonnull String name, long value)
long
value.name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use
"value".value
- The value to use in the parameter of the annotation itself.public AnnotationParameter(@Nonnull String name, int value)
int
value.name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use
"value".value
- The value to use in the parameter of the annotation itself.public AnnotationParameter(@Nonnull String name, short value)
short
value.name
- Name of the annotation parameter. For cases where you want to set the single default parameter, use
"value".value
- The value to use in the parameter of the annotation itself.Copyright © 2019 SAP SE. All rights reserved.