gutenberg.pegdown.plugin.AttributeListNode Maven / Gradle / Ivy
package gutenberg.pegdown.plugin;
import org.parboiled.common.ImmutableList;
import org.pegdown.ast.AbstractNode;
import org.pegdown.ast.Node;
import org.pegdown.ast.Visitor;
import java.util.ArrayList;
import java.util.List;
/**
* @author @aloyer
*/
public class AttributeListNode extends AbstractNode {
private List nodes = new ArrayList();
public AttributeListNode() {
}
@Override
public void accept(Visitor visitor) {
visitor.visit(this);
}
@Override
public List getChildren() {
return ImmutableList.of();
}
@Override
public String toString() {
return "AttributeListNode{" + nodes + '}';
}
public boolean append(AttributeNode node) {
nodes.add(node);
return true;
}
public List getAttributes() {
return nodes;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy