use of org.wso2.siddhi.query.api.annotation.Annotation in project ballerina by ballerina-lang.
the class ParserUtils method createNewConnector.
/**
* Create new connector.
*
* @param name name of the connector
* @param annotations list of annotation
* @param actions list of actions
* @param params list of params
* @param returnParams list of return params
* @return {Connector} connector
*/
private static Connector createNewConnector(String name, List<AnnotationAttachment> annotations, List<Action> actions, List<Parameter> params, List<Parameter> returnParams, String fileName) {
Connector connector = new Connector();
connector.setName(name);
connector.setActions(actions);
connector.setParameters(params);
connector.setAnnotations(annotations);
connector.setReturnParameters(returnParams);
connector.setFileName(fileName);
return connector;
}
Aggregations