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 {
+public final class HTMLCode extends AstNode {
/** The html Code. */
- public char[] htmlCode;
+ private final String htmlCode;
/**
* Create an html Block.
* @param sourceStart the starting offset
* @param sourceEnd the ending offset
*/
- public HTMLCode(char[] htmlCode, int sourceStart, int sourceEnd) {
+ public HTMLCode(final String htmlCode,
+ final int sourceStart,
+ final int sourceEnd) {
super(sourceStart, sourceEnd);
this.htmlCode = htmlCode;
}
* @return the text of the block
*/
public String toString() {
- return new String(htmlCode);
+ return htmlCode;
}
/**
* @param tab how many tabs before this html
* @return the text of the block
*/
- public String toString(int tab) {
- return new String(htmlCode)+" ";
+ public String toString(final int tab) {
+ return htmlCode + ' ';
}
+
+ /**
+ * Get the variables from outside (parameters, globals ...)
+ *
+ * @param list the list where we will put variables
+ */
+ public void getOutsideVariable(final List list) {}
+
+ /**
+ * get the modified variables.
+ *
+ * @param list the list where we will put variables
+ */
+ public void getModifiedVariable(final List list) {}
+
+ /**
+ * Get the variables used.
+ *
+ * @param list the list where we will put variables
+ */
+ public void getUsedVariable(final List list) {}
}