|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grinder.engine.common.ScriptLocation
public final class ScriptLocation
Pairing of a script file and its root directory. The directory is not necessarily the immediate parent of the file.
| Constructor Summary | |
|---|---|
ScriptLocation(Directory directory,
File file)
Constructor. |
|
ScriptLocation(File file)
Constructor, based on the current working directory. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Equality. |
Directory |
getDirectory()
Accessor for the script working directory. |
File |
getFile()
Accessor for the script file. |
int |
hashCode()
Hash code. |
String |
toString()
String representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptLocation(Directory directory,
File file)
directory - Script working directory. May be relative (to the CWD).file - The script file. May be relative (to directory).
If absolute, it needn't be below the root directory.
public ScriptLocation(File file)
throws EngineException
file - The script file.
EngineException - If a file operation failed.| Method Detail |
|---|
public Directory getDirectory()
public File getFile()
File always
represents an absolute path.
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectother - Object to compare.
true if and only if we're equal to other.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||