All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.fub.bytecode.generic.LDC

java.lang.Object
   |
   +----de.fub.bytecode.generic.Instruction
           |
           +----de.fub.bytecode.generic.CPInstruction
                   |
                   +----de.fub.bytecode.generic.LDC

public class LDC
extends CPInstruction
implements PushInstruction, ExceptionThrower
LDC - Push item from constant pool
Stack: ... -> ..., item.word1, item.word2

Version:
$Id: LDC.java,v 1.6 1999/09/09 07:42:55 dahm Exp $
Author:
M. Dahm

Constructor Index

 o LDC(int)

Method Index

 o dump(DataOutputStream)
Dump instruction as byte code to stream out.
 o getExceptions()
 o getType(ConstantPoolGen)
 o initFromFile(ByteSequence, boolean)
Read needed data (e.g.
 o setIndex(int)
Set the index to constant pool and adjust size.
 o setSize()

Constructors

 o LDC
 public LDC(int index)

Methods

 o setSize
 protected final void setSize()
 o dump
 public void dump(DataOutputStream out) throws IOException
Dump instruction as byte code to stream out.

Parameters:
out - Output stream
Overrides:
dump in class CPInstruction
 o setIndex
 public final void setIndex(int index)
Set the index to constant pool and adjust size.

Overrides:
setIndex in class CPInstruction
 o initFromFile
 protected void initFromFile(ByteSequence bytes,
                             boolean wide) throws IOException
Read needed data (e.g. index) from file.

Overrides:
initFromFile in class CPInstruction
 o getType
 public Type getType(ConstantPoolGen cpg)
Overrides:
getType in class CPInstruction
 o getExceptions
 public Class[] getExceptions()

All Packages  Class Hierarchy  This Package  Previous  Next  Index