Search in sources :

Example 1 with ChainedAnnotationVisitor

use of org.apache.felix.ipojo.manipulator.util.ChainedAnnotationVisitor in project felix by apache.

the class Selection method get.

public AnnotationVisitor get() {
    List<AnnotationVisitor> visitors = list();
    if (visitors.isEmpty()) {
        return null;
    }
    if (visitors.size() == 1) {
        return visitors.get(0);
    }
    ChainedAnnotationVisitor chained = new ChainedAnnotationVisitor();
    chained.getVisitors().addAll(visitors);
    return chained;
}
Also used : ChainedAnnotationVisitor(org.apache.felix.ipojo.manipulator.util.ChainedAnnotationVisitor) AnnotationVisitor(org.objectweb.asm.AnnotationVisitor) ChainedAnnotationVisitor(org.apache.felix.ipojo.manipulator.util.ChainedAnnotationVisitor)

Aggregations

ChainedAnnotationVisitor (org.apache.felix.ipojo.manipulator.util.ChainedAnnotationVisitor)1 AnnotationVisitor (org.objectweb.asm.AnnotationVisitor)1