|
|||||||||
| 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.SourceFileWriter
public final class SourceFileWriter
This class builds serializable SourceFile attributes. After constructing a SourceFileWriter, you must call setSourceFileCPIndex.
| Constructor Summary | |
|---|---|
SourceFileWriter(ClassWriter w)
Build an empty writer. |
|
| Method Summary | |
|---|---|
int |
copyInto(byte[] buf,
int offset)
Copy the bytes into 'buf' at offset 'offset'. |
int |
getSize()
|
void |
setSourceFileCPIndex(int index)
Set the index of the constant pool item holding the source file name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceFileWriter(ClassWriter w)
java.lang.IllegalArgumentException - if w is null| Method Detail |
|---|
public int getSize()
throws java.lang.IllegalArgumentException
getSize in class ClassWriter.Elementjava.lang.IllegalArgumentException
public int copyInto(byte[] buf,
int offset)
throws java.lang.IllegalArgumentException
ClassWriter.Element
copyInto in class ClassWriter.Elementjava.lang.IllegalArgumentException
public void setSourceFileCPIndex(int index)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||