3.x RC1 compatibility
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / ConstantIdentifier.java
1 package net.sourceforge.phpdt.internal.compiler.ast;
2
3 import java.util.List;
4
5 import test.Token;
6
7 /**
8  * @author Matthieu Casanova
9  */
10 public final class ConstantIdentifier extends Expression {
11
12   private final String name;
13
14   public ConstantIdentifier(final String name,
15                             final int sourceStart,
16                             final int sourceEnd) {
17     super(sourceStart, sourceEnd);
18     this.name = name;
19   }
20
21   public ConstantIdentifier(final Token token) {
22     super(token.sourceStart,token.sourceEnd);
23     name = token.image;
24   }
25
26   /**
27    * Return the expression as String.
28    * @return the expression
29    */
30   public String toStringExpression() {
31     return name;
32   }
33
34   /**
35    * Get the variables from outside (parameters, globals ...)
36    *
37    * @param list the list where we will put variables
38    */
39   public void getOutsideVariable(final List list) {}
40
41   /**
42    * get the modified variables.
43    *
44    * @param list the list where we will put variables
45    */
46   public void getModifiedVariable(final List list) {}
47
48   /**
49    * Get the variables used.
50    *
51    * @param list the list where we will put variables
52    */
53   public void getUsedVariable(final List list) {}
54 }