dovs.instructions
Class Iareturn

java.lang.Object
  extended by dovs.instructions.Instruction
      extended by dovs.instructions.Iareturn

public class Iareturn
extends Instruction

An areturn instruction.


Constructor Summary
Iareturn()
           
 
Method Summary
 boolean canFallThrough()
          Can this instruction transfer control to the succeeding instruction?
 int stackChange()
          Returns the number of stack slots that the stack height will change when this instruction is executed.
 String toAsm()
          Returns the instruction in jasmin format.
 
Methods inherited from class dovs.instructions.Instruction
canJump, getArg, getID, getID, getTarget, localAccess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Iareturn

public Iareturn()
Method Detail

toAsm

public String toAsm()
Description copied from class: Instruction
Returns the instruction in jasmin format.

Specified by:
toAsm in class Instruction
Returns:
the instruction as a string

stackChange

public int stackChange()
Description copied from class: Instruction
Returns the number of stack slots that the stack height will change when this instruction is executed. A positive value means the stack will grow. A negative value means the stack will shrink.

Specified by:
stackChange in class Instruction
Returns:
the stack change

canFallThrough

public boolean canFallThrough()
Description copied from class: Instruction
Can this instruction transfer control to the succeeding instruction?

Overrides:
canFallThrough in class Instruction
Returns:
whether or not the instruction can fall through