org.objectweb.asm.tree.LocalVariableNode.accept()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(95)

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

LocalVariableNode.accept介绍

[英]Makes the given visitor visit this local variable declaration.
[中]使给定访问者访问此局部变量声明。

代码示例

代码示例来源:origin: kilim/kilim

private void visitLocals(MethodVisitor mv) {
  for (Object l: methodFlow.localVariables) {
    ((LocalVariableNode)l).accept(mv);
  }
}

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

localVariables.get(i).accept(mv);

代码示例来源:origin: co.paralleluniverse/quasar

((LocalVariableNode) o).accept(mv);

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

localVariables.get(i).accept(methodVisitor);

代码示例来源:origin: gradle.plugin.com.xk/wormhole-gradle

if (!startsInBody && !endsInBody) {
  if (variable.index != 0) { // '#0' on init$args is not 'this'
    variable.accept(initArgs);
  variable.accept(body);
} else if (!startsInBody && endsInBody) {
        variable.desc, variable.signature,
        variable.start, labelBefore, variable.index);
    var0.accept(initArgs);
  var1.accept(body);
} else {
  throw new IllegalStateException("Local variable starts after it ends.");

代码示例来源:origin: com.android.tools.build/gradle-core

if (!startsInBody && !endsInBody) {
  if (variable.index != 0) { // '#0' on init$args is not 'this'
    variable.accept(initArgs);
  variable.accept(body);
} else if (!startsInBody && endsInBody) {
        variable.desc, variable.signature,
        variable.start, labelBefore, variable.index);
    var0.accept(initArgs);
  var1.accept(body);
} else {
  throw new IllegalStateException("Local variable starts after it ends.");

相关文章

微信公众号

最新文章

更多