Search in sources :

Example 1 with ObtainVia

use of lombok.Builder.ObtainVia in project lombok by rzwitserloot.

the class HandleBuilder method addObtainVia.

private void addObtainVia(BuilderFieldData bfd, JavacNode node) {
    for (JavacNode child : node.down()) {
        if (!annotationTypeMatches(ObtainVia.class, child))
            continue;
        AnnotationValues<ObtainVia> ann = createAnnotation(ObtainVia.class, child);
        bfd.obtainVia = ann.getInstance();
        bfd.obtainViaNode = child;
        deleteAnnotationIfNeccessary(child, ObtainVia.class);
        return;
    }
}
Also used : JavacNode(lombok.javac.JavacNode) ObtainVia(lombok.Builder.ObtainVia)

Example 2 with ObtainVia

use of lombok.Builder.ObtainVia in project lombok by rzwitserloot.

the class HandleBuilder method addObtainVia.

private void addObtainVia(BuilderFieldData bfd, EclipseNode node) {
    for (EclipseNode child : node.down()) {
        if (!annotationTypeMatches(ObtainVia.class, child))
            continue;
        AnnotationValues<ObtainVia> ann = createAnnotation(ObtainVia.class, child);
        bfd.obtainVia = ann.getInstance();
        bfd.obtainViaNode = child;
        return;
    }
}
Also used : EclipseNode(lombok.eclipse.EclipseNode) ObtainVia(lombok.Builder.ObtainVia)

Aggregations

ObtainVia (lombok.Builder.ObtainVia)2 EclipseNode (lombok.eclipse.EclipseNode)1 JavacNode (lombok.javac.JavacNode)1