1 package net.sourceforge.phpdt.internal.compiler.ast;
8 * It will contains some html, javascript, css ...
9 * @author Matthieu Casanova
11 public final class HTMLCode extends AstNode {
14 private final String htmlCode;
17 * Create an html Block.
18 * @param htmlCode the html inside the block
19 * @param sourceStart the starting offset
20 * @param sourceEnd the ending offset
22 public HTMLCode(final String htmlCode,
23 final int sourceStart,
24 final int sourceEnd) {
25 super(sourceStart, sourceEnd);
26 this.htmlCode = htmlCode;
30 * I don't process tabs, it will only return the html inside.
31 * @return the text of the block
33 public String toString() {
38 * I don't process tabs, it will only return the html inside.
39 * @param tab how many tabs before this html
40 * @return the text of the block
42 public String toString(final int tab) {
43 return htmlCode + ' ';
47 * Get the variables from outside (parameters, globals ...)
49 * @param list the list where we will put variables
51 public void getOutsideVariable(final List list) {}
54 * get the modified variables.
56 * @param list the list where we will put variables
58 public void getModifiedVariable(final List list) {}
61 * Get the variables used.
63 * @param list the list where we will put variables
65 public void getUsedVariable(final List list) {}