Package org.jboss.jdeparser
Class ImplJAnnotation
java.lang.Object
org.jboss.jdeparser.ImplJAnnotation
- All Implemented Interfaces:
JAnnotation
,Writable
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.void
write
(SourceFileWriter writer)
-
Field Details
-
type
-
properties
-
-
Constructor Details
-
ImplJAnnotation
ImplJAnnotation(JType type)
-
-
Method Details
-
value
Description copied from interface:JAnnotation
Set the "value" property of this annotation. To set an array of values, seeJExprs.array(JExpr...)
.- Specified by:
value
in interfaceJAnnotation
- Parameters:
expr
- the annotation value- Returns:
- this annotation
-
value
Description copied from interface:JAnnotation
Set the "value" property of this annotation to a string.- Specified by:
value
in interfaceJAnnotation
- Parameters:
literal
- the annotation value string- Returns:
- this annotation
-
annotationValue
Description copied from interface:JAnnotation
Set the "value" property of this annotation to a nested annotation of the given type.- Specified by:
annotationValue
in interfaceJAnnotation
- Parameters:
type
- the annotation type- Returns:
- the nested annotation
-
annotationValue
Description copied from interface:JAnnotation
Set the "value" property of this annotation to a nested annotation of the given type.- Specified by:
annotationValue
in interfaceJAnnotation
- Parameters:
type
- the annotation type- Returns:
- the nested annotation
-
annotationValue
Description copied from interface:JAnnotation
Set the "value" property of this annotation to a nested annotation of the given type.- Specified by:
annotationValue
in interfaceJAnnotation
- Parameters:
type
- the annotation type- Returns:
- the nested annotation
-
annotationArrayValue
Description copied from interface:JAnnotation
Set the "value" property of this annotation to an array of nested annotations of the given type.- Specified by:
annotationArrayValue
in interfaceJAnnotation
- Parameters:
type
- the annotation array element type- Returns:
- the nested annotation
-
annotationArrayValue
Description copied from interface:JAnnotation
Set the "value" property of this annotation to an array of nested annotations of the given type.- Specified by:
annotationArrayValue
in interfaceJAnnotation
- Parameters:
type
- the annotation array element type- Returns:
- the nested annotation
-
annotationArrayValue
Description copied from interface:JAnnotation
Set the "value" property of this annotation to an array of nested annotations of the given type.- Specified by:
annotationArrayValue
in interfaceJAnnotation
- Parameters:
type
- the annotation array element type- Returns:
- the nested annotation
-
value
Description copied from interface:JAnnotation
Set the named property of this annotation to a string.- Specified by:
value
in interfaceJAnnotation
- Parameters:
name
- the annotation property nameliteral
- the annotation value string- Returns:
- this annotation
-
value
Description copied from interface:JAnnotation
Set the named property of this annotation. To set an array of values, seeJExprs.array(JExpr...)
.- Specified by:
value
in interfaceJAnnotation
- Parameters:
name
- the annotation property nameexpr
- the annotation value- Returns:
- this annotation
-
annotationValue
Description copied from interface:JAnnotation
Set the named property of this annotation to a nested annotation of the given type.- Specified by:
annotationValue
in interfaceJAnnotation
type
- the annotation type- Returns:
- the nested annotation
-
annotationValue
Description copied from interface:JAnnotation
Set the named property of this annotation to a nested annotation of the given type.- Specified by:
annotationValue
in interfaceJAnnotation
type
- the annotation type- Returns:
- the nested annotation
-
annotationValue
Description copied from interface:JAnnotation
Set the named property of this annotation to a nested annotation of the given type.- Specified by:
annotationValue
in interfaceJAnnotation
type
- the annotation type- Returns:
- the nested annotation
-
annotationArrayValue
Description copied from interface:JAnnotation
Set the named property of this annotation to an array of nested annotations of the given type.- Specified by:
annotationArrayValue
in interfaceJAnnotation
type
- the annotation array element type- Returns:
- the nested annotation
-
annotationArrayValue
Description copied from interface:JAnnotation
Set the named property of this annotation to an array of nested annotations of the given type.- Specified by:
annotationArrayValue
in interfaceJAnnotation
type
- the annotation array element type- Returns:
- the nested annotation
-
annotationArrayValue
Description copied from interface:JAnnotation
Set the named property of this annotation to an array of nested annotations of the given type.- Specified by:
annotationArrayValue
in interfaceJAnnotation
type
- the annotation array element type- Returns:
- the nested annotation
-
write
- Specified by:
write
in interfaceWritable
- Throws:
IOException
-