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>listprivate JTypetype
-
Constructor Summary
Constructors Constructor Description ImplJAnnotationArray(JType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JAnnotationadd()Add an annotation of the array's type to the array.(package private) intsize()voidwrite(SourceFileWriter writer)(package private) voidwriteBare(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:JAnnotationArrayAdd an annotation of the array's type to the array.- Specified by:
addin 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
-
-