net.sf.rej.gui
Class InstructionHints

java.lang.Object
  extended by net.sf.rej.gui.InstructionHints

public class InstructionHints
extends java.lang.Object

This class is used for obtaining hints / descriptions of the different instructions.

Author:
Sami Koivu

Constructor Summary
InstructionHints()
           
 
Method Summary
 java.lang.String getHint(Instruction instr)
          Returns the hint for the given instruction.
 java.lang.String getHint(int opcode)
          Returns the hint for the given instruction opcode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstructionHints

public InstructionHints()
Method Detail

getHint

public java.lang.String getHint(int opcode)
Returns the hint for the given instruction opcode.

Parameters:
opcode - the opcode of the instruction requested.
Returns:
a description of what the instruction does.

getHint

public java.lang.String getHint(Instruction instr)
Returns the hint for the given instruction. If the instruction is a widened instruction, the hint for the contained, widened instruction is returned.

Parameters:
instr - identifies the instruction whose hint is being requested.
Returns:
a description of what the instruction does.