Documentation update from php.net
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / parser / VariableInfo.java
1 package net.sourceforge.phpdt.internal.compiler.parser;
2
3 import net.sourceforge.phpdt.internal.compiler.ast.SingleTypeReference;
4
5 public class VariableInfo {
6         static final public int LEVEL_UNDEFINED = 0;
7
8         static final public int LEVEL_GLOBAL_VAR = 3;
9
10         static final public int LEVEL_STATIC_VAR = 4;
11
12         static final public int LEVEL_CLASS_UNIT = 5;
13
14         static final public int LEVEL_FUNCTION_DEFINITION = 6;
15
16         static final public int LEVEL_METHOD_DEFINITION = 7;
17
18         public int level = LEVEL_UNDEFINED;
19
20         int startPosition;
21
22         public SingleTypeReference reference = null;
23
24         public char[] typeIdentifier = null;
25
26         public VariableInfo(int startPosition) {
27                 this(startPosition, LEVEL_UNDEFINED);
28         }
29
30         public VariableInfo(int startPosition, int level) {
31                 this.startPosition = startPosition;
32                 this.level = level;
33         }
34 }