org.ow2.asmdex.tree
Class LocalVariableNode

java.lang.Object
  extended by org.ow2.asmdex.tree.LocalVariableNode

public class LocalVariableNode
extends java.lang.Object

A node that represents a local variable declaration.

Author:
Eric Bruneton, Julien Névo (adaptation to AsmDex).

Field Summary
 java.lang.String desc
          The type descriptor of this local variable.
 java.util.List<LabelNode> ends
          The last instructions corresponding to the scope of this local variable (exclusive).
 int index
          The local variable's index.
 java.lang.String name
          The name of a local variable.
 java.util.List<LabelNode> restarts
          The instructions corresponding to the restarts of this local variable (inclusive).
 java.lang.String signature
          The signature of this local variable.
 LabelNode start
          The first instruction corresponding to the scope of this local variable (inclusive).
 
Constructor Summary
LocalVariableNode(java.lang.String name, java.lang.String desc, java.lang.String signature, LabelNode start, LabelNode end, int index)
          Constructs a new LocalVariableNode.
LocalVariableNode(java.lang.String name, java.lang.String desc, java.lang.String signature, LabelNode start, java.util.List<LabelNode> ends, java.util.List<LabelNode> restarts, int index)
          Constructs a new LocalVariableNode.
 
Method Summary
 void accept(MethodVisitor mv)
          Makes the given visitor visit this local variable declaration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
The name of a local variable.


desc

public java.lang.String desc
The type descriptor of this local variable.


signature

public java.lang.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).


ends

public java.util.List<LabelNode> ends
The last instructions corresponding to the scope of this local variable (exclusive). May be null.


restarts

public java.util.List<LabelNode> restarts
The instructions corresponding to the restarts of this local variable (inclusive). May be null.


index

public int index
The local variable's index.

Constructor Detail

LocalVariableNode

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

Parameters:
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). May be null.
end - the last instruction corresponding to the scope of this local variable (exclusive). May be null.
index - the local variable's index.

LocalVariableNode

public LocalVariableNode(java.lang.String name,
                         java.lang.String desc,
                         java.lang.String signature,
                         LabelNode start,
                         java.util.List<LabelNode> ends,
                         java.util.List<LabelNode> restarts,
                         int index)
Constructs a new LocalVariableNode.

Parameters:
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). May be null.
ends - the last instructions corresponding to the scope of this local variable (exclusive). May be null.
restarts - the first instructions corresponding to the restarts of this local variable (exclusive). May be null.
index - the local variable's index.
Method Detail

accept

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

Parameters:
mv - a method visitor.