public class GeneratorUtils extends Object
| Constructor and Description |
|---|
GeneratorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static AnnotationAttachmentNode |
getAnnotationFromList(String name,
String pkg,
List<? extends AnnotationAttachmentNode> annotations)
Retrieve a specific annotation by name from a list of annotations.
|
static Map<String,String[]> |
getKeyValuePairAsMap(List<BLangRecordLiteral.BLangRecordKeyValue> list)
Retrieve
Map representation of a Ballerina Record Key Value list. |
public static AnnotationAttachmentNode getAnnotationFromList(String name, String pkg, List<? extends AnnotationAttachmentNode> annotations)
name - name of the required annotationpkg - package of the required annotationannotations - list of annotations containing the required annotationname if found or
null if annotation not found in the listpublic static Map<String,String[]> getKeyValuePairAsMap(List<BLangRecordLiteral.BLangRecordKeyValue> list)
Map representation of a Ballerina Record Key Value list.list - list of key value pairsCopyright © 2019 WSO2. All rights reserved.