|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectserp.bytecode.Attributes
serp.bytecode.Attribute
serp.bytecode.SourceFile
public class SourceFile
Attribute naming the source file for this class.
| Method Summary | |
|---|---|
void |
acceptVisit(BCVisitor visit)
Accept a visit from a BCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one. |
File |
getFile(File dir)
Return the file object for the source file, or null if not set. |
int |
getFileIndex()
Return the index into the class ConstantPool of the
UTF8Entry naming the source file for this class, or 0 if not set. |
String |
getFileName()
Return the name of the source file, or null if not set. |
void |
setFile(File file)
Set the source file. |
void |
setFile(String name)
Set the name of the source file. |
void |
setFileIndex(int sourceFileIndex)
Set the index into the class ConstantPool of the
UTF8Entry naming the source file for this class. |
void |
setFromClassName()
Set the file name from the current class name plus the .java extension. |
| Methods inherited from class serp.bytecode.Attribute |
|---|
getClassLoader, getName, getNameIndex, getOwner, getPool, getProject, isValid |
| Methods inherited from class serp.bytecode.Attributes |
|---|
addAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, removeAttribute, removeAttribute, setAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getFileIndex()
ConstantPool of the
UTF8Entry naming the source file for this class, or 0 if not set.
public void setFileIndex(int sourceFileIndex)
ConstantPool of the
UTF8Entry naming the source file for this class.
public String getFileName()
public File getFile(File dir)
dir - the directory of the file, or nullpublic void setFile(String name)
public void setFile(File file)
public void setFromClassName()
public void acceptVisit(BCVisitor visit)
VisitAcceptorBCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||