01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.compiler.codegen;
11:
12: public abstract class Label {
13:
14: public CodeStream codeStream;
15: public int position = POS_NOT_SET; // position=POS_NOT_SET Then it's pos is not set.
16:
17: public final static int POS_NOT_SET = -1;
18:
19: public Label() {
20: // for creating labels ahead of code generation
21: }
22:
23: public Label(CodeStream codeStream) {
24: this .codeStream = codeStream;
25: }
26:
27: /*
28: * Place the label target position.
29: */
30: public abstract void place();
31:
32: }
|