Class QdoxParanamerGenerator
java.lang.Object
com.thoughtworks.paranamer.generator.QdoxParanamerGenerator
- All Implemented Interfaces:
ParanamerGenerator
Qdox-based implementation of ParanamerGenerator which parses Java source files to processSourcePath
parameter names lists.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate CharSequence
addConstructor
(com.thoughtworks.qdox.model.JavaConstructor constructor) private String
addConstructors
(List<com.thoughtworks.qdox.model.JavaConstructor> methods) private CharSequence
addMethod
(com.thoughtworks.qdox.model.JavaMethod method) private String
addMethods
(List<com.thoughtworks.qdox.model.JavaMethod> methods) private CharSequence
format
(String name, List<com.thoughtworks.qdox.model.JavaParameter> parameters, boolean isConstructor) private CharSequence
formatLine
(String methodName, String paramTypes, String paramNames) private List<com.thoughtworks.qdox.model.JavaClass>
getClassesSortedByName
(String sourcePath) private String
getParameterNames
(List<com.thoughtworks.qdox.model.JavaParameter> parameters) private String
getParameterTypes
(List<com.thoughtworks.qdox.model.JavaParameter> parameters) void
processClasses
(Collection<com.thoughtworks.qdox.model.JavaClass> classes, String outputPath) void
processSourcePath
(String sourcePath, String outputPath)
-
Field Details
-
SPACE
- See Also:
-
NEWLINE
- See Also:
-
COMMA
- See Also:
-
-
Constructor Details
-
QdoxParanamerGenerator
public QdoxParanamerGenerator()
-
-
Method Details
-
processSourcePath
- Specified by:
processSourcePath
in interfaceParanamerGenerator
- Throws:
IOException
-
getClassesSortedByName
-
processClasses
public void processClasses(Collection<com.thoughtworks.qdox.model.JavaClass> classes, String outputPath) throws IOException - Throws:
IOException
-
makeEnhancer
-
addConstructors
-
addMethods
-
addConstructor
-
addMethod
-
format
private CharSequence format(String name, List<com.thoughtworks.qdox.model.JavaParameter> parameters, boolean isConstructor) -
formatLine
-
getParameterNames
-
getParameterTypes
-