package net.sourceforge.phpdt.internal.compiler.ast; import java.util.List; /** * It's html code. * It will contains some html, javascript, css ... * @author Matthieu Casanova */ public class HTMLCode extends AstNode { /** The html Code. */ public char[] htmlCode; /** * Create an html Block. * @param htmlCode the html inside the block * @param sourceStart the starting offset * @param sourceEnd the ending offset */ public HTMLCode(final char[] htmlCode, final int sourceStart, final int sourceEnd) { super(sourceStart, sourceEnd); this.htmlCode = htmlCode; } /** * I don't process tabs, it will only return the html inside. * @return the text of the block */ public String toString() { return new String(htmlCode); } /** * I don't process tabs, it will only return the html inside. * @param tab how many tabs before this html * @return the text of the block */ public String toString(final int tab) { return new String(htmlCode) + " ";//$NON-NLS-1$ } /** * Get the variables from outside (parameters, globals ...) * @return an empty list */ public void getOutsideVariable(final List list) { } /** * get the modified variables. * @return an empty list */ public void getModifiedVariable(final List list) { } /** * Get the variables used. * @return an empty list */ public void getUsedVariable(final List list) { } }