7c324b8c53007f871ce64d4a6ef1856909c96e36
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / HTMLCode.java
1 package net.sourceforge.phpdt.internal.compiler.ast;
2
3 import java.util.List;
4 import java.util.ArrayList;
5
6
7 /**
8  * It's html code.
9  * It will contains some html, javascript, css ...
10  * @author Matthieu Casanova
11  */
12 public class HTMLCode extends AstNode {
13
14   /** The html Code. */
15   public char[] htmlCode;
16
17   /**
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
22    */
23   public HTMLCode(final char[] htmlCode,
24                   final int sourceStart,
25                   final int sourceEnd) {
26     super(sourceStart, sourceEnd);
27     this.htmlCode = htmlCode;
28   }
29
30   /**
31    * I don't process tabs, it will only return the html inside.
32    * @return the text of the block
33    */
34   public String toString() {
35     return new String(htmlCode);
36   }
37
38   /**
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
42    */
43   public String toString(final int tab) {
44     return new String(htmlCode) + " ";//$NON-NLS-1$
45   }
46
47   /**
48    * Get the variables from outside (parameters, globals ...)
49    * @return an empty list
50    */
51   public List getOutsideVariable() {
52     return new ArrayList();
53   }
54
55   /**
56    * get the modified variables.
57    * @return an empty list
58    */
59   public List getModifiedVariable() {
60     return new ArrayList();
61   }
62
63   /**
64    * Get the variables used.
65    * @return an empty list
66    */
67   public List getUsedVariable() {
68     return new ArrayList();
69   }
70 }