Modifier and Type | Class and Description |
---|---|
protected static class |
JavadocParanamer.DirJavadocProvider |
protected static interface |
JavadocParanamer.JavadocProvider |
protected static class |
JavadocParanamer.UrlJavadocProvider |
protected static class |
JavadocParanamer.ZipJavadocProvider |
EMPTY_NAMES
Constructor and Description |
---|
JavadocParanamer(File archiveOrDirectory) |
JavadocParanamer(URL url) |
Modifier and Type | Method and Description |
---|---|
protected static String |
getCanonicalName(Class<?> klass) |
protected static String |
getJavadocFilename(Member member) |
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 String |
streamToString(InputStream input) |
protected static InputStream |
urlToStream(URL url) |
public JavadocParanamer(File archiveOrDirectory) throws IOException
archiveOrDirectory
- either a zip archive or base directory of Javadocs.FileNotFoundException
- if the parameter or package-list
cannot be found.IOException
public JavadocParanamer(URL url) throws IOException
url
- base URL of the JavaDocsFileNotFoundException
- if the url does not have a /package-list
IOException
public String[] lookupParameterNames(AccessibleObject accessible)
Paranamer
lookupParameterNames
in interface Paranamer
accessible
- the Method
or Constructor
for which the parameter names
are looked up.public String[] lookupParameterNames(AccessibleObject accessible, boolean throwExceptionIfMissing)
Paranamer
lookupParameterNames
in interface Paranamer
accessible
- the Method
or Constructor
for which the parameter names
are looked up.throwExceptionIfMissing
- whether to throw an exception if no Paranamer data found (versus return null).protected static String streamToString(InputStream input) throws IOException
IOException
protected static InputStream urlToStream(URL url) throws IOException
IOException
Copyright © 2018. All rights reserved.