The following comment has been added to this issue:
Author: Aslak Helles�y
Created: Sun, 2 Feb 2003 10:43 AM
Body:
In order to access the current AST node from a production method, use jjtThis.
See xjavadoc/build.xml line 362 and xjavadoc/javacc/Java1.2-b.jjt line 464. As you
see, this piece of code is added dynamically. This is because xjavadoc's build system
actually builds two parsers. One using AST (JJTree) and one that's simple.
You should use the same approach when adding code that can keep a ref to a SimpleNode
representing the method body. This is to avoid compilation problems.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XJD-15
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XJD-15
Summary: XMethod should have a getBody
Type: Improvement
Status: Closed
Priority: Minor
Resolution: WON'T FIX
Time Spent: Unknown
Estimate: 0 minutes
Project: XJavaDoc
Component: Core
Assignee: xdoclet-devel (Use for new issues)
Reporter: Luiz-Otavio Zorzella
Created: Sun, 2 Feb 2003 6:12 AM
Updated: Sun, 2 Feb 2003 8:57 AM
Environment: All
Description:
XMethod allows to get the tags and method signatures, but not the method body itself.
This should be added. The usefulness is described in this email of mine to the list:
***********************
getting body methods is useful when dealing with "conversion" getters and setters. For
example, if my Bean has a method:
public Integer getTempInFahrenheit () {
return TempUtil.c2f (getTempInCelcius ());
}
(analogously for set). I could have these methods copied "as-is" to a generated Struts
Form Object or Value Object. This is useful for any conversion: IP (Long vs String),
date (long vs oh-so-many other ways), measurements, etc...
Any advice to a xjavadoc-dev newbie to add a getBody to XMethod (or elsewhere)?
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel