|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.shrikeCT.ClassWriter.Element
com.ibm.wala.shrikeCT.LocalVariableTableWriter
public final class LocalVariableTableWriter
This class helps emit LocalVariableTable attributes.
| Constructor Summary | |
|---|---|
LocalVariableTableWriter(ClassWriter w)
Create a blank LocalVariableTable. |
|
| Method Summary | |
|---|---|
int |
copyInto(byte[] buf,
int offset)
Copy the bytes into 'buf' at offset 'offset'. |
int |
getSize()
|
static int[] |
makeRawTable(int[][] varMap)
Build a raw local variable table from a formatted variable map. |
void |
setRawTable(int[] table)
Set the raw local variable table values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalVariableTableWriter(ClassWriter w)
java.lang.IllegalArgumentException - if w is null| Method Detail |
|---|
public void setRawTable(int[] table)
table - the raw values, a flattened sequence of (startPC, length,
nameIndex, typeIndex, var) tuplespublic int getSize()
getSize in class ClassWriter.Element
public int copyInto(byte[] buf,
int offset)
throws java.lang.IllegalArgumentException
ClassWriter.Element
copyInto in class ClassWriter.Elementjava.lang.IllegalArgumentExceptionpublic static int[] makeRawTable(int[][] varMap)
varMap - an array mapping bytecode offsets to a variable map for each
offset; a variable map is a array of 2*localVars elements,
containing a (nameIndex, typeIndex) for each local variable; the
pair (0,0) indicates that there is no information about that local
variable at that offset
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||