rewrite-test-harness 1.0.0.Final

org.ocpsoft.rewrite.mock
Class MockEvaluationContext

java.lang.Object
  extended by org.ocpsoft.rewrite.context.ContextBase
      extended by org.ocpsoft.rewrite.mock.MockEvaluationContext
All Implemented Interfaces:
Context, EvaluationContext

public class MockEvaluationContext
extends ContextBase
implements EvaluationContext

Author:
Lincoln Baxter, III

Constructor Summary
MockEvaluationContext()
           
 
Method Summary
 void addPostOperation(Operation operation)
           
 void addPreOperation(Operation operation)
           
 java.util.List<Operation> getPostOperations()
          Get an immutable view of the added post-Operation instances.
 java.util.List<Operation> getPreOperations()
          Get an immutable view of the added pre-Operation instances.
 
Methods inherited from class org.ocpsoft.rewrite.context.ContextBase
containsKey, get, put, toString
 
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

MockEvaluationContext

public MockEvaluationContext()
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 java.util.List<Operation> getPreOperations()
Get an immutable view of the added pre-Operation instances.


getPostOperations

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


rewrite-test-harness 1.0.0.Final

Copyright © 2012 OCPsoft. All Rights Reserved.