001    /*
002    @license.text@
003     */
004    package biz.hammurapi.codegen;
005    
006    import org.apache.bcel.generic.InstructionHandle;
007    
008    /**
009     * @author Pavel Vlasov
010     * @version $Revision: 1.1 $
011     */
012    public class ExceptionHandler {
013            private InstructionHandle from;
014            private InstructionHandle to;
015            private InstructionHandle handler;
016            private String type;
017    
018            /**
019             * @param type
020             */
021            public ExceptionHandler(String type) {
022                    super();
023                    this.type = type;
024            }
025            public InstructionHandle getFrom() {
026                    return from;
027            }
028            public void setFrom(InstructionHandle from) {
029                    this.from = from;
030            }
031            public InstructionHandle getHandler() {
032                    return handler;
033            }
034            public void setHandler(InstructionHandle handler) {
035                    this.handler = handler;
036            }
037            public InstructionHandle getTo() {
038                    return to;
039            }
040            public void setTo(InstructionHandle to) {
041                    this.to = to;
042            }
043            public String getType() {
044                    return type;
045            }
046    }