[
https://issues.jboss.org/browse/FORGE-665?page=com.atlassian.jira.plugin....
]
Ivan St. Ivanov commented on FORGE-665:
---------------------------------------
Hey Lincoln,
I could take this, even if it seems challenging (which is the euphemism for hard ;-)).
Please tell me whether I got it right:
Maybe I can add some operations on the org.jboss.forge.parser.java.Method interface (or
even better, add CodeBlock interface that has these methods, and then add a method
appendCodeBlock to the Method interface; and even appendCodeBlock to the CodeBlock
interface):
appendLocalVariable(type, name, initialValue);
appendMethodCall(field/variable, method, parameters[]);
appendIfStatement(predicate);
appendWhileStatement(predicate);
appendDoStatement(predicate);
appendForStatement(initialValue, predicate, step);
appendForeachStatement(...)
Of course most (if not all) of the method parameters should ensure type safety, i.e. as
few Strings as possible.
Basically ideas are pouring ;-)
If you think that I could try this out, then please assign the item to me.
Cheers,
Ivan
JavaParser should support TypeSafe parsing/generation of method
bodies/statements
---------------------------------------------------------------------------------
Key: FORGE-665
URL:
https://issues.jboss.org/browse/FORGE-665
Project: Forge
Issue Type: Enhancement
Components: Parsers / File Manipulation
Affects Versions: 1.0.6.Final
Reporter: Lincoln Baxter III
Fix For: 1.0.7.Final
The JavaParser needs to support fine-grained manipulation of method bodies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira