net.sf.rej.java.instruction
Class DecompilationContext
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecompilationContext
public DecompilationContext()
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()