Commit 34fa73c5 authored by Lionel Seinturier's avatar Lionel Seinturier
Browse files

Enable generating comments for class visitors.

parent f67a0ff2
......@@ -31,7 +31,15 @@ package org.objectweb.fractal.juliac.api.visit;
* @author Romain Rouvoy <Romain.Rouvoy@univ-lille1.fr>
*/
public interface ClassSourceCodeVisitor {
/**
* Visit a comment.
*
* @param comment the comment string
* @since 2.7
*/
public void visitComment( String comment );
/**
* Visit the declaration of the class.
*
......
......@@ -53,6 +53,10 @@ implements ClassSourceCodeVisitor {
super(pw,level);
}
public void visitComment( String comment ) {
writeln(comment);
}
public void visit(
int modifiers, String name, String[] genericTypeParameters,
String superClassName, String[] implementedInterfaceNames ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment