|
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 TryCatchStatement extends Statement { |
|
11 |
| private final Block _tryBlock; |
|
12 |
| private final CatchBlock[] _catchBlocks; |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
44
| public TryCatchStatement(SourceInfo in_sourceInfo, Block in_tryBlock, CatchBlock[] in_catchBlocks) {
|
|
19 |
44
| super(in_sourceInfo);
|
|
20 |
| |
|
21 |
44
| if (in_tryBlock == null) {
|
|
22 |
0
| throw new java.lang.IllegalArgumentException("Parameter 'tryBlock' to the TryCatchStatement constructor was null. This class may not have null field values.");
|
|
23 |
| } |
|
24 |
44
| _tryBlock = in_tryBlock;
|
|
25 |
| |
|
26 |
44
| if (in_catchBlocks == null) {
|
|
27 |
0
| throw new java.lang.IllegalArgumentException("Parameter 'catchBlocks' to the TryCatchStatement constructor was null. This class may not have null field values.");
|
|
28 |
| } |
|
29 |
44
| _catchBlocks = in_catchBlocks;
|
|
30 |
| } |
|
31 |
| |
|
32 |
65
| public Block getTryBlock() { return _tryBlock; }
|
|
33 |
211
| public CatchBlock[] getCatchBlocks() { return _catchBlocks; }
|
|
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 |
| } |