X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/HTMLBlock.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/HTMLBlock.java new file mode 100644 index 0000000..4dae9eb --- /dev/null +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/HTMLBlock.java @@ -0,0 +1,30 @@ +package net.sourceforge.phpdt.internal.compiler.ast; + +/** + * @author Matthieu Casanova + */ +public class HTMLBlock extends Statement { + + public AstNode[] nodes; + + public HTMLBlock(AstNode[] nodes) { + super(nodes[0].sourceStart, nodes[nodes.length-1].sourceEnd); + this.nodes = nodes; + } + + /** + * Return the object into String. + * @param tab how many tabs (not used here + * @return a String + */ + public String toString(int tab) { + final StringBuffer buff = new StringBuffer(tabString(tab)); + buff.append("?>"); + for (int i = 0; i < nodes.length; i++) { + AstNode node = nodes[i]; + buff.append(node.toString(tab +1)); + } + buff.append("