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