Top Description Fields Constructors Methods
org.objectweb.asm.tree

public Class LocalVariableNode

extends Object
Class Inheritance
Imports
org.objectweb.asm.MethodVisitor

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

Field Summary

Modifier and TypeField and Description
public String
desc

The type descriptor of this local variable.

public LabelNode
end

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

public int
index

The local variable's index.

public String
name

The name of a local variable.

public String
signature

The signature of this local variable.

public LabelNode
start

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

Constructor Summary

AccessConstructor and Description
public
LocalVariableNode(final String
the name of a local variable.
name
,
final String
the type descriptor of this local variable.
descriptor
,
final String
the signature of this local variable. May be null.
signature
,
final LabelNode
the first instruction corresponding to the scope of this local variable (inclusive).
start
,
final LabelNode
the last instruction corresponding to the scope of this local variable (exclusive).
end
,
final int
the local variable's index.
index
)

Constructs a new LocalVariableNode.

Method Summary

Modifier and TypeMethod and Description
public void
accept(final MethodVisitor
a method visitor.
methodVisitor
)

Makes the given visitor visit this local variable declaration.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descback to summary
public String desc

The type descriptor of this local variable.

endback to summary
public LabelNode end

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

indexback to summary
public int index

The local variable's index.

nameback to summary
public String name

The name of a local variable.

signatureback to summary
public String signature

The signature of this local variable. May be null.

startback to summary
public LabelNode start

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

Constructor Detail

LocalVariableNodeback to summary
public LocalVariableNode(final String name, final String descriptor, final String signature, final LabelNode start, final LabelNode end, final int index)

Constructs a new LocalVariableNode.

Parameters
name:String

the name of a local variable.

descriptor:String

the type descriptor of this local variable.

signature:String

the signature of this local variable. May be null.

start:LabelNode

the first instruction corresponding to the scope of this local variable (inclusive).

end:LabelNode

the last instruction corresponding to the scope of this local variable (exclusive).

index:int

the local variable's index.

Method Detail

acceptback to summary
public void accept(final MethodVisitor methodVisitor)

Makes the given visitor visit this local variable declaration.

Parameters
methodVisitor:MethodVisitor

a method visitor.