本文整理了Java中org.objectweb.asm.tree.LabelNode.resetLabel()
方法的一些代码示例,展示了LabelNode.resetLabel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LabelNode.resetLabel()
方法的具体详情如下:
包路径:org.objectweb.asm.tree.LabelNode
类名称:LabelNode
方法名:resetLabel
暂无
代码示例来源:origin: kilim/kilim
public void resetLabels() {
for (int i = 0; i < posToLabelMap.size(); i++) {
LabelNode ln = posToLabelMap.get(i);
if (ln != null) {
ln.resetLabel();
}
}
}
代码示例来源:origin: org.ow2.asm/asm-tree
/**
* Resets all the labels in the instruction list. This method should be called before reusing an
* instruction list between several <code>ClassWriter</code>s.
*/
public void resetLabels() {
AbstractInsnNode currentInsn = firstInsn;
while (currentInsn != null) {
if (currentInsn instanceof LabelNode) {
((LabelNode) currentInsn).resetLabel();
}
currentInsn = currentInsn.nextInsn;
}
}
代码示例来源:origin: org.ow2.asm/asm-debug-all
/**
* Reset all labels in the instruction list. This method should be called
* before reusing same instructions list between several
* <code>ClassWriter</code>s.
*/
public void resetLabels() {
AbstractInsnNode insn = first;
while (insn != null) {
if (insn instanceof LabelNode) {
((LabelNode) insn).resetLabel();
}
insn = insn.next;
}
}
内容来源于网络,如有侵权,请联系作者删除!