KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > parse > VarDeclarator


1 package polyglot.parse;
2
3 import polyglot.ast.*;
4 import polyglot.util.*;
5
6 /**
7  * Encapsulates some of the data in a variable declaration. Used only by the parser.
8  */

9 public class VarDeclarator {
10     public Position pos;
11     public String JavaDoc name;
12     public int dims;
13     public Expr init;
14
15     public VarDeclarator(Position pos, String JavaDoc name) {
16         this.pos = pos;
17         this.name = name;
18         this.dims = 0;
19         this.init = null;
20     }
21     
22     public Position position() {
23         return pos;
24     }
25 }
26
Popular Tags