rewrite-impl-servlet 2.0.0.Final

org.ocpsoft.rewrite.servlet.impl
Class EvaluationContextImpl

java.lang.Object
  extended by org.ocpsoft.rewrite.context.ContextBase
      extended by org.ocpsoft.rewrite.servlet.impl.EvaluationContextImpl
All Implemented Interfaces:
Context, EvaluationContext

public class EvaluationContextImpl
extends ContextBase
implements EvaluationContext

Author:
Lincoln Baxter, III

Constructor Summary
EvaluationContextImpl()
           
 
Method Summary
 void addPostOperation(Operation operation)
           
 void addPreOperation(Operation operation)
           
 void clear()
          Clears the state of this context so that it may be reused, saving instantiation cost during rule iteration.
 List<Operation> getPostOperations()
          Get an immutable view of the added post-Operation instances.
 List<Operation> getPreOperations()
          Get an immutable view of the added pre-Operation instances.
 RewriteState getState()
           
 void setState(RewriteState state)
           
 String toString()
           
 
Methods inherited from class org.ocpsoft.rewrite.context.ContextBase
containsKey, get, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ocpsoft.rewrite.context.Context
containsKey, get, put
 

Constructor Detail

EvaluationContextImpl

public EvaluationContextImpl()
Method Detail

addPreOperation

public void addPreOperation(Operation operation)
Specified by:
addPreOperation in interface EvaluationContext

addPostOperation

public void addPostOperation(Operation operation)
Specified by:
addPostOperation in interface EvaluationContext

getPreOperations

public List<Operation> getPreOperations()
Get an immutable view of the added pre-Operation instances.


getPostOperations

public List<Operation> getPostOperations()
Get an immutable view of the added post-Operation instances.


toString

public String toString()
Overrides:
toString in class ContextBase

clear

public void clear()
Clears the state of this context so that it may be reused, saving instantiation cost during rule iteration.


getState

public RewriteState getState()
Specified by:
getState in interface EvaluationContext

setState

public void setState(RewriteState state)

rewrite-impl-servlet 2.0.0.Final

Copyright © 2013 OCPsoft. All Rights Reserved.