net.sf.rej.java.instruction
Class DecompilationContext

java.lang.Object
  extended by net.sf.rej.java.instruction.DecompilationContext

public class DecompilationContext
extends java.lang.Object

DecompilationContext is a context class used by instruction instances to obtain information about the context they appear in.

Author:
Sami Koivu

Constructor Summary
DecompilationContext()
           
 
Method Summary
 DecompilationContext createNew()
           
 ConstantPool getConstantPool()
           
 Exceptions getExceptions()
           
 LocalVariableTableAttribute getLocalVariableTable()
           
 ByteParser getParser()
          Deprecated. 
 int getPosition()
           
 void incrementPosition(Instruction instruction)
          Increments the pc position of this context by the size of the given instruction.
 void incrementPosition(int count)
           
 void setConstantPool(ConstantPool cp)
           
 void setExceptions(Exceptions exceptions)
           
 void setLocalVariableTable(LocalVariableTableAttribute lvtAttr)
           
 void setParser(ByteParser parser)
           
 void setPosition(int pos)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecompilationContext

public DecompilationContext()
Method Detail

setPosition

public void setPosition(int pos)

getPosition

public int getPosition()

incrementPosition

public void incrementPosition(Instruction instruction)
Increments the pc position of this context by the size of the given instruction.

Parameters:
instruction -

incrementPosition

public void incrementPosition(int count)

setParser

public void setParser(ByteParser parser)

getParser

@Deprecated
public ByteParser getParser()
Deprecated. 


getConstantPool

public ConstantPool getConstantPool()

setConstantPool

public void setConstantPool(ConstantPool cp)

setExceptions

public void setExceptions(Exceptions exceptions)

getExceptions

public Exceptions getExceptions()

setLocalVariableTable

public void setLocalVariableTable(LocalVariableTableAttribute lvtAttr)

getLocalVariableTable

public LocalVariableTableAttribute getLocalVariableTable()

createNew

public DecompilationContext createNew()