public class ParserUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Function<BLangIdentifier,String> |
B_LANG_IDENTIFIER_TO_STRING
Function to convert org.wso2.ballerinalang.compiler.tree.BLangIdentifier instance to
java.lang.String instance.
|
Constructor and Description |
---|
ParserUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,ModelPackage> |
getAllPackages()
Get All Native Packages.
|
static List<SymbolInformation> |
getBuiltinTypes()
Get the builtin types.
|
static Path |
getProgramDirectory(int directoryCount,
Path filePath) |
static void |
loadPackageMap(String packageName,
BLangPackage pkg,
Map<String,ModelPackage> packages)
Add connectors, functions, annotations etc.
|
public static final Function<BLangIdentifier,String> B_LANG_IDENTIFIER_TO_STRING
public static Path getProgramDirectory(int directoryCount, Path filePath)
directoryCount
- - packagePathfilePath
- - file path to parent directory of the .bal filepublic static Map<String,ModelPackage> getAllPackages()
Map
Package name, package functions and connectorspublic static List<SymbolInformation> getBuiltinTypes()
List
list of builtin typespublic static void loadPackageMap(String packageName, BLangPackage pkg, Map<String,ModelPackage> packages)
packageName
- package namepkg
- BLangPackage instancepackages
- packages mapCopyright © 2018 WSO2. All rights reserved.