public class BallerinaDocGenerator extends Object
| Constructor and Description |
|---|
BallerinaDocGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
generateApiDocs(String output,
String packageFilter,
boolean isNative,
String... sources)
API to generate Ballerina API documentation.
|
protected static Map<String,BLangPackage> |
generatePackageDocsFromBallerina(String sourceRoot,
Path packagePath,
String packageFilter,
boolean isNative)
Generates
BLangPackage objects for each Ballerina package from the given ballerina files. |
protected static Map<String,BLangPackage> |
generatePackageDocsFromBallerina(String sourceRoot,
String packagePath)
Generates
BLangPackage objects for each Ballerina package from the given ballerina files. |
protected static Map<String,BLangPackage> |
generatePackageDocsFromBallerina(String sourceRoot,
String packagePath,
String packageFilter)
Generates
BLangPackage objects for each Ballerina package from the given ballerina files. |
protected static Map<String,BLangPackage> |
generatePackageDocsFromBallerina(String sourceRoot,
String packagePath,
String packageFilter,
boolean isNative)
Generates
BLangPackage objects for each Ballerina package from the given ballerina files. |
public static void generateApiDocs(String output, String packageFilter, boolean isNative, String... sources)
output - path to the output directory where the API documentation will be written to.packageFilter - comma separated list of package names to be filtered from the documentation.isNative - whether the given packages are native or not.sources - either the path to the directories where Ballerina source files reside or a
path to a Ballerina file which does not belong to a package.protected static Map<String,BLangPackage> generatePackageDocsFromBallerina(String sourceRoot, String packagePath) throws IOException
BLangPackage objects for each Ballerina package from the given ballerina files.sourceRoot - points to the folder relative to which package path is givenpackagePath - should point either to a ballerina file or a folder with ballerina files.BLangPackage objects. Key - Ballerina package name Value - BLangPackageIOExceptionprotected static Map<String,BLangPackage> generatePackageDocsFromBallerina(String sourceRoot, String packagePath, String packageFilter) throws IOException
BLangPackage objects for each Ballerina package from the given ballerina files.sourceRoot - points to the folder relative to which package path is givenpackagePath - should point either to a ballerina file or a folder with ballerina files.packageFilter - comma separated list of package names/patterns to be filtered from the documentation.BLangPackage objects. Key - Ballerina package name Value - BLangPackageIOExceptionprotected static Map<String,BLangPackage> generatePackageDocsFromBallerina(String sourceRoot, String packagePath, String packageFilter, boolean isNative) throws IOException
BLangPackage objects for each Ballerina package from the given ballerina files.sourceRoot - points to the folder relative to which package path is givenpackagePath - should point either to a ballerina file or a folder with ballerina files.packageFilter - comma separated list of package names/patterns to be filtered from the documentation.BLangPackage objects. Key - Ballerina package name Value - BLangPackageIOExceptionprotected static Map<String,BLangPackage> generatePackageDocsFromBallerina(String sourceRoot, Path packagePath, String packageFilter, boolean isNative) throws IOException
BLangPackage objects for each Ballerina package from the given ballerina files.sourceRoot - points to the folder relative to which package path is givenpackagePath - a Path object pointing either to a ballerina file or a folder with ballerina files.packageFilter - comma separated list of package names/patterns to be filtered from the documentation.isNative - whether the given packages are native or not.BLangPackage objects. Key - Ballerina package name Value - BLangPackageIOExceptionCopyright © 2018 WSO2. All rights reserved.