本文整理了Java中org.objectweb.asm.Label.addReference()
方法的一些代码示例,展示了Label.addReference()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.addReference()
方法的具体详情如下:
包路径:org.objectweb.asm.Label
类名称:Label
方法名:addReference
[英]Adds a forward reference to this label. This method must be called only for a true forward reference, i.e. only if this label is not resolved yet. For backward references, the offset of the reference can be, and must be, computed and stored directly.
[中]添加对此标签的正向引用。必须仅为真正的正向引用调用此方法,即仅当尚未解析此标签时才调用此方法。对于反向引用,可以并且必须直接计算和存储引用的偏移量。
代码示例来源:origin: com.bladejava/blade-core
if ((status & RESOLVED) == 0) {
if (wideOffset) {
addReference(-1 - source, out.length);
out.putInt(-1);
} else {
addReference(source, out.length);
out.putShort(-1);
代码示例来源:origin: org.ow2.asm/asm-debug-all
if ((status & RESOLVED) == 0) {
if (wideOffset) {
addReference(-1 - source, out.length);
out.putInt(-1);
} else {
addReference(source, out.length);
out.putShort(-1);
内容来源于网络,如有侵权,请联系作者删除!