Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fractal
fractal
Commits
34fa73c5
Commit
34fa73c5
authored
Dec 10, 2017
by
Lionel Seinturier
Browse files
Enable generating comments for class visitors.
parent
f67a0ff2
Changes
2
Hide whitespace changes
Inline
Side-by-side
juliac/api/src/main/java/org/objectweb/fractal/juliac/api/visit/ClassSourceCodeVisitor.java
View file @
34fa73c5
...
...
@@ -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.
*
...
...
juliac/core/src/main/java/org/objectweb/fractal/juliac/visit/ClassSourceCodeWriter.java
View file @
34fa73c5
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment