org.objectweb.asm.tree
类 LocalVariableNode

java.lang.Object
  继承者 org.objectweb.asm.tree.LocalVariableNode

public class LocalVariableNode
extends Object

A node that represents a local variable declaration.

作者:
Eric Bruneton

字段摘要
 String desc
          The type descriptor of this local variable.
 LabelNode end
          The last instruction corresponding to the scope of this local variable (exclusive).
 int index
          The local variable's index.
 String name
          The name of a local variable.
 String signature
          The signature of this local variable.
 LabelNode start
          The first instruction corresponding to the scope of this local variable (inclusive).
 
构造方法摘要
LocalVariableNode(String name, String desc, String signature, LabelNode start, LabelNode end, int index)
          Constructs a new LocalVariableNode.
 
方法摘要
 void accept(MethodVisitor mv)
          Makes the given visitor visit this local variable declaration.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

name

public String name
The name of a local variable.


desc

public String desc
The type descriptor of this local variable.


signature

public String signature
The signature of this local variable. May be null.


start

public LabelNode start
The first instruction corresponding to the scope of this local variable (inclusive).


end

public LabelNode end
The last instruction corresponding to the scope of this local variable (exclusive).


index

public int index
The local variable's index.

构造方法详细信息

LocalVariableNode

public LocalVariableNode(String name,
                         String desc,
                         String signature,
                         LabelNode start,
                         LabelNode end,
                         int index)
Constructs a new LocalVariableNode.

参数:
name - the name of a local variable.
desc - the type descriptor of this local variable.
signature - the signature of this local variable. May be null.
start - the first instruction corresponding to the scope of this local variable (inclusive).
end - the last instruction corresponding to the scope of this local variable (exclusive).
index - the local variable's index.
方法详细信息

accept

public void accept(MethodVisitor mv)
Makes the given visitor visit this local variable declaration.

参数:
mv - a method visitor.


Copyright © 2013. All Rights Reserved.