01: package javaparser;
02:
03: import javaparser.javacc_gen.*;
04:
05: public class Variable {
06: public final String type; // ex: "double" or "Vector<String>"
07: public final String name; // ex: "a"
08:
09: public Token startDecl, endDecl;
10: // for loal variables: from the decl up to the next "}" for params: constructor or method bloc
11: public Token startValidity, endValidity;
12:
13: public Variable(String type, String name) {
14: this .type = type;
15: this .name = name;
16: }
17:
18: /** for loops, local declarations, ...
19: *
20: public static Variable parseFromLocalVariableDeclarationNode(ParserTreeNode lvdn)
21: {
22: return null;
23: }*/
24:
25: }
|