public final class ReadOnlyStrategy extends AbstractTraversalStrategy<TraversalStrategy.VerificationStrategy> implements TraversalStrategy.VerificationStrategy
Mutating
and throws an IllegalStateException
if one is found.__.out().addE() // throws an VerificationException __.addV() // throws an VerificationException __.property(key,value) // throws an VerificationException __.out().drop() // throws an VerificationException
TraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
Modifier and Type | Method and Description |
---|---|
void |
apply(Traversal.Admin<?,?> traversal) |
Set<Class<? extends TraversalStrategy.VerificationStrategy>> |
applyPost()
The set of strategies that must be executed after this strategy is executed.
|
static ReadOnlyStrategy |
instance() |
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getTraversalCategory
applyPrior
public void apply(Traversal.Admin<?,?> traversal)
apply
in interface TraversalStrategy<TraversalStrategy.VerificationStrategy>
public Set<Class<? extends TraversalStrategy.VerificationStrategy>> applyPost()
TraversalStrategy
applyPost
in interface TraversalStrategy<TraversalStrategy.VerificationStrategy>
public static ReadOnlyStrategy instance()
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.