Package org.jboss.jdeparser
Interface JAnnotation
- All Known Implementing Classes:
ImplJAnnotation
public interface JAnnotation
An annotation.
-
Method Summary
Modifier and TypeMethodDescriptionannotationArrayValue
(Class<? extends Annotation> type) Set the "value" property of this annotation to an array of nested annotations of the given type.annotationArrayValue
(String type) Set the "value" property of this annotation to an array of nested annotations of the given type.annotationArrayValue
(String name, Class<? extends Annotation> type) Set the named property of this annotation to an array of nested annotations of the given type.annotationArrayValue
(String name, String type) Set the named property of this annotation to an array of nested annotations of the given type.annotationArrayValue
(String name, JType type) Set the named property of this annotation to an array of nested annotations of the given type.annotationArrayValue
(JType type) Set the "value" property of this annotation to an array of nested annotations of the given type.annotationValue
(Class<? extends Annotation> type) Set the "value" property of this annotation to a nested annotation of the given type.annotationValue
(String type) Set the "value" property of this annotation to a nested annotation of the given type.annotationValue
(String name, Class<? extends Annotation> type) Set the named property of this annotation to a nested annotation of the given type.annotationValue
(String name, String type) Set the named property of this annotation to a nested annotation of the given type.annotationValue
(String name, JType type) Set the named property of this annotation to a nested annotation of the given type.annotationValue
(JType type) Set the "value" property of this annotation to a nested annotation of the given type.Set the "value" property of this annotation to a string.Set the named property of this annotation to a string.Set the named property of this annotation.Set the "value" property of this annotation.
-
Method Details
-
value
Set the "value" property of this annotation. To set an array of values, seeJExprs.array(JExpr...)
.- Parameters:
expr
- the annotation value- Returns:
- this annotation
-
value
Set the "value" property of this annotation to a string.- Parameters:
literal
- the annotation value string- Returns:
- this annotation
-
annotationValue
Set the "value" property of this annotation to a nested annotation of the given type.- Parameters:
type
- the annotation type- Returns:
- the nested annotation
-
annotationValue
Set the "value" property of this annotation to a nested annotation of the given type.- Parameters:
type
- the annotation type- Returns:
- the nested annotation
-
annotationValue
Set the "value" property of this annotation to a nested annotation of the given type.- Parameters:
type
- the annotation type- Returns:
- the nested annotation
-
annotationArrayValue
Set the "value" property of this annotation to an array of nested annotations of the given type.- Parameters:
type
- the annotation array element type- Returns:
- the nested annotation
-
annotationArrayValue
Set the "value" property of this annotation to an array of nested annotations of the given type.- Parameters:
type
- the annotation array element type- Returns:
- the nested annotation
-
annotationArrayValue
Set the "value" property of this annotation to an array of nested annotations of the given type.- Parameters:
type
- the annotation array element type- Returns:
- the nested annotation
-
value
Set the named property of this annotation. To set an array of values, seeJExprs.array(JExpr...)
.- Parameters:
name
- the annotation property nameexpr
- the annotation value- Returns:
- this annotation
-
value
Set the named property of this annotation to a string.- Parameters:
name
- the annotation property nameliteral
- the annotation value string- Returns:
- this annotation
-
annotationValue
Set the named property of this annotation to a nested annotation of the given type.- Parameters:
type
- the annotation type- Returns:
- the nested annotation
-
annotationValue
Set the named property of this annotation to a nested annotation of the given type.- Parameters:
type
- the annotation type- Returns:
- the nested annotation
-
annotationValue
Set the named property of this annotation to a nested annotation of the given type.- Parameters:
type
- the annotation type- Returns:
- the nested annotation
-
annotationArrayValue
Set the named property of this annotation to an array of nested annotations of the given type.- Parameters:
type
- the annotation array element type- Returns:
- the nested annotation
-
annotationArrayValue
Set the named property of this annotation to an array of nested annotations of the given type.- Parameters:
type
- the annotation array element type- Returns:
- the nested annotation
-
annotationArrayValue
Set the named property of this annotation to an array of nested annotations of the given type.- Parameters:
type
- the annotation array element type- Returns:
- the nested annotation
-