Package org.jboss.jdeparser
Interface JAnnotation
-
- All Known Implementing Classes:
ImplJAnnotation
public interface JAnnotationAn annotation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JAnnotationArrayannotationArrayValue(java.lang.Class<? extends java.lang.annotation.Annotation> type)Set the "value" property of this annotation to an array of nested annotations of the given type.JAnnotationArrayannotationArrayValue(java.lang.String type)Set the "value" property of this annotation to an array of nested annotations of the given type.JAnnotationArrayannotationArrayValue(java.lang.String name, java.lang.Class<? extends java.lang.annotation.Annotation> type)Set the named property of this annotation to an array of nested annotations of the given type.JAnnotationArrayannotationArrayValue(java.lang.String name, java.lang.String type)Set the named property of this annotation to an array of nested annotations of the given type.JAnnotationArrayannotationArrayValue(java.lang.String name, JType type)Set the named property of this annotation to an array of nested annotations of the given type.JAnnotationArrayannotationArrayValue(JType type)Set the "value" property of this annotation to an array of nested annotations of the given type.JAnnotationannotationValue(java.lang.Class<? extends java.lang.annotation.Annotation> type)Set the "value" property of this annotation to a nested annotation of the given type.JAnnotationannotationValue(java.lang.String type)Set the "value" property of this annotation to a nested annotation of the given type.JAnnotationannotationValue(java.lang.String name, java.lang.Class<? extends java.lang.annotation.Annotation> type)Set the named property of this annotation to a nested annotation of the given type.JAnnotationannotationValue(java.lang.String name, java.lang.String type)Set the named property of this annotation to a nested annotation of the given type.JAnnotationannotationValue(java.lang.String name, JType type)Set the named property of this annotation to a nested annotation of the given type.JAnnotationannotationValue(JType type)Set the "value" property of this annotation to a nested annotation of the given type.JAnnotationvalue(java.lang.String literal)Set the "value" property of this annotation to a string.JAnnotationvalue(java.lang.String name, java.lang.String literal)Set the named property of this annotation to a string.JAnnotationvalue(java.lang.String name, JExpr expr)Set the named property of this annotation.JAnnotationvalue(JExpr expr)Set the "value" property of this annotation.
-
-
-
Method Detail
-
value
JAnnotation value(JExpr expr)
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
JAnnotation value(java.lang.String literal)
Set the "value" property of this annotation to a string.- Parameters:
literal- the annotation value string- Returns:
- this annotation
-
annotationValue
JAnnotation annotationValue(java.lang.String type)
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
JAnnotation annotationValue(JType type)
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
JAnnotation annotationValue(java.lang.Class<? extends java.lang.annotation.Annotation> type)
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
JAnnotationArray annotationArrayValue(java.lang.String type)
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
JAnnotationArray annotationArrayValue(JType type)
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
JAnnotationArray annotationArrayValue(java.lang.Class<? extends java.lang.annotation.Annotation> type)
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
JAnnotation value(java.lang.String name, JExpr expr)
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
JAnnotation value(java.lang.String name, java.lang.String literal)
Set the named property of this annotation to a string.- Parameters:
name- the annotation property nameliteral- the annotation value string- Returns:
- this annotation
-
annotationValue
JAnnotation annotationValue(java.lang.String name, java.lang.String type)
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
JAnnotation annotationValue(java.lang.String name, JType type)
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
JAnnotation annotationValue(java.lang.String name, java.lang.Class<? extends java.lang.annotation.Annotation> type)
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
JAnnotationArray annotationArrayValue(java.lang.String name, java.lang.String type)
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
JAnnotationArray annotationArrayValue(java.lang.String name, JType type)
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
JAnnotationArray annotationArrayValue(java.lang.String name, java.lang.Class<? extends java.lang.annotation.Annotation> type)
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
-
-