websphinx.workbench
Class Script
java.lang.Object
|
+--websphinx.workbench.Script
- All Implemented Interfaces:
- Action, LinkPredicate, PagePredicate, java.io.Serializable
- public class Script
- extends java.lang.Object
- implements Action, LinkPredicate, PagePredicate
- See Also:
- Serialized Form
Constructor Summary |
Script(java.lang.String script,
boolean asLinkPredicate)
|
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
script
java.lang.String script
asLinkPredicate
boolean asLinkPredicate
crawler
transient Crawler crawler
interp
transient ScriptInterpreter interp
function
transient java.lang.Object function
argsLink
static java.lang.String[] argsLink
argsPage
static java.lang.String[] argsPage
Script
public Script(java.lang.String script,
boolean asLinkPredicate)
getScript
public java.lang.String getScript()
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
connected
public void connected(Crawler crawler)
- Specified by:
connected
in interface Action
disconnected
public void disconnected(Crawler crawler)
- Specified by:
disconnected
in interface Action
shouldVisit
public boolean shouldVisit(Link link)
- Specified by:
shouldVisit
in interface LinkPredicate
shouldActOn
public boolean shouldActOn(Page page)
- Specified by:
shouldActOn
in interface PagePredicate
visit
public void visit(Page page)
- Specified by:
visit
in interface Action
toBool
boolean toBool(java.lang.Object obj)