org.objectweb.asm.tree

Class LocalVariableNode


public class LocalVariableNode
extends Object

A node that represents a local variable declaration.
Author:
Eric Bruneton

Field Summary

String
desc
The type descriptor of this local variable.
Label
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.
Label
start
The first instruction corresponding to the scope of this local variable (inclusive).

Constructor Summary

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

Method Summary

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

Field Details

desc

public String desc
The type descriptor of this local variable.

end

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

index

public int index
The local variable's index.

name

public String name
The name of a local variable.

signature

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

start

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

Constructor Details

LocalVariableNode

public LocalVariableNode(String name,
                         String desc,
                         String signature,
                         Label start,
                         Label 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).
end - the last instruction corresponding to the scope of this local variable (exclusive).
index - the local variable's index.

Method Details

accept

public void accept(MethodVisitor mv)
Makes the given visitor visit this local variable declaration.
Parameters:
mv - a method visitor.