Package org.jboss.jdeparser
Class ImplJAnnotationArray
- java.lang.Object
-
- org.jboss.jdeparser.ImplJAnnotationArray
-
- All Implemented Interfaces:
JAnnotationArray
,Writable
class ImplJAnnotationArray extends java.lang.Object implements JAnnotationArray, Writable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.ArrayList<ImplJAnnotation>
list
private JType
type
-
Constructor Summary
Constructors Constructor Description ImplJAnnotationArray(JType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JAnnotation
add()
Add an annotation of the array's type to the array.(package private) int
size()
void
write(SourceFileWriter writer)
(package private) void
writeBare(SourceFileWriter writer)
-
-
-
Field Detail
-
type
private final JType type
-
list
private java.util.ArrayList<ImplJAnnotation> list
-
-
Constructor Detail
-
ImplJAnnotationArray
ImplJAnnotationArray(JType type)
-
-
Method Detail
-
add
public JAnnotation add()
Description copied from interface:JAnnotationArray
Add an annotation of the array's type to the array.- Specified by:
add
in interfaceJAnnotationArray
- Returns:
- the new annotation
-
write
public void write(SourceFileWriter writer) throws java.io.IOException
-
size
int size()
-
writeBare
void writeBare(SourceFileWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
-