|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.classfile.LocalVariableInfo
public class LocalVariableInfo
VMS 4.7.9: Local Variable Table Attribute. This attribute represents a mapping between he Java Virtual Machine code array and the line number in the original Java source file
Constructor Summary | |
---|---|
LocalVariableInfo(DataInput in,
ConstantPool cp,
Instruction[] insns)
Create an entry in the line number table from a class file stream |
|
LocalVariableInfo(InstructionAccessor start,
InstructionAccessor end,
String name,
String type,
short slot)
Create an entry in the line number table |
Method Summary | |
---|---|
InstructionAccessor |
getEnd()
Returns the end of the protected area |
String |
getName()
Returns the name of the local variable |
short |
getSlot()
Returns the index in the method's local variables |
InstructionAccessor |
getStart()
Returns the start of the protected area |
String |
getType()
Returns the type of the local variable |
void |
setEnd(InstructionAccessor end)
Sets the end of the protected area |
void |
setStart(InstructionAccessor start)
Sets the start of the protected area |
void |
transformAccessors(AccessorTransformer transformer)
Transforms targets (deferences to actual instructions). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalVariableInfo(InstructionAccessor start, InstructionAccessor end, String name, String type, short slot)
start
- the beginning of the area (inclusive) where the name is validend
- the end of the area (inclusive) where the name is validname
- the name of the variabletype
- the type signature of the variableslot
- the index in the method's local variablespublic LocalVariableInfo(DataInput in, ConstantPool cp, Instruction[] insns) throws IOException
in
- the stream to read fromcp
- the constant poolinsns
- (sparse) array of instructions
IOException
- an io problem has occuredMethod Detail |
---|
public void transformAccessors(AccessorTransformer transformer) throws BadAccessorException
transformAccessors
in interface AccessorContainer
transformer
- the transformer used to transform accessors
BadAccessorException
public String getName()
public String getType()
public void setStart(InstructionAccessor start)
public InstructionAccessor getStart()
public void setEnd(InstructionAccessor end)
public InstructionAccessor getEnd()
public short getSlot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |