Temporarily replace new Project Wizard until errors in old one investigated..
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / codegen / ExceptionLabel.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v0.5 
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v05.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  ******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.codegen;
12
13 import net.sourceforge.phpdt.internal.compiler.lookup.TypeBinding;
14
15 public class ExceptionLabel extends Label {
16         public int start = POS_NOT_SET;
17         public int end = POS_NOT_SET;
18         public TypeBinding exceptionType;
19 public ExceptionLabel(CodeStream codeStream, TypeBinding exceptionType) {
20         super(codeStream);
21         this.exceptionType = exceptionType;
22         this.start = codeStream.position;       
23 }
24 public boolean isStandardLabel(){
25         return false;
26 }
27 public void place() {
28         // register the handler inside the codeStream then normal place
29         codeStream.registerExceptionHandler(this);
30         super.place();
31
32 }
33 public void placeEnd() {
34         end = codeStream.position;
35 }
36 }