Exemple #1
0
 public Block ifNotNullGoto(LabelNode label) {
   nodes.add(JumpInstruction.jumpIfNotNull(label));
   return this;
 }
Exemple #2
0
 public Block gotoLabel(LabelNode label) {
   nodes.add(JumpInstruction.jump(label));
   return this;
 }
Exemple #3
0
 public Block ifNotZeroGoto(LabelNode label) {
   nodes.add(JumpInstruction.jumpIfNotEqualZero(label));
   return this;
 }
 @Override
 public Void visitJumpInstruction(ByteCodeNode parent, JumpInstruction jumpInstruction) {
   printLine("%s %s", jumpInstruction.getOpCode(), jumpInstruction.getLabel().getName());
   return null;
 }