Questions tagged [qdox]

QDox is a high speed, small footprint parser for extracting class/interface/method definitions from source files complete with JavaDoc @tags. It is designed to be used by active code generators or documentation tools.

A custom built parser has been built using JFlex and BYacc/J. These have been chosen because of their proven performance and they require no external libraries at runtime.

The parser skims the source files only looking for things of interest such as class/interface definitions, import statements, JavaDoc and member declarations. The parser ignores things such as actual method implementations to avoid overhead (while in method blocks, curly brace counting suffices).

The end result of the parser is a very simple document model containing enough information to be useful.

http://qdox.codehaus.org

7 questions
1
vote
1 answer

Extract full attribute types from a java file

So i need to extract the types of attributes from java files. I am currently using the parser qdox to do this. It works fine for the most part. The problem is that when I have attributes that have a type like this List I need to get the…
Goro21
  • 11
  • 2
1
vote
1 answer

QDox Parser: Get line numbers of comment before a class

I am using QDox Parser to analyze .java files and I want to get the line numbers of the comment before the beginning of the class. Unfortunately, I didn't get it with DocletTag class of QDox parser. I only get named Tags but no line numbers. Sample…
Alex Weiß
  • 21
  • 3
0
votes
1 answer

Getting the .java from the package name

I'm using QDox to parse java sources. I have a problem with this interface: import test.Word; public interface Spellable { /** * Checks the spell of the word in a given language */ public boolean checkSpell (Word word); } At the…
Federico Lenzi
  • 1,632
  • 4
  • 18
  • 34
0
votes
1 answer

how to get fields of method in QDOX 2.0 API?

In QDOX 2.0 API, how to get fields (variables) declared/used within a method? com.thoughtworks.qdox.model.JavaMethod do not have method like getFields() or something alike to get the list of fields under method. Please advise. Thanks!
Viki
  • 107
  • 1
  • 8
0
votes
1 answer

QDox to obtain enum value names

Does QDox provide a way to get the names of the enum values defined by an enum? (I know it can be done using reflection, but I want to be able to get the JavaDoc as well.)
Wilfred Springer
  • 10,869
  • 4
  • 55
  • 69
0
votes
1 answer

Gathering javadocs from multimodule maven project

In a large maven multimodule context, how can I gather javadoc-comments programmatically for a specific set of classes (e.g. all classes implementing some interface) or modules ? I have tried a stupid doclet and looked at QDox, but neither seems to…
Bastl
  • 2,926
  • 5
  • 27
  • 48
0
votes
1 answer

Parse zip or Jar project

I need to return all the packages, classes ... that a java project (zip/jar) contains. I guess QDox can do that. I found that class :…
GSDa
  • 193
  • 2
  • 4
  • 21