Class QdoxParanamerGenerator

java.lang.Object
com.thoughtworks.paranamer.generator.QdoxParanamerGenerator
All Implemented Interfaces:
ParanamerGenerator

public class QdoxParanamerGenerator extends Object implements ParanamerGenerator
Qdox-based implementation of ParanamerGenerator which parses Java source files to processSourcePath parameter names lists.
  • Field Details

  • Constructor Details

    • QdoxParanamerGenerator

      public QdoxParanamerGenerator()
  • Method Details

    • processSourcePath

      public void processSourcePath(String sourcePath, String outputPath) throws IOException
      Specified by:
      processSourcePath in interface ParanamerGenerator
      Throws:
      IOException
    • getClassesSortedByName

      private List<com.thoughtworks.qdox.model.JavaClass> getClassesSortedByName(String sourcePath)
    • processClasses

      public void processClasses(Collection<com.thoughtworks.qdox.model.JavaClass> classes, String outputPath) throws IOException
      Throws:
      IOException
    • makeEnhancer

      public Enhancer makeEnhancer()
    • addConstructors

      private String addConstructors(List<com.thoughtworks.qdox.model.JavaConstructor> methods)
    • addMethods

      private String addMethods(List<com.thoughtworks.qdox.model.JavaMethod> methods)
    • addConstructor

      private CharSequence addConstructor(com.thoughtworks.qdox.model.JavaConstructor constructor)
    • addMethod

      private CharSequence addMethod(com.thoughtworks.qdox.model.JavaMethod method)
    • format

      private CharSequence format(String name, List<com.thoughtworks.qdox.model.JavaParameter> parameters, boolean isConstructor)
    • formatLine

      private CharSequence formatLine(String methodName, String paramTypes, String paramNames)
    • getParameterNames

      private String getParameterNames(List<com.thoughtworks.qdox.model.JavaParameter> parameters)
    • getParameterTypes

      private String getParameterTypes(List<com.thoughtworks.qdox.model.JavaParameter> parameters)