net.sf.farrago.fennel.calc
Class CalcProgramBuilder.JumpInstructionDef

java.lang.Object
  extended by net.sf.farrago.fennel.calc.CalcProgramBuilder.InstructionDef
      extended by net.sf.farrago.fennel.calc.CalcProgramBuilder.JumpInstructionDef
Enclosing class:
CalcProgramBuilder

static class CalcProgramBuilder.JumpInstructionDef
extends CalcProgramBuilder.InstructionDef


Field Summary
 
Fields inherited from class net.sf.farrago.fennel.calc.CalcProgramBuilder.InstructionDef
name, regCount
 
Constructor Summary
CalcProgramBuilder.JumpInstructionDef(String name, int regCount)
           
 
Method Summary
(package private)  void add(CalcProgramBuilder builder, CalcProgramBuilder.Operand... operands)
          Adds this instruction with a set of operands to a program.
(package private)  void add(CalcProgramBuilder builder, int line)
           
(package private)  void add(CalcProgramBuilder builder, int line, CalcReg reg)
           
(package private)  void add(CalcProgramBuilder builder, String label)
           
(package private)  void add(CalcProgramBuilder builder, String label, CalcReg reg)
           
 
Methods inherited from class net.sf.farrago.fennel.calc.CalcProgramBuilder.InstructionDef
add, add, addInternal, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalcProgramBuilder.JumpInstructionDef

CalcProgramBuilder.JumpInstructionDef(String name,
                                      int regCount)
Method Detail

add

void add(CalcProgramBuilder builder,
         CalcProgramBuilder.Operand... operands)
Description copied from class: CalcProgramBuilder.InstructionDef
Adds this instruction with a set of operands to a program.

The default implementation casts each operand to a CalcReg, and calls CalcProgramBuilder.InstructionDef.add(CalcProgramBuilder, CalcReg[]). If this instruction's operands are not registers, override this method.

Overrides:
add in class CalcProgramBuilder.InstructionDef
Parameters:
builder - Program builder
operands - Operands

add

void add(CalcProgramBuilder builder,
         int line)

add

void add(CalcProgramBuilder builder,
         String label)

add

void add(CalcProgramBuilder builder,
         int line,
         CalcReg reg)

add

void add(CalcProgramBuilder builder,
         String label,
         CalcReg reg)