1 package net.sourceforge.phpdt.internal.compiler.ast;
6 * It will contains some html, javascript, css ...
7 * @author Matthieu Casanova
9 public class HTMLCode extends AstNode {
12 public char[] htmlCode;
15 * Create an html Block.
16 * @param htmlCode the html inside the block
17 * @param sourceStart the starting offset
18 * @param sourceEnd the ending offset
20 public HTMLCode(char[] htmlCode, int sourceStart, int sourceEnd) {
21 super(sourceStart, sourceEnd);
22 this.htmlCode = htmlCode;
26 * I don't process tabs, it will only return the html inside.
27 * @return the text of the block
29 public String toString() {
30 return new String(htmlCode);
34 * I don't process tabs, it will only return the html inside.
35 * @param tab how many tabs before this html
36 * @return the text of the block
38 public String toString(int tab) {
39 return new String(htmlCode);