@UnstableApi public abstract class DocStringExtractor extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
DocStringExtractor(String defaultPath,
String pathPropertyName) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptFile(String filename)
Determine whether the file at
filename should be processed by the DocStringExtractor. |
Map<String,String> |
getAllDocStrings(ClassLoader classLoader)
Extract all docstrings from files at the configured path, delegating to
getDocStringsFromFiles(Map) for actual processing. |
protected abstract Map<String,String> |
getDocStringsFromFiles(Map<String,byte[]> files)
|
public Map<String,String> getAllDocStrings(ClassLoader classLoader)
getDocStringsFromFiles(Map) for actual processing.protected boolean acceptFile(String filename)
filename should be processed by the DocStringExtractor.
This will usually look at the file extension, but the default implementation can be used to check all
files at a particular path.Copyright © 2020 LeanCloud. All rights reserved.