1 package net.sourceforge.phpdt.internal.compiler.ast;
4 import java.util.ArrayList;
9 * It will contains some html, javascript, css ...
10 * @author Matthieu Casanova
12 public class HTMLCode extends AstNode {
15 public char[] htmlCode;
18 * Create an html Block.
19 * @param htmlCode the html inside the block
20 * @param sourceStart the starting offset
21 * @param sourceEnd the ending offset
23 public HTMLCode(final char[] htmlCode,
24 final int sourceStart,
25 final int sourceEnd) {
26 super(sourceStart, sourceEnd);
27 this.htmlCode = htmlCode;
31 * I don't process tabs, it will only return the html inside.
32 * @return the text of the block
34 public String toString() {
35 return new String(htmlCode);
39 * I don't process tabs, it will only return the html inside.
40 * @param tab how many tabs before this html
41 * @return the text of the block
43 public String toString(final int tab) {
44 return new String(htmlCode) + " ";//$NON-NLS-1$
48 * Get the variables from outside (parameters, globals ...)
49 * @return an empty list
51 public List getOutsideVariable() {
52 return new ArrayList();
56 * get the modified variables.
57 * @return an empty list
59 public List getModifiedVariable() {
60 return new ArrayList();
64 * Get the variables used.
65 * @return an empty list
67 public List getUsedVariable() {
68 return new ArrayList();