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