|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.simongibbs.scoof.Target
Represents a unit of code. Attrinutes include a source file, and the CodeBase object it is associated with.
Constructor Summary | |
Target(CodeBase cb,
java.io.File file,
java.lang.String contents)
Generate a new Target |
Method Summary | |
static Target |
createTarget(CodeBase cb,
java.io.File file)
Convenience method for defining and populating a Target object. |
CodeBase |
getCodeBase()
A reference to the CodeBAse in which this Target was located. |
java.lang.String |
getFileContents()
A String representing the file contents. |
java.io.File |
getSourceFile()
An abstract pathname to the target file. |
void |
setCodeBase(CodeBase base)
Set the parent code base. |
void |
setFileContents(java.lang.String string)
Set the file contents. |
void |
setSourceFile(java.io.File file)
Set the abstract pathname which is the focus of this Target. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Target(CodeBase cb, java.io.File file, java.lang.String contents)
Method Detail |
public CodeBase getCodeBase()
public java.lang.String getFileContents()
public java.io.File getSourceFile()
public void setCodeBase(CodeBase base)
base
- public void setFileContents(java.lang.String string)
string
- public void setSourceFile(java.io.File file)
file
- public static Target createTarget(CodeBase cb, java.io.File file) throws java.io.IOException
cb
- parent code basefile
- the source file as spidered
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |