X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/HTMLCode.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/HTMLCode.java index e52d981..ad6ff93 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/HTMLCode.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/HTMLCode.java @@ -1,15 +1,17 @@ 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. @@ -17,7 +19,9 @@ public class HTMLCode extends AstNode { * @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; } @@ -27,7 +31,7 @@ public class HTMLCode extends AstNode { * @return the text of the block */ public String toString() { - return new String(htmlCode); + return htmlCode; } /** @@ -35,7 +39,28 @@ public class HTMLCode extends AstNode { * @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) {} }