* 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(final char[] htmlCode,
+ public HTMLCode(final String htmlCode,
final int sourceStart,
final int sourceEnd) {
super(sourceStart, sourceEnd);
* @return the text of the block
*/
public String toString() {
- return new String(htmlCode);
+ return htmlCode;
}
/**
* @return the text of the block
*/
public String toString(final int tab) {
- return new String(htmlCode) + " ";//$NON-NLS-1$
+ return htmlCode + ' ';
}
/**
* Get the variables from outside (parameters, globals ...)
- * @return an empty list
+ *
+ * @param list the list where we will put variables
*/
- public void getOutsideVariable(final List list) {
- }
+ public void getOutsideVariable(final List list) {}
/**
* get the modified variables.
- * @return an empty list
+ *
+ * @param list the list where we will put variables
*/
- public void getModifiedVariable(final List list) {
- }
+ public void getModifiedVariable(final List list) {}
/**
* Get the variables used.
- * @return an empty list
+ *
+ * @param list the list where we will put variables
*/
- public void getUsedVariable(final List list) {
- }
+ public void getUsedVariable(final List list) {}
}