if null java_Java Constants.IFNULL属性代码示例

/** Create branch instruction by given opcode, except LOOKUPSWITCH and TABLESWITCH.

* For those you should use the SWITCH compound instruction.

*/

public static BranchInstruction createBranchInstruction(short opcode, InstructionHandle target) {

switch(opcode) {

case Constants.IFEQ: return new IFEQ(target);

case Constants.IFNE: return new IFNE(target);

case Constants.IFLT: return new IFLT(target);

case Constants.IFGE: return new IFGE(target);

case Constants.IFGT: return new IFGT(target);

case Constants.IFLE: return new IFLE(target);

case Constants.IF_ICMPEQ: return new IF_ICMPEQ(target);

case Constants.IF_ICMPNE: return new IF_ICMPNE(target);

case Constants.IF_ICMPLT: return new IF_ICMPLT(target);

case Constants.IF_ICMPGE: return new IF_ICMPGE(target);

case Constants.IF_ICMPGT: return new IF_ICMPGT(target);

case Constants.IF_ICMPLE: return new IF_ICMPLE(target);

case Constants.IF_ACMPEQ: return new IF_ACMPEQ(target);

case Constants.IF_ACMPNE: return new IF_ACMPNE(target);

case Constants.GOTO: return new GOTO(target);

case Constants.JSR: return new JSR(target);

case Constants.IFNULL: return new IFNULL(target);

case Constants.IFNONNULL: return new IFNONNULL(target);

case Constants.GOTO_W: return new GOTO_W(target);

case Constants.JSR_W: return new JSR_W(target);

default:

throw new RuntimeException("Invalid opcode: " + opcode);

}

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值