[
https://issues.jboss.org/browse/FORGE-469?page=com.atlassian.jira.plugin....
]
Rudy De Busscher commented on FORGE-469:
----------------------------------------
Alternative API
within JavaSourceFacet
{code:java}
public void visitJavaSources(JavaResourceVisitor visitor){}
public void visitJavaTestSources(JavaResourceVisitor visitor){}
{code}
The visitor
{code:java}
public interface JavaResourceVisitor
{
/**
* Called when a Java File is found.
*
* @param javaResource The JavaResource for the found file.
*/
void visit(final JavaResource javaResource);
}
{code}
JavaSourceFacet should provide source tree visiting
---------------------------------------------------
Key: FORGE-469
URL:
https://issues.jboss.org/browse/FORGE-469
Project: Forge
Issue Type: Feature Request
Components: Parsers / File Manipulation, Plugin API
Affects Versions: 1.0.0.Beta5
Reporter: Lincoln Baxter III
Fix For: Future
It should be possible to "visit" the source tree, performing operations via a
SourceVisitor in order to do refactorings or other tasks.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira