private lombok.ast.Annotation createAnnotation(Annotation node) { lombok.ast.Annotation annotation = new lombok.ast.Annotation(); annotation.astAnnotationTypeReference((lombok.ast.TypeReference) toTree(node.type)); return annotation; }
private lombok.ast.Annotation createAnnotation(Annotation node) { lombok.ast.Annotation annotation = new lombok.ast.Annotation(); annotation.astAnnotationTypeReference((lombok.ast.TypeReference) toTree(node.type)); return annotation; }
private lombok.ast.Annotation createAnnotation(Annotation node) { lombok.ast.Annotation annotation = new lombok.ast.Annotation(); annotation.astAnnotationTypeReference((lombok.ast.TypeReference) toTree(node.type)); return annotation; }
public Node createAnnotation(Node type, Node annotation) { if (annotation instanceof Annotation) { return posify(((Annotation)annotation).rawAnnotationTypeReference(type)); } return posify(new Annotation().rawAnnotationTypeReference(type)); }
public Node createAnnotation(Node type, Node annotation) { if (annotation instanceof Annotation) { return posify(((Annotation)annotation).rawAnnotationTypeReference(type)); } return posify(new Annotation().rawAnnotationTypeReference(type)); }
public Node createAnnotation(Node type, Node annotation) { if (annotation instanceof Annotation) { return posify(((Annotation)annotation).rawAnnotationTypeReference(type)); } return posify(new Annotation().rawAnnotationTypeReference(type)); }
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); }
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); }
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); }
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 void visitAnnotation(JCAnnotation node) { Annotation a = new Annotation(); a.rawAnnotationTypeReference(toTree(node.getAnnotationType(), FlagKey.TYPE_REFERENCE)); for (JCExpression elem : node.getArguments()) { AnnotationElement e = new AnnotationElement(); if (elem instanceof JCAssign) { JCExpression rawName = ((JCAssign) elem).getVariable(); if (rawName instanceof JCIdent) e.astName(setPos(rawName, new Identifier().astValue(((JCIdent)rawName).getName().toString()))); elem = ((JCAssign) elem).getExpression(); } e.rawValue(toTree(elem)); a.astElements().addToEnd(e); } set(node, a); } }
@Override public void visitAnnotation(JCAnnotation node) { Annotation a = new Annotation(); a.rawAnnotationTypeReference(toTree(node.getAnnotationType(), FlagKey.TYPE_REFERENCE)); for (JCExpression elem : node.getArguments()) { AnnotationElement e = new AnnotationElement(); if (elem instanceof JCAssign) { JCExpression rawName = ((JCAssign) elem).getVariable(); if (rawName instanceof JCIdent) e.astName(setPos(rawName, new Identifier().astValue(((JCIdent)rawName).getName().toString()))); elem = ((JCAssign) elem).getExpression(); } e.rawValue(toTree(elem)); a.astElements().addToEnd(e); } set(node, a); } }
@Override public void visitAnnotation(JCAnnotation node) { Annotation a = new Annotation(); a.rawAnnotationTypeReference(toTree(node.getAnnotationType(), FlagKey.TYPE_REFERENCE)); for (JCExpression elem : node.getArguments()) { AnnotationElement e = new AnnotationElement(); if (elem instanceof JCAssign) { JCExpression rawName = ((JCAssign) elem).getVariable(); if (rawName instanceof JCIdent) e.astName(setPos(rawName, new Identifier().astValue(((JCIdent)rawName).getName().toString()))); elem = ((JCAssign) elem).getExpression(); } e.rawValue(toTree(elem)); a.astElements().addToEnd(e); } set(node, a); } }