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

Field Summary
(package private) static java.lang.String[] argsLink
           
(package private) static java.lang.String[] argsPage
           
(package private)  boolean asLinkPredicate
           
(package private)  Crawler crawler
           
(package private)  java.lang.Object function
           
(package private)  ScriptInterpreter interp
           
(package private)  java.lang.String script
           
 
Constructor Summary
Script(java.lang.String script, boolean asLinkPredicate)
           
 
Method Summary
 void connected(Crawler crawler)
           
 void disconnected(Crawler crawler)
           
 boolean equals(java.lang.Object object)
           
 java.lang.String getScript()
           
 boolean shouldActOn(Page page)
           
 boolean shouldVisit(Link link)
           
(package private)  boolean toBool(java.lang.Object obj)
           
 void visit(Page page)
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Script

public Script(java.lang.String script,
              boolean asLinkPredicate)
Method Detail

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)