3.x RC1 compatibility
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / HTMLCode.java
index 7c324b8..ad6ff93 100644 (file)
@@ -1,7 +1,6 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
 import java.util.List;
-import java.util.ArrayList;
 
 
 /**
@@ -9,10 +8,10 @@ import java.util.ArrayList;
  * 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.
@@ -20,7 +19,7 @@ public class HTMLCode extends AstNode {
    * @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);
@@ -32,7 +31,7 @@ public class HTMLCode extends AstNode {
    * @return the text of the block
    */
   public String toString() {
-    return new String(htmlCode);
+    return htmlCode;
   }
 
   /**
@@ -41,30 +40,27 @@ public class HTMLCode extends AstNode {
    * @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 List getOutsideVariable() {
-    return new ArrayList();
-  }
+  public void getOutsideVariable(final List list) {}
 
   /**
    * get the modified variables.
-   * @return an empty list
+   *
+   * @param list the list where we will put variables
    */
-  public List getModifiedVariable() {
-    return new ArrayList();
-  }
+  public void getModifiedVariable(final List list) {}
 
   /**
    * Get the variables used.
-   * @return an empty list
+   *
+   * @param list the list where we will put variables
    */
-  public List getUsedVariable() {
-    return new ArrayList();
-  }
+  public void getUsedVariable(final List list) {}
 }