Class ReadOnlyStrategy
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategy<TraversalStrategy.VerificationStrategy>
- 
- org.apache.tinkerpop.gremlin.process.traversal.strategy.verification.ReadOnlyStrategy
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<Class<? extends TraversalStrategy>>,- TraversalStrategy<TraversalStrategy.VerificationStrategy>,- TraversalStrategy.VerificationStrategy
 
 public final class ReadOnlyStrategy extends AbstractTraversalStrategy<TraversalStrategy.VerificationStrategy> implements TraversalStrategy.VerificationStrategy Detects steps marked withMutatingand throws anIllegalStateExceptionif one is found.- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
- Example:
- __.out().addE() // throws an VerificationException __.addV() // throws an VerificationException __.property(key,value) // throws an VerificationException __.out().drop() // throws an VerificationException 
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategyTraversalStrategy.DecorationStrategy, TraversalStrategy.FinalizationStrategy, TraversalStrategy.OptimizationStrategy, TraversalStrategy.ProviderOptimizationStrategy, TraversalStrategy.VerificationStrategy
 
- 
 - 
Field Summary- 
Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategySTRATEGY
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Traversal.Admin<?,?> traversal)Set<Class<? extends TraversalStrategy.VerificationStrategy>>applyPost()The set of strategies that must be executed after this strategy is executed.static ReadOnlyStrategyinstance()- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.strategy.AbstractTraversalStrategyequals, hashCode, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategyapplyPrior, getConfiguration
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategy.VerificationStrategycompareTo, getTraversalCategory
 
- 
 
- 
- 
- 
Method Detail- 
applypublic void apply(Traversal.Admin<?,?> traversal) - Specified by:
- applyin interface- TraversalStrategy<TraversalStrategy.VerificationStrategy>
 
 - 
applyPostpublic Set<Class<? extends TraversalStrategy.VerificationStrategy>> applyPost() Description copied from interface:TraversalStrategyThe set of strategies that must be executed after this strategy is executed. If there are no ordering requirements, the default implementation returns an empty set.- Specified by:
- applyPostin interface- TraversalStrategy<TraversalStrategy.VerificationStrategy>
- Returns:
- the set of strategies that must be executed post this one
 
 - 
instancepublic static ReadOnlyStrategy instance() 
 
- 
 
-