Changes:
[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 class ConstantIdentifier extends Expression {
11
12   public 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   public void getOutsideVariable(final List list) {
38   }
39
40   /**
41    * get the modified variables.
42    */
43   public void getModifiedVariable(final List list) {
44   }
45
46   /**
47    * Get the variables used.
48    */
49   public void getUsedVariable(final List list) {
50   }
51 }