Debian Codegraph @

src/main/java/org/jboss/classfilewriter/code/ExceptionHandler.java

raw
1 /*
2 * JBoss, Home of Professional Open Source.
3 *
4 * Copyright 2012 Red Hat, Inc.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18 package org.jboss.classfilewriter.code;
19
20 /**
21 *
22 * @author Stuart Douglas
23 *
24 */
25 public class ExceptionHandler {
26
27 private final int start;
28 private final int exceptionIndex;
29 private final String exceptionType;
30 private final StackFrame frame;
31 private int end;
32 private int handler;
33
34 ExceptionHandler(int start, int exceptionIndex, String exceptionType, StackFrame frame) {
35 this.start = start;
36 this.exceptionIndex = exceptionIndex;
37 this.exceptionType = exceptionType;
38 this.frame = frame;
39 }
40
41 int getEnd() {
42 return end;
43 }
44
45 void setEnd(int end) {
46 this.end = end;
47 }
48
49 int getHandler() {
50 return handler;
51 }
52
53 void setHandler(int handler) {
54 this.handler = handler;
55 }
56
57 int getStart() {
58 return start;
59 }
60
61 int getExceptionIndex() {
62 return exceptionIndex;
63 }
64
65 StackFrame getFrame() {
66 return frame;
67 }
68
69 public String getExceptionType() {
70 return exceptionType;
71 }
72 }