use of org.ballerinalang.model.values.LockableStructureType in project ballerina by ballerina-lang.
the class ConnectorSPIModelHelper method getAnnotationVariable.
public static BMap getAnnotationVariable(String pkgPath, ProgramFile programFile) {
PackageInfo packageInfo = programFile.getPackageInfo(pkgPath);
PackageVarInfo annotationData = packageInfo.getPackageVarInfo(ANNOTATION_DATA);
final LockableStructureType globalMemoryBlock = programFile.getGlobalMemoryBlock();
return (BMap) globalMemoryBlock.getRefField(annotationData.getGlobalMemIndex());
}
Aggregations