| Package | Description |
|---|---|
| com.crawljax.core | |
| com.crawljax.core.plugin | |
| com.crawljax.core.state | |
| com.crawljax.di |
| Modifier and Type | Method and Description |
|---|---|
StateVertex |
UnfiredCandidateActions.awaitNewTask() |
StateVertex |
CrawlTaskConsumer.crawlIndex()
This method calls the index state.
|
StateVertex |
Crawler.crawlIndex()
This method calls the index state.
|
StateVertex |
CrawlerContext.getCurrentState() |
StateVertex |
CrawlSession.getInitialState() |
StateVertex |
StateUnreachableException.getTarget() |
| Modifier and Type | Method and Description |
|---|---|
void |
UnfiredCandidateActions.addActions(com.google.common.collect.ImmutableList<CandidateElement> extract,
StateVertex currentState) |
void |
Crawler.execute(StateVertex crawlTask) |
com.google.common.collect.ImmutableList<CandidateElement> |
CandidateElementExtractor.extract(StateVertex currentState)
This method extracts candidate elements from the current DOM tree in the browser, based on
the crawl tags defined by the user.
|
void |
UnfiredCandidateActions.purgeActionsForState(StateVertex crawlTask) |
| Constructor and Description |
|---|
CrawlSession(CrawljaxConfiguration config,
StateFlowGraph stateFlowGraph,
StateVertex state,
com.codahale.metrics.MetricRegistry registry) |
StateUnreachableException(StateVertex state,
String reason) |
| Modifier and Type | Method and Description |
|---|---|
void |
OnNewStatePlugin.onNewState(CrawlerContext context,
StateVertex newState)
Method that is called when a new state is found.
|
void |
OnRevisitStatePlugin.onRevisitState(CrawlerContext context,
StateVertex currentState)
Method that is called every time a state is revisited by Crawljax.
|
void |
PreStateCrawlingPlugin.preStateCrawling(CrawlerContext context,
com.google.common.collect.ImmutableList<CandidateElement> candidateElements,
StateVertex state)
Method that is called before firing events on the current DOM state.
|
boolean |
Plugins.runDomChangeNotifierPlugins(CrawlerContext context,
StateVertex stateBefore,
Eventable event,
StateVertex stateAfter)
Load and run the DomChangeNotifierPlugin.
|
void |
Plugins.runOnNewStatePlugins(CrawlerContext context,
StateVertex newState)
load and run the OnNewStatePlugins.
|
void |
Plugins.runOnRevisitStatePlugins(CrawlerContext context,
StateVertex currentState)
load and run the onRevisitStateValidator.
|
void |
Plugins.runPreStateCrawlingPlugins(CrawlerContext context,
com.google.common.collect.ImmutableList<CandidateElement> candidateElements,
StateVertex state)
load and run the PreStateCrawlingPlugins.
|
| Modifier and Type | Method and Description |
|---|---|
static StateVertex |
StateMachine.createIndex(String url,
String dom,
String strippedDom) |
StateVertex |
StateFlowGraph.getById(int id) |
StateVertex |
InMemoryStateFlowGraph.getById(int id) |
StateVertex |
StateMachine.getCurrentState()
Return the current State in this state machine.
|
StateVertex |
StateFlowGraph.getInitialState() |
StateVertex |
InMemoryStateFlowGraph.getInitialState() |
StateVertex |
Eventable.getSourceStateVertex() |
StateVertex |
Eventable.getTargetStateVertex() |
StateVertex |
StateMachine.newStateFor(EmbeddedBrowser browser) |
StateVertex |
InMemoryStateFlowGraph.putIfAbsent(StateVertex stateVertix)
Adds a state (as a vertix) to the State-Flow Graph if not already present.
|
StateVertex |
InMemoryStateFlowGraph.putIndex(StateVertex index) |
| Modifier and Type | Method and Description |
|---|---|
List<List<org.jgrapht.GraphPath<StateVertex,Eventable>>> |
StateFlowGraph.getAllPossiblePaths(StateVertex index)
This method returns all possible paths from the index state using the Kshortest paths.
|
List<List<org.jgrapht.GraphPath<StateVertex,Eventable>>> |
InMemoryStateFlowGraph.getAllPossiblePaths(StateVertex index) |
com.google.common.collect.ImmutableSet<StateVertex> |
StateFlowGraph.getAllStates()
Return all the states in the StateFlowGraph.
|
com.google.common.collect.ImmutableSet<StateVertex> |
InMemoryStateFlowGraph.getAllStates() |
com.google.common.collect.ImmutableSet<StateVertex> |
StateFlowGraph.getOutgoingStates(StateVertex stateVertix) |
com.google.common.collect.ImmutableSet<StateVertex> |
InMemoryStateFlowGraph.getOutgoingStates(StateVertex stateVertix) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
InMemoryStateFlowGraph.addEdge(StateVertex sourceVert,
StateVertex targetVert,
Eventable clickable)
Adds the specified edge to this graph, going from the source vertex to the target vertex.
|
boolean |
StateFlowGraph.canGoTo(StateVertex source,
StateVertex target)
Is it possible to go from s1 -> s2?
|
boolean |
InMemoryStateFlowGraph.canGoTo(StateVertex source,
StateVertex target) |
boolean |
StateMachine.changeState(StateVertex nextState)
Change the currentState to the nextState if possible.
|
List<List<org.jgrapht.GraphPath<StateVertex,Eventable>>> |
StateFlowGraph.getAllPossiblePaths(StateVertex index)
This method returns all possible paths from the index state using the Kshortest paths.
|
List<List<org.jgrapht.GraphPath<StateVertex,Eventable>>> |
InMemoryStateFlowGraph.getAllPossiblePaths(StateVertex index) |
com.google.common.collect.ImmutableSet<Eventable> |
StateFlowGraph.getIncomingClickable(StateVertex stateVertix)
Returns a set of all edges incoming into the specified vertex.
|
com.google.common.collect.ImmutableSet<Eventable> |
InMemoryStateFlowGraph.getIncomingClickable(StateVertex stateVertix) |
com.google.common.collect.ImmutableSet<Eventable> |
StateFlowGraph.getOutgoingClickables(StateVertex stateVertix)
Returns a set of all clickables outgoing from the specified vertex.
|
com.google.common.collect.ImmutableSet<Eventable> |
InMemoryStateFlowGraph.getOutgoingClickables(StateVertex stateVertix) |
com.google.common.collect.ImmutableSet<StateVertex> |
StateFlowGraph.getOutgoingStates(StateVertex stateVertix) |
com.google.common.collect.ImmutableSet<StateVertex> |
InMemoryStateFlowGraph.getOutgoingStates(StateVertex stateVertix) |
com.google.common.collect.ImmutableList<Eventable> |
StateFlowGraph.getShortestPath(StateVertex start,
StateVertex end)
Convenience method to find the Dijkstra shortest path between two states on the graph.
|
com.google.common.collect.ImmutableList<Eventable> |
InMemoryStateFlowGraph.getShortestPath(StateVertex start,
StateVertex end) |
StateVertex |
InMemoryStateFlowGraph.putIfAbsent(StateVertex stateVertix)
Adds a state (as a vertix) to the State-Flow Graph if not already present.
|
StateVertex |
InMemoryStateFlowGraph.putIndex(StateVertex index) |
boolean |
StateMachine.swithToStateAndCheckIfClone(Eventable event,
StateVertex newState,
CrawlerContext context)
Adds an edge between the current and new state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CrawlSessionProvider.setup(StateVertex indexState) |
Copyright © 2007-2013. All Rights Reserved.