protected final void append_inst(InstructionList il, Instruction inst) {

    // System.out.println ("append_inst: " + inst.getClass().getName());
    if (inst instanceof LOOKUPSWITCH) {
      LOOKUPSWITCH ls = (LOOKUPSWITCH) inst;
      il.append(new LOOKUPSWITCH(ls.getMatchs(), ls.getTargets(), ls.getTarget()));
    } else if (inst instanceof TABLESWITCH) {
      TABLESWITCH ts = (TABLESWITCH) inst;
      il.append(new TABLESWITCH(ts.getMatchs(), ts.getTargets(), ts.getTarget()));
    } else if (inst instanceof IfInstruction) {
      IfInstruction ifi = (IfInstruction) inst;
      il.append(InstructionFactory.createBranchInstruction(inst.getOpcode(), ifi.getTarget()));
    } else {
      il.append(inst);
    }
  }
protected final void append_inst(InstructionList il, Instruction inst) {

    
    if (inst instanceof LOOKUPSWITCH) {
      LOOKUPSWITCH ls = (LOOKUPSWITCH) inst;
      il.append(new LOOKUPSWITCH(ls.getMatchs(), ls.getTargets(), ls.getTarget()));
    } else if (inst instanceof TABLESWITCH) {
      TABLESWITCH ts = (TABLESWITCH) inst;
      il.append(new TABLESWITCH(ts.getMatchs(), ts.getTargets(), ts.getTarget()));
    } else if (inst instanceof IfInstruction) {
      IfInstruction ifi = (IfInstruction) inst;
      il.append(InstructionFactory.createBranchInstruction(inst.getOpcode(), ifi.getTarget()));
    } else {
      il.append(inst);
    }
  }
protected final void append_inst ( InstructionList il , Instruction inst ) { // System.out.println ("append_inst: " + inst.getClass().getName()); if ( inst instanceof LOOKUPSWITCH ) { LOOKUPSWITCH ls = ( LOOKUPSWITCH ) inst ; il . append ( new LOOKUPSWITCH ( ls . getMatchs ( ) , ls . getTargets ( ) , ls . getTarget ( ) ) ) ; } else if ( inst instanceof TABLESWITCH ) { TABLESWITCH ts = ( TABLESWITCH ) inst ; il . append ( new TABLESWITCH ( ts . getMatchs ( ) , ts . getTargets ( ) , ts . getTarget ( ) ) ) ; } else if ( inst instanceof IfInstruction ) { IfInstruction ifi = ( IfInstruction ) inst ; il . append ( InstructionFactory . createBranchInstruction ( inst . getOpcode ( ) , ifi . getTarget ( ) ) ) ; } else { il . append ( inst ) ; } }
Appends the specified instruction to the end of the specified list. Required because for some
reason you can't directly append jump instructions to the list -- but you can create new ones
and append them.

@param il InstructionList to be modified
@param inst Instruction to be appended
Appends the specified instruction to the end of the specified list . Required because for some reason you can t directly append jump instructions to the list -- but you can create new ones and append them .