|
1 |
| package edu.rice.cs.javalanglevels.tree; |
|
2 |
| |
|
3 |
| import edu.rice.cs.javalanglevels.SourceInfo; |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| public abstract class VariableDeclarator extends JExpression { |
|
11 |
| private final Type _type; |
|
12 |
| private final Word _name; |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
423
| public VariableDeclarator(SourceInfo in_sourceInfo, Type in_type, Word in_name) {
|
|
19 |
423
| super(in_sourceInfo);
|
|
20 |
| |
|
21 |
423
| if (in_type == null) {
|
|
22 |
0
| throw new java.lang.IllegalArgumentException("Parameter 'type' to the VariableDeclarator constructor was null. This class may not have null field values.");
|
|
23 |
| } |
|
24 |
423
| _type = in_type;
|
|
25 |
| |
|
26 |
423
| if (in_name == null) {
|
|
27 |
0
| throw new java.lang.IllegalArgumentException("Parameter 'name' to the VariableDeclarator constructor was null. This class may not have null field values.");
|
|
28 |
| } |
|
29 |
423
| _name = in_name;
|
|
30 |
| } |
|
31 |
| |
|
32 |
1149
| public Type getType() { return _type; }
|
|
33 |
930
| public Word getName() { return _name; }
|
|
34 |
| |
|
35 |
| public abstract <RetType> RetType visit(JExpressionIFVisitor<RetType> visitor); |
|
36 |
| public abstract void visit(JExpressionIFVisitor_void visitor); |
|
37 |
| public abstract void outputHelp(TabPrintWriter writer); |
|
38 |
| protected abstract int generateHashCode(); |
|
39 |
| } |