public AnnotationMemberDeclaration(int modifiers, List<AnnotationExpr> annotations, Type type, String name, Expression defaultValue) { super(annotations); setModifiers(modifiers); setType(type); setName(name); setDefaultValue(defaultValue); }
public AnnotationMemberDeclaration(int modifiers, Type type, String name, Expression defaultValue) { setModifiers(modifiers); setType(type); setName(name); setDefaultValue(defaultValue); }
public AnnotationMemberDeclaration(int beginLine, int beginColumn, int endLine, int endColumn, int modifiers, List<AnnotationExpr> annotations, Type type, String name, Expression defaultValue) { super(beginLine, beginColumn, endLine, endColumn, annotations); setModifiers(modifiers); setType(type); setName(name); setDefaultValue(defaultValue); }
@Override public Node visit(final AnnotationMemberDeclaration n, final A arg) { if (n.getJavaDoc() != null) { n.setJavaDoc((JavadocComment) n.getJavaDoc().accept(this, arg)); } final List<AnnotationExpr> annotations = n.getAnnotations(); if (annotations != null) { for (int i = 0; i < annotations.size(); i++) { annotations.set(i, (AnnotationExpr) annotations.get(i).accept(this, arg)); } removeNulls(annotations); } n.setType((Type) n.getType().accept(this, arg)); if (n.getDefaultValue() != null) { n.setDefaultValue((Expression) n.getDefaultValue().accept(this, arg)); } return n; }