public Node createAnnotationFromElements(Node head, List<Node> tail) { Annotation result = new Annotation(); if (head != null) result.rawElements().addToEnd(head); if (tail != null) for (Node n : tail) if (n != null) result.rawElements().addToEnd(n); return posify(result); }
@Override public void visitNormalAnnotation(NormalAnnotation node) { lombok.ast.Annotation annot = createAnnotation(node); fillList(node.memberValuePairs, annot.rawElements()); annot.setPosition(toPosition(node.sourceStart, node.declarationSourceEnd)); setConversionStructInfo(annot, "isNormalAnnotation"); set(node, annot); }
public Node createAnnotationFromElements(Node head, List<Node> tail) { Annotation result = new Annotation(); if (head != null) result.rawElements().addToEnd(head); if (tail != null) for (Node n : tail) if (n != null) result.rawElements().addToEnd(n); return posify(result); }
@Override public void visitNormalAnnotation(NormalAnnotation node) { lombok.ast.Annotation annot = createAnnotation(node); fillList(node.memberValuePairs, annot.rawElements()); annot.setPosition(toPosition(node.sourceStart, node.declarationSourceEnd)); setConversionStructInfo(annot, "isNormalAnnotation"); set(node, annot); }
public Node createAnnotationFromElements(Node head, List<Node> tail) { Annotation result = new Annotation(); if (head != null) result.rawElements().addToEnd(head); if (tail != null) for (Node n : tail) if (n != null) result.rawElements().addToEnd(n); return posify(result); }
@Override public void visitNormalAnnotation(NormalAnnotation node) { lombok.ast.Annotation annot = createAnnotation(node); fillList(node.memberValuePairs, annot.rawElements()); annot.setPosition(toPosition(node.sourceStart, node.declarationSourceEnd)); setConversionStructInfo(annot, "isNormalAnnotation"); set(node, annot); }
@Override public boolean visitAnnotation(Annotation node) { formatter.buildBlock(node); formatter.append("@"); visit(node.rawAnnotationTypeReference()); visitAll(node.rawElements(), ", ", "(", ")"); formatter.closeBlock(); return true; }
public Node createAnnotationFromElement(Node value) { Annotation result = new Annotation(); if (value != null) { result.rawElements().addToEnd(posify(new AnnotationElement().rawValue(value))); } return posify(result); }
public Node createAnnotationFromElement(Node value) { Annotation result = new Annotation(); if (value != null) { result.rawElements().addToEnd(posify(new AnnotationElement().rawValue(value))); } return posify(result); }
public Node createAnnotationFromElement(Node value) { Annotation result = new Annotation(); if (value != null) { result.rawElements().addToEnd(posify(new AnnotationElement().rawValue(value))); } return posify(result); }
@Override public boolean visitAnnotation(Annotation node) { formatter.buildBlock(node); formatter.append("@"); visit(node.rawAnnotationTypeReference()); visitAll(node.rawElements(), ", ", "(", ")"); formatter.closeBlock(); return true; }
@Override public boolean visitAnnotation(Annotation node) { formatter.buildBlock(node); formatter.append("@"); visit(node.rawAnnotationTypeReference()); visitAll(node.rawElements(), ", ", "(", ")"); formatter.closeBlock(); return true; }