mjc

org.multijava.mjc
Class CodeLabel

java.lang.Object
  extended byorg.multijava.util.classfile.AbstractInstructionAccessor
      extended byorg.multijava.mjc.CodeLabel
All Implemented Interfaces:
InstructionAccessor

class CodeLabel
extends AbstractInstructionAccessor

This class represents a position in the code array where the associated instruction has not yet been generated.


Field Summary
private  int address
           
 
Constructor Summary
CodeLabel()
          Constructs a new code label.
 
Method Summary
 int getAddress()
          Returns the address of the label in the code array.
 boolean hasAddress()
          Returns true iff the label has already been planted.
 void setAddress(int address)
          Sets the address of the label in the code array.
 
Methods inherited from class org.multijava.util.classfile.AbstractInstructionAccessor
transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

private int address
Constructor Detail

CodeLabel

public CodeLabel()
Constructs a new code label.

Method Detail

setAddress

public void setAddress(int address)
Sets the address of the label in the code array.


getAddress

public int getAddress()
Returns the address of the label in the code array.


hasAddress

public boolean hasAddress()
Returns true iff the label has already been planted.


mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.