Set<? extends Element> elements = roundEnv.getElementsAnnotatedWith( SimpleAnnotation.class );
for ( Element element : elements )
{
Name name = element.getSimpleName();
PackageElement packageElement = elementUtils.getPackageOf( element );
try
{
FileObject resource =
filer.createResource( StandardLocation.SOURCE_OUTPUT, packageElement.getQualifiedName(), name
+ ".txt", element );
Writer writer = resource.openWriter();
writer.write( name.toString() );
writer.close();
}
catch ( IOException e )
{
throw new RuntimeException( e );