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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package org.eclipse.jdt.internal.compiler.codegen;
13 import org.eclipse.jdt.internal.compiler.lookup.TypeBinding;
15 public class ExceptionLabel extends Label {
17 public int start = POS_NOT_SET;
18 public int end = POS_NOT_SET;
19 public TypeBinding exceptionType;
21 public ExceptionLabel(CodeStream codeStream, TypeBinding exceptionType) {
24 this.exceptionType = exceptionType;
28 public boolean isStandardLabel(){
35 // register the handler inside the codeStream then normal place
36 codeStream.registerExceptionHandler(this);
40 public void placeEnd() {
42 this.end = codeStream.position;
45 public void placeStart() {
47 this.start = codeStream.position;