public class ParameterReader extends Object
| Constructor and Description |
|---|
ParameterReader(DocletOptions options,
Collection<com.sun.javadoc.ClassDoc> allClasses)
This creates a PathParameterReader
|
| Modifier and Type | Method and Description |
|---|---|
List<ApiParameter> |
buildApiParams(com.sun.javadoc.ExecutableMemberDoc method,
com.sun.javadoc.Parameter parameter,
boolean consumesMultipart,
Set<String> allParamNames,
Set<Model> models)
This builds an Api parameter from a method or constructor parameter
|
List<String> |
getClassLevelParamNames()
This gets the names of parameters in the class level @Path expression
|
void |
readClass(com.sun.javadoc.ClassDoc classDoc)
This reads a class storing any path parameters from the class level
|
List<ApiParameter> |
readClassLevelParameters(Set<Model> models)
This reads a list of class parameters.
|
public ParameterReader(DocletOptions options, Collection<com.sun.javadoc.ClassDoc> allClasses)
options - the doclet optionsallClasses - All classes for looking up typespublic void readClass(com.sun.javadoc.ClassDoc classDoc)
classDoc - The class to readpublic List<String> getClassLevelParamNames()
public List<ApiParameter> readClassLevelParameters(Set<Model> models)
models - The model set to add any new encountered models topublic List<ApiParameter> buildApiParams(com.sun.javadoc.ExecutableMemberDoc method, com.sun.javadoc.Parameter parameter, boolean consumesMultipart, Set<String> allParamNames, Set<Model> models)
method - The method or constructorparameter - The parameter to build the api parameter forconsumesMultipart - whether the method consumes multipartallParamNames - A list of all parameter names on the methodmodels - The model set to add any new encountered models toCopyright © 2015. All rights reserved.