org.objectweb.asm.tree.IntInsnNode.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中org.objectweb.asm.tree.IntInsnNode.<init>()方法的一些代码示例,展示了IntInsnNode.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IntInsnNode.<init>()方法的具体详情如下:
包路径:org.objectweb.asm.tree.IntInsnNode
类名称:IntInsnNode
方法名:<init>

IntInsnNode.<init>介绍

[英]Constructs a new IntInsnNode.
[中]构造一个新的IntinNode。

代码示例

代码示例来源:origin: org.ow2.asm/asm-debug-all

@Override
  public AbstractInsnNode clone(final Map<LabelNode, LabelNode> labels) {
    return new IntInsnNode(opcode, operand).cloneAnnotations(this);
  }
}

代码示例来源:origin: CalebWhiting/java-asm-obfuscator

public static AbstractInsnNode newIntegerNode(int i) {
    if (i >= -1 && i <= 5) {
      return new InsnNode(Opcodes.ICONST_0 + i);
    } else if (i >= Byte.MIN_VALUE && i <= Byte.MAX_VALUE) {
      return new IntInsnNode(Opcodes.BIPUSH, i);
    } else if (i >= Short.MIN_VALUE && i <= Short.MAX_VALUE) {
      return new IntInsnNode(Opcodes.SIPUSH, i);
    } else {
      return new LdcInsnNode(i);
    }
  }
}

代码示例来源:origin: junkdog/artemis-odb

@Override
public void visitIntInsn(int opcode, int operand) {
  node = new IntInsnNode(opcode, operand);
  super.visitIntInsn(opcode, operand);
}

代码示例来源:origin: org.lwjgl.lwjgl/lwjgl_util

static AbstractInsnNode getIntNode(final int value) {
  if ( value <= 5 && -1 <= value )
    return new InsnNode(ICONST_M1 + value + 1);
  if ( value >= Byte.MIN_VALUE && value <= Byte.MAX_VALUE )
    return new IntInsnNode(BIPUSH, value);
  if ( value >= Short.MIN_VALUE && value <= Short.MAX_VALUE )
    return new IntInsnNode(SIPUSH, value);
  return new LdcInsnNode(value);
}

代码示例来源:origin: org.ow2.asm/asm-tree

@Override
 public AbstractInsnNode clone(final Map<LabelNode, LabelNode> clonedLabels) {
  return new IntInsnNode(opcode, operand).cloneAnnotations(this);
 }
}

代码示例来源:origin: net.onedaybeard.artemis/artemis-odb-weaver

@Override
public void visitIntInsn(int opcode, int operand) {
  node = new IntInsnNode(opcode, operand);
  super.visitIntInsn(opcode, operand);
}

代码示例来源:origin: ItzSomebody/Radon

public static AbstractInsnNode getNumberInsn(int number) {
  if (number >= -1 && number <= 5) {
    return new InsnNode(number + 3);
  } else if (number >= -128 && number <= 127) {
    return new IntInsnNode(Opcodes.BIPUSH, number);
  } else if (number >= -32768 && number <= 32767) {
    return new IntInsnNode(Opcodes.SIPUSH, number);
  } else {
    return new LdcInsnNode(number);
  }
}

代码示例来源:origin: qmx/jitescript

public CodeBlock sipush(final int shortValue) {
  instructionList.add(new IntInsnNode(SIPUSH, shortValue));
  return this;
}

代码示例来源:origin: qmx/jitescript

public CodeBlock visitInsnNode(final int opcode, final int operand) {
  instructionList.add(new IntInsnNode(opcode, operand));
  return this;
}

代码示例来源:origin: com.github.bingoohuang/blackcat-instrument

public static AbstractInsnNode getPushInst(int value) {
  if (value >= -1 && value <= 5)
    return new InsnNode(ICONST_M1 + value + 1);
  if ((value >= -128) && (value <= 127))
    return new IntInsnNode(BIPUSH, value);
  if ((value >= -32768) && (value <= 32767))
    return new IntInsnNode(SIPUSH, value);
  return new LdcInsnNode(value);
}

代码示例来源:origin: fge/grappa

public CodeBlock visitInsnNode(final int opcode, final int operand)
{
  instructionList.add(new IntInsnNode(opcode, operand));
  return this;
}

代码示例来源:origin: org.ow2.asm/asm-tree

@Override
public void visitIntInsn(final int opcode, final int operand) {
 instructions.add(new IntInsnNode(opcode, operand));
}

代码示例来源:origin: net.ledem/brennus-asm

public void push(int bipush, int intValue, Object... comments) {
 // TODO: better than this
 stack++;
 addInstruction(new IntInsnNode(BIPUSH, intValue), comments);
}

代码示例来源:origin: fge/grappa

public CodeBlock bipush(final int byteValue)
{
  instructionList.add(new IntInsnNode(BIPUSH, byteValue));
  return this;
}

代码示例来源:origin: fge/grappa

public CodeBlock sipush(final int shortValue)
{
  instructionList.add(new IntInsnNode(SIPUSH, shortValue));
  return this;
}

代码示例来源:origin: org.ow2.asm/asm-debug-all

@Override
public void visitIntInsn(final int opcode, final int operand) {
  instructions.add(new IntInsnNode(opcode, operand));
}

代码示例来源:origin: apache/asterixdb

@Override
public void visitIntInsn(int opcode, int operand) {
  if (fieldAccessNode != null) {
    instructionsAfterFieldAccess.add(new IntInsnNode(opcode, operand));
  }
  super.visitIntInsn(opcode, operand);
}

代码示例来源:origin: qmx/jitescript

public CodeBlock newarray(final int size) {
  instructionList.add(new IntInsnNode(NEWARRAY, size));
  return this;
}

代码示例来源:origin: net.sourceforge.cobertura/cobertura

@Override
public void visitIntInsn(int arg0, int arg1) {
  super.visitIntInsn(arg0, arg1);
  appendToBacklog(new IntInsnNode(arg0, arg1));
}

代码示例来源:origin: christ66/cobertura

@Override
public void visitIntInsn(int arg0, int arg1) {
  super.visitIntInsn(arg0, arg1);
  appendToBacklog(new IntInsnNode(arg0, arg1));
}

相关文章

微信公众号

最新文章

更多