Re: [Xdoclet-user] Standalone doclet parser?

2004-08-16 Thread Aleksei Valikov
Hi.
you can try qdox ( qdox.codehaus.org )  - it's 
parser used by xdoclet-2.
Thanks for the recommendation. Any hint how to parse doc comments 
standalone? The only idea I have is to generate a fake class source and 
parse it.

Bye.
/lexi
---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


Re: [Xdoclet-user] Standalone doclet parser?

2004-08-16 Thread Konstantin Priblouda

--- Aleksei Valikov [EMAIL PROTECTED] wrote:

 Hi.
 
  you can try qdox ( qdox.codehaus.org )  - it's 
  parser used by xdoclet-2.
 
 Thanks for the recommendation. Any hint how to parse
 doc comments 
 standalone? The only idea I have is to generate a
 fake class source and 
 parse it.

no hint besides to look into source of qdox :) 
regards,

=
[ Konstantin Pribluda ( ko5tik ) ]
Zu Verstärkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] für die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programmieren, Kenntnisse in OpenSource-Bereich
[ http://www.pribluda.de ]



__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


Re: [Xdoclet-user] Standalone doclet parser?

2004-08-16 Thread Aleksei Valikov
Hi.
you can try qdox ( qdox.codehaus.org )  - it's 
parser used by xdoclet-2.
Thanks for the recommendation. Any hint how to parse
doc comments 
standalone? The only idea I have is to generate a
fake class source and 
parse it.

no hint besides to look into source of qdox :) 
Did so, found nothing suitable. :|
Ok, my solution - if anyone will be interested in the similar question:
  public static AbstractJavaEntity parseDocletTags(final String comment)
  {
final StringBuffer source = new StringBuffer();
source.append(/** );
source.append(comment);
source.append(*/\n);
source.append(class Fake {});
javaDocBuilder.addSource(new StringReader(source.toString()));
return javaDocBuilder.getClassByName(Fake);
  }
Bye.
/lexi
---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


Re: [Xdoclet-user] Standalone doclet parser?

2004-08-16 Thread Konstantin Priblouda

--- Aleksei Valikov [EMAIL PROTECTED] wrote:

 Hi.
 
 you can try qdox ( qdox.codehaus.org )  - it's 
 parser used by xdoclet-2.
 
 Thanks for the recommendation. Any hint how to
 parse
 doc comments 
 standalone? The only idea I have is to generate a
 fake class source and 
 parse it.
  
  
  no hint besides to look into source of qdox :) 
 
 Did so, found nothing suitable. :|

I would say you were lazy...

com.thoughtworks.qdox.model.util.TagParser does what
you need, and it is used by
com.thoughtworks.qdox.model.DefaultDocletTag


regards,

=
[ Konstantin Pribluda ( ko5tik ) ]
Zu Verstärkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] für die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programmieren, Kenntnisse in OpenSource-Bereich
[ http://www.pribluda.de ]



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


Re: [Xdoclet-user] Standalone doclet parser?

2004-08-16 Thread Aleksei Valikov
Hi.
I would say you were lazy...
com.thoughtworks.qdox.model.util.TagParser does what
you need, and it is used by
com.thoughtworks.qdox.model.DefaultDocletTag
Not quite. TagParser parses value of a single tag - constructs like
name1=value1   name2=value2
I need to parse superconstructs like
@my.tag1 name1=value1   name2=value2
@my.tag2 name3=value3   name4=value4
I.e. multiple tags with their values, not the value of a single tag.
As far as I could understand from the sources, this parsing task is 
implemented in QDox by lex/yacc-generated parser.

Bye.
/lexi
---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


Re: [Xdoclet-user] Standalone doclet parser?

2004-08-15 Thread Konstantin Priblouda

--- Aleksei Valikov [EMAIL PROTECTED] wrote:

 Hi.
 
 I'm working on a code generation application which
 is based on Sun's 
 Java code model.
 I have a small task where I need to parse
 XDoclet-style comments 
 provided as strings.
 More precisely, I need to parse strings like @my.id
 class=\pass\ 
 into an appropriate object representation.
 This parsing is quite simple, but I don't want to
 reinvent the bicycle.
 Is there any existing API I could use for this task?


you can try qdox ( qdox.codehaus.org )  - it's 
parser used by xdoclet-2.

and you can also look intto qtags module of xdoclet-2
( www.sourceforge.net/projects/xdoclet-plugins )
regards,


regards,

=
[ Konstantin Pribluda ( ko5tik ) ]
Zu Verstärkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] für die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programmieren, Kenntnisse in OpenSource-Bereich
[ http://www.pribluda.de ]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user