net.sourceforge.pmd.lang.java.ast.ASTMemberValueArrayInitializer Maven / Gradle / Ivy
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.ast;
import java.util.Iterator;
/**
* Represents an array of member values in an annotation {@linkplain ASTMemberValue member value}.
*
*
*
* MemberValueArrayInitializer ::= "{" ( {@linkplain ASTMemberValue MemberValue} ( "," {@linkplain ASTMemberValue MemberValue} )* ","? )? "}"
*
*
*
*/
public final class ASTMemberValueArrayInitializer extends AbstractJavaNode implements Iterable, ASTMemberValue {
ASTMemberValueArrayInitializer(int id) {
super(id);
}
@Override
protected R acceptVisitor(JavaVisitor super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}
@Override
public Iterator iterator() {
return children(ASTMemberValue.class).iterator();
}
}