*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / Literal.java
1 package net.sourceforge.phpdt.internal.compiler.ast;
2
3 import java.util.List;
4 import java.util.ArrayList;
5
6 /**
7  * Here is the Superclass of the Literal expressions.
8  * @author Matthieu Casanova
9  */
10 public abstract class Literal extends Expression {
11
12   /**
13    * Create a Literal.
14    * @param sourceStart starting offset
15    * @param sourceEnd ending offset
16    */
17   public Literal(final int sourceStart, final int sourceEnd) {
18     super(sourceStart, sourceEnd);
19   }
20
21   public abstract char[] source();
22
23   /**
24    * Get the variables from outside (parameters, globals ...)
25    * @return an empty list
26    */
27   public List getOutsideVariable() {
28     return new ArrayList();
29   }
30
31   /**
32    * get the modified variables.
33    * @return an empty list
34    */
35   public List getModifiedVariable() {
36     return new ArrayList();
37   }
38
39   /**
40    * Get the variables used.
41    * @return an empty list
42    */
43   public List getUsedVariable() {
44     return new ArrayList();
45   }
46 }