Package org.ocpsoft.rewrite.servlet.impl
Class EvaluationContextImpl
java.lang.Object
org.ocpsoft.rewrite.context.ContextBase
org.ocpsoft.rewrite.servlet.impl.EvaluationContextImpl
- All Implemented Interfaces:
Context,EvaluationContext
- Author:
- Lincoln Baxter, III
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPostOperation(Operation operation) voidaddPreOperation(Operation operation) voidclear()Clears the state of this context so that it may be reused, saving instantiation cost during rule iteration.Get an immutable view of the added post-Operationinstances.Get an immutable view of the added pre-Operationinstances.getState()voidsetState(RewriteState state) toString()Methods inherited from class org.ocpsoft.rewrite.context.ContextBase
containsKey, get, putMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ocpsoft.rewrite.context.Context
containsKey, get, put
-
Constructor Details
-
EvaluationContextImpl
public EvaluationContextImpl()
-
-
Method Details
-
addPreOperation
- Specified by:
addPreOperationin interfaceEvaluationContext
-
addPostOperation
- Specified by:
addPostOperationin interfaceEvaluationContext
-
getPreOperations
Get an immutable view of the added pre-Operationinstances. -
getPostOperations
Get an immutable view of the added post-Operationinstances. -
toString
- Overrides:
toStringin classContextBase
-
clear
public void clear()Clears the state of this context so that it may be reused, saving instantiation cost during rule iteration.- Specified by:
clearin interfaceContext- Overrides:
clearin classContextBase
-
getState
- Specified by:
getStatein interfaceEvaluationContext
-
setState
-