Class JavadocParanamer
java.lang.Object
com.thoughtworks.paranamer.JavadocParanamer
- All Implemented Interfaces:
Paranamer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static interfaceprotected static classprotected static class///////// Provider Implementations //////////// -
Field Summary
FieldsFields inherited from interface Paranamer
EMPTY_NAMES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringgetCanonicalName(Class<?> klass) private String[]getConstructorParameterNames(Constructor<?> cons, String raw) protected static StringgetJavadocFilename(Member member) ///////// CONVENIENCE METHODS ////////////private String[]getMethodParameterNames(Method method, String raw) private String[]getParameterNames(AccessibleObject a, String name, Class<?>[] types, String raw) String[]lookupParameterNames(AccessibleObject accessible) Lookup the parameter names of a given method.String[]lookupParameterNames(AccessibleObject accessible, boolean throwExceptionIfMissing) Lookup the parameter names of a given method.protected static StringstreamToString(InputStream input) protected static InputStreamurlToStream(URL url)
-
Field Details
-
provider
-
-
Constructor Details
-
JavadocParanamer
- Parameters:
archiveOrDirectory- either a zip archive or base directory of Javadocs.- Throws:
FileNotFoundException- if the parameter orpackage-listcannot be found.IOException
-
JavadocParanamer
- Parameters:
url- base URL of the JavaDocs- Throws:
FileNotFoundException- if the url does not have a/package-listIOException
-
-
Method Details
-
lookupParameterNames
Description copied from interface:ParanamerLookup the parameter names of a given method.- Specified by:
lookupParameterNamesin interfaceParanamer- Parameters:
accessible- theMethodorConstructorfor which the parameter names are looked up.- Returns:
- A list of the parameter names.
-
lookupParameterNames
Description copied from interface:ParanamerLookup the parameter names of a given method.- Specified by:
lookupParameterNamesin interfaceParanamer- Parameters:
accessible- theMethodorConstructorfor which the parameter names are looked up.throwExceptionIfMissing- whether to throw an exception if no Paranamer data found (versus return null).- Returns:
- A list of the parameter names.
-
getConstructorParameterNames
-
getMethodParameterNames
-
getParameterNames
-
getJavadocFilename
-
getCanonicalName
-
streamToString
- Throws:
IOException
-
urlToStream
- Throws:
IOException
-