1 package net.sourceforge.phpdt.internal.compiler.ast;
8 * It will contains some html, javascript, css ...
9 * @author Matthieu Casanova
11 public class HTMLCode extends AstNode {
14 public char[] htmlCode;
17 * Create an html Block.
18 * @param htmlCode the html inside the block
19 * @param sourceStart the starting offset
20 * @param sourceEnd the ending offset
22 public HTMLCode(final char[] htmlCode,
23 final int sourceStart,
24 final int sourceEnd) {
25 super(sourceStart, sourceEnd);
26 this.htmlCode = htmlCode;
30 * I don't process tabs, it will only return the html inside.
31 * @return the text of the block
33 public String toString() {
34 return new String(htmlCode);
38 * I don't process tabs, it will only return the html inside.
39 * @param tab how many tabs before this html
40 * @return the text of the block
42 public String toString(final int tab) {
43 return new String(htmlCode) + " ";//$NON-NLS-1$
47 * Get the variables from outside (parameters, globals ...)
48 * @return an empty list
50 public void getOutsideVariable(final List list) {
54 * get the modified variables.
55 * @return an empty list
57 public void getModifiedVariable(final List list) {
61 * Get the variables used.
62 * @return an empty list
64 public void getUsedVariable(final List list) {