[
https://issues.jboss.org/browse/FORGE-469?page=com.atlassian.jira.plugin....
]
Lincoln Baxter III commented on FORGE-469:
------------------------------------------
Suggested API:
{code} JavaSourceFacet java = project.getFacet(JavaSourceFacet.class);
java.visitSources("com.base.package", new JavaSourceVisitor() {...});
java.visitTestSourceTree("com.base.package", new JavaSourceVisitor()
{...});
java.visitSources(new JavaSourceVisitor() {
public void visit(VisitContext context, JavaSource source) {
// to end the visit after this method returns, call this method
context.visitComplete();
}
} );
java.visitTestSources(new JavaSourceVisitor() {
public void visit(VisitContext context, JavaSource source) {
context.visitComplete();
}
} );{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