net.sf.rej.java
Class LocalVariable
java.lang.Object
net.sf.rej.java.LocalVariable
- All Implemented Interfaces:
- DescriptorEnabled
public class LocalVariable
- extends java.lang.Object
- implements DescriptorEnabled
Local variable. An entity that binds a local variable to a scope and a name
in the constant pool.
- Author:
- Sami Koivu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LocalVariable
public LocalVariable(ByteParser parser,
ConstantPool pool)
getData
public byte[] getData()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getName
public java.lang.String getName()
isInRange
public boolean isInRange(int pc)
getIndex
public int getIndex()
getDescriptorIndex
public int getDescriptorIndex()
- Specified by:
getDescriptorIndex
in interface DescriptorEnabled
setDescriptorIndex
public void setDescriptorIndex(int index)
- Specified by:
setDescriptorIndex
in interface DescriptorEnabled
getDescriptor
public Descriptor getDescriptor()
getStartPc
public int getStartPc()
getEndPc
public int getEndPc()
getLabels
public java.util.List<Label> getLabels()
getSignatureLine
public java.lang.String getSignatureLine()