Package org.jboss.windup.config
Class DefaultEvaluationContext
- java.lang.Object
-
- org.ocpsoft.rewrite.context.ContextBase
-
- org.jboss.windup.config.DefaultEvaluationContext
-
- All Implemented Interfaces:
org.ocpsoft.rewrite.context.Context,org.ocpsoft.rewrite.context.EvaluationContext
public class DefaultEvaluationContext extends org.ocpsoft.rewrite.context.ContextBase implements org.ocpsoft.rewrite.context.EvaluationContext- Author:
- Lincoln Baxter, III
-
-
Constructor Summary
Constructors Constructor Description DefaultEvaluationContext()DefaultEvaluationContext(org.ocpsoft.rewrite.context.EvaluationContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPostOperation(org.ocpsoft.rewrite.config.Operation operation)voidaddPreOperation(org.ocpsoft.rewrite.config.Operation operation)voidclear()Clears the state of this context so that it may be reused, saving instantiation cost during rule iteration.booleancontainsKey(Object key)Objectget(Object key)List<org.ocpsoft.rewrite.config.Operation>getPostOperations()Get an immutable view of the added post-Operationinstances.List<org.ocpsoft.rewrite.config.Operation>getPreOperations()Get an immutable view of the added pre-Operationinstances.org.ocpsoft.rewrite.context.RewriteStategetState()voidsetState(org.ocpsoft.rewrite.context.RewriteState state)StringtoString()
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceorg.ocpsoft.rewrite.context.Context- Overrides:
containsKeyin classorg.ocpsoft.rewrite.context.ContextBase
-
get
public Object get(Object key)
- Specified by:
getin interfaceorg.ocpsoft.rewrite.context.Context- Overrides:
getin classorg.ocpsoft.rewrite.context.ContextBase
-
addPreOperation
public void addPreOperation(org.ocpsoft.rewrite.config.Operation operation)
- Specified by:
addPreOperationin interfaceorg.ocpsoft.rewrite.context.EvaluationContext
-
addPostOperation
public void addPostOperation(org.ocpsoft.rewrite.config.Operation operation)
- Specified by:
addPostOperationin interfaceorg.ocpsoft.rewrite.context.EvaluationContext
-
getPreOperations
public List<org.ocpsoft.rewrite.config.Operation> getPreOperations()
Get an immutable view of the added pre-Operationinstances.
-
getPostOperations
public List<org.ocpsoft.rewrite.config.Operation> getPostOperations()
Get an immutable view of the added post-Operationinstances.
-
toString
public String toString()
- Overrides:
toStringin classorg.ocpsoft.rewrite.context.ContextBase
-
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 interfaceorg.ocpsoft.rewrite.context.Context- Overrides:
clearin classorg.ocpsoft.rewrite.context.ContextBase
-
getState
public org.ocpsoft.rewrite.context.RewriteState getState()
- Specified by:
getStatein interfaceorg.ocpsoft.rewrite.context.EvaluationContext
-
setState
public void setState(org.ocpsoft.rewrite.context.RewriteState state)
-
-