public class LSAnnotationCache extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
containsAnnotationsForPackage(PackageID packageID)
Check whether annotations have been loaded from a given package.
|
HashMap<PackageID,List<BAnnotationSymbol>> |
getAnnotationMapForType(AttachmentPoint attachmentPoint)
Get the annotation map for the given type.
|
HashMap<PackageID,List<BAnnotationSymbol>> |
getFunctionAnnotations() |
static LSAnnotationCache |
getInstance() |
HashMap<PackageID,List<BAnnotationSymbol>> |
getResourceAnnotations() |
HashMap<PackageID,List<BAnnotationSymbol>> |
getServiceAnnotations() |
static void |
initiate() |
static void |
loadAnnotationsFromPackage(BPackageSymbol bPackageSymbol)
Load annotations from the package.
|
public static LSAnnotationCache getInstance()
public static void initiate()
public HashMap<PackageID,List<BAnnotationSymbol>> getServiceAnnotations()
public HashMap<PackageID,List<BAnnotationSymbol>> getResourceAnnotations()
public HashMap<PackageID,List<BAnnotationSymbol>> getFunctionAnnotations()
public HashMap<PackageID,List<BAnnotationSymbol>> getAnnotationMapForType(AttachmentPoint attachmentPoint)
attachmentPoint
- Attachment pointHashMap
Map of annotation listspublic static boolean containsAnnotationsForPackage(PackageID packageID)
packageID
- Package ID to check againstBoolean
whether annotations are loaded or notpublic static void loadAnnotationsFromPackage(BPackageSymbol bPackageSymbol)
bPackageSymbol
- BLang Package Symbol to load annotationsCopyright © 2018 WSO2. All rights reserved.