Package com.crawljax.core.state
Class CrawlPath
- java.lang.Object
-
- com.google.common.collect.ForwardingObject
-
- com.google.common.collect.ForwardingCollection<E>
-
- com.google.common.collect.ForwardingList<Eventable>
-
- com.crawljax.core.state.CrawlPath
-
-
Field Summary
Fields Modifier and Type Field Description private booleanbacktrackSuccessprivate intbacktrackTargetprivate List<Eventable>eventablePathprivate intreachedNearDup
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StackTraceElement[]asStackTrace()Build a stack trace for this path.static CrawlPathcopyOf(List<Eventable> eventable, int backtrackTarget)protected List<Eventable>delegate()intgetBacktrackTarget()CrawlPathimmutableCopy()Create an immutableCopy of the current CrawlPath, used for backtracking for giving them to plugins.private CrawlPathimmutableCopy(boolean removeLast)CrawlPathimmutableCopyWithoutLast()booleanisBacktrackSuccess()intisReachedNearDup()Eventablelast()Get the last Eventable in the path.voidsetBacktrackSuccess(boolean backtrackSuccess)voidsetBacktrackTarget(int backtrackTarget)voidsetReachedNearDup(int reachedNearDup)-
Methods inherited from class com.google.common.collect.ForwardingList
add, addAll, equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, standardAdd, standardAddAll, standardEquals, standardHashCode, standardIndexOf, standardIterator, standardLastIndexOf, standardListIterator, standardListIterator, standardSubList, subList
-
Methods inherited from class com.google.common.collect.ForwardingCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
delegate
protected List<Eventable> delegate()
- Specified by:
delegatein classcom.google.common.collect.ForwardingList<Eventable>
-
last
public Eventable last()
Get the last Eventable in the path.- Returns:
- the last Eventable in the path
-
immutableCopy
public CrawlPath immutableCopy()
Create an immutableCopy of the current CrawlPath, used for backtracking for giving them to plugins.- Returns:
- the CrawlPath based on an immutable list.
-
immutableCopyWithoutLast
public CrawlPath immutableCopyWithoutLast()
-
immutableCopy
private CrawlPath immutableCopy(boolean removeLast)
-
getBacktrackTarget
public int getBacktrackTarget()
-
setBacktrackTarget
public void setBacktrackTarget(int backtrackTarget)
-
isBacktrackSuccess
public boolean isBacktrackSuccess()
-
setBacktrackSuccess
public void setBacktrackSuccess(boolean backtrackSuccess)
-
isReachedNearDup
public int isReachedNearDup()
-
setReachedNearDup
public void setReachedNearDup(int reachedNearDup)
-
asStackTrace
public StackTraceElement[] asStackTrace()
Build a stack trace for this path. This can be used in generating more meaningful exceptions while using Crawljax in conjunction with JUnit for example.
-
-