public void setAnnotations(List<Annotation> annotations) {

        this.annotations.clear();
        this.annotations.addAll(annotations);
    }
Annotation for siddhi functions and extensions
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/annotation/Annotation.java