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
9 * IBM Corporation - initial API and implementation
10 ******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.codegen;
13 import net.sourceforge.phpdt.internal.compiler.lookup.TypeBinding;
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) {
21 this.exceptionType = exceptionType;
22 this.start = codeStream.position;
24 public boolean isStandardLabel(){
28 // register the handler inside the codeStream then normal place
29 codeStream.registerExceptionHandler(this);
33 public void placeEnd() {
34 end = codeStream.position;