當前位置: 首頁>>代碼示例>>Java>>正文


Java AbstractInsnNode.TYPE_INSN屬性代碼示例

本文整理匯總了Java中org.objectweb.asm.tree.AbstractInsnNode.TYPE_INSN屬性的典型用法代碼示例。如果您正苦於以下問題:Java AbstractInsnNode.TYPE_INSN屬性的具體用法?Java AbstractInsnNode.TYPE_INSN怎麽用?Java AbstractInsnNode.TYPE_INSN使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.objectweb.asm.tree.AbstractInsnNode的用法示例。


在下文中一共展示了AbstractInsnNode.TYPE_INSN屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: updateState

private void updateState(AbstractInsnNode insn) {
  switch (insn.getType()) {
    case AbstractInsnNode.INSN:
      updateState((InsnNode) insn);
      break;
    case AbstractInsnNode.INT_INSN:
      updateState((IntInsnNode) insn);
      break;
    case AbstractInsnNode.VAR_INSN:
      updateState((VarInsnNode) insn);
      break;
    case AbstractInsnNode.TYPE_INSN:
      updateState((TypeInsnNode) insn);
      break;
    case AbstractInsnNode.FIELD_INSN:
      updateState((FieldInsnNode) insn);
      break;
    case AbstractInsnNode.METHOD_INSN:
      updateState((MethodInsnNode) insn);
      break;
    case AbstractInsnNode.INVOKE_DYNAMIC_INSN:
      updateState((InvokeDynamicInsnNode) insn);
      break;
    case AbstractInsnNode.JUMP_INSN:
      updateState((JumpInsnNode) insn);
      break;
    case AbstractInsnNode.LABEL:
      updateState((LabelNode) insn);
      break;
    case AbstractInsnNode.LDC_INSN:
      updateState((LdcInsnNode) insn);
      break;
    case AbstractInsnNode.IINC_INSN:
      updateState((IincInsnNode) insn);
      break;
    case AbstractInsnNode.TABLESWITCH_INSN:
      updateState((TableSwitchInsnNode) insn);
      break;
    case AbstractInsnNode.LOOKUPSWITCH_INSN:
      updateState((LookupSwitchInsnNode) insn);
      break;
    case AbstractInsnNode.MULTIANEWARRAY_INSN:
      updateState((MultiANewArrayInsnNode) insn);
      break;
    case AbstractInsnNode.LINE:
      updateState((LineNumberNode) insn);
      break;
    default:
      throw new Unreachable("Unexpected instruction " + insn);
  }
}
 
開發者ID:inferjay,項目名稱:r8,代碼行數:51,代碼來源:JarSourceCode.java

示例2: build

private void build(AbstractInsnNode insn, IRBuilder builder) {
  switch (insn.getType()) {
    case AbstractInsnNode.INSN:
      build((InsnNode) insn, builder);
      break;
    case AbstractInsnNode.INT_INSN:
      build((IntInsnNode) insn, builder);
      break;
    case AbstractInsnNode.VAR_INSN:
      build((VarInsnNode) insn, builder);
      break;
    case AbstractInsnNode.TYPE_INSN:
      build((TypeInsnNode) insn, builder);
      break;
    case AbstractInsnNode.FIELD_INSN:
      build((FieldInsnNode) insn, builder);
      break;
    case AbstractInsnNode.METHOD_INSN:
      build((MethodInsnNode) insn, builder);
      break;
    case AbstractInsnNode.INVOKE_DYNAMIC_INSN:
      build((InvokeDynamicInsnNode) insn, builder);
      break;
    case AbstractInsnNode.JUMP_INSN:
      build((JumpInsnNode) insn, builder);
      break;
    case AbstractInsnNode.LABEL:
      build((LabelNode) insn, builder);
      break;
    case AbstractInsnNode.LDC_INSN:
      build((LdcInsnNode) insn, builder);
      break;
    case AbstractInsnNode.IINC_INSN:
      build((IincInsnNode) insn, builder);
      break;
    case AbstractInsnNode.TABLESWITCH_INSN:
      build((TableSwitchInsnNode) insn, builder);
      break;
    case AbstractInsnNode.LOOKUPSWITCH_INSN:
      build((LookupSwitchInsnNode) insn, builder);
      break;
    case AbstractInsnNode.MULTIANEWARRAY_INSN:
      build((MultiANewArrayInsnNode) insn, builder);
      break;
    case AbstractInsnNode.LINE:
      build((LineNumberNode) insn, builder);
      break;
    default:
      throw new Unreachable("Unexpected instruction " + insn);
  }
}
 
開發者ID:inferjay,項目名稱:r8,代碼行數:51,代碼來源:JarSourceCode.java

示例3: populate

private void populate() {
	switch (opcode.getType()) {
	case AbstractInsnNode.INSN:
		populate(OpcodeUtil.getInsnSubset(OpcodeUtil.opcodeToName(opcode.getOpcode())));
		break;
	case AbstractInsnNode.INT_INSN:
		populate(OpcodeUtil.OPS_INT);
		break;
	case AbstractInsnNode.VAR_INSN:
		populate(OpcodeUtil.OPS_VAR);
		break;
	case AbstractInsnNode.TYPE_INSN:
		populate(OpcodeUtil.OPS_TYPE);
		break;
	case AbstractInsnNode.FIELD_INSN:
		populate(OpcodeUtil.OPS_FIELD);
		break;
	case AbstractInsnNode.METHOD_INSN:
		populate(OpcodeUtil.OPS_METHOD);
		break;
	case AbstractInsnNode.INVOKE_DYNAMIC_INSN:
		populate(OpcodeUtil.OPS_INDY_METHOD);
		break;
	case AbstractInsnNode.JUMP_INSN:
		populate(OpcodeUtil.OPS_JUMP);
		break;
	case AbstractInsnNode.LDC_INSN:
		populate(OpcodeUtil.OPS_LDC);
		break;
	case AbstractInsnNode.IINC_INSN:
		populate(OpcodeUtil.OPS_IINC);
		break;
	case AbstractInsnNode.TABLESWITCH_INSN:
		populate(OpcodeUtil.OPS_TABLESWITCH);
		break;
	case AbstractInsnNode.LOOKUPSWITCH_INSN:
		populate(OpcodeUtil.OPS_LOOKUPSWITCH);
		break;
	case AbstractInsnNode.MULTIANEWARRAY_INSN:
		populate(OpcodeUtil.OPS_MULTIANEWARRAY);
		break;
	case AbstractInsnNode.LABEL:
	case AbstractInsnNode.LINE:
		break;
	case AbstractInsnNode.FRAME:
		populateFrames(OpcodeUtil.OPS_FRAME);
		break;
	}
}
 
開發者ID:Col-E,項目名稱:Recaf,代碼行數:49,代碼來源:OpcodeTypeSwitchPanel.java


注:本文中的org.objectweb.asm.tree.AbstractInsnNode.TYPE_INSN屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。