Makefile fixup
[org.ibex.tool.git] / repo / org.ibex.tool / src / org / eclipse / jdt / internal / compiler / codegen / ExceptionLabel.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package org.eclipse.jdt.internal.compiler.codegen;
12
13 import org.eclipse.jdt.internal.compiler.lookup.TypeBinding;
14
15 public class ExceptionLabel extends Label {
16         
17         public int start = POS_NOT_SET;
18         public int end = POS_NOT_SET;
19         public TypeBinding exceptionType;
20         
21         public ExceptionLabel(CodeStream codeStream, TypeBinding exceptionType) {
22
23                 super(codeStream);
24                 this.exceptionType = exceptionType;
25                 this.placeStart();      
26         }
27
28         public boolean isStandardLabel(){
29
30                 return false;
31         }
32
33         public void place() {
34
35                 // register the handler inside the codeStream then normal place
36                 codeStream.registerExceptionHandler(this);
37                 super.place();
38         }
39
40         public void placeEnd() {
41
42                 this.end = codeStream.position;
43         }
44         
45         public void placeStart() {
46
47                 this.start = codeStream.position;
48         }
49 }