public class DefaultEvaluationContext
extends org.ocpsoft.rewrite.context.ContextBase
implements org.ocpsoft.rewrite.context.EvaluationContext
| Constructor and Description |
|---|
DefaultEvaluationContext() |
DefaultEvaluationContext(org.ocpsoft.rewrite.context.EvaluationContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPostOperation(org.ocpsoft.rewrite.config.Operation operation) |
void |
addPreOperation(org.ocpsoft.rewrite.config.Operation operation) |
void |
clear()
Clears the state of this context so that it may be reused, saving instantiation cost during rule iteration.
|
boolean |
containsKey(Object key) |
Object |
get(Object key) |
List<org.ocpsoft.rewrite.config.Operation> |
getPostOperations()
Get an immutable view of the added post-
Operation instances. |
List<org.ocpsoft.rewrite.config.Operation> |
getPreOperations()
Get an immutable view of the added pre-
Operation instances. |
org.ocpsoft.rewrite.context.RewriteState |
getState() |
void |
setState(org.ocpsoft.rewrite.context.RewriteState state) |
String |
toString() |
public DefaultEvaluationContext()
public DefaultEvaluationContext(org.ocpsoft.rewrite.context.EvaluationContext context)
public boolean containsKey(Object key)
containsKey in interface org.ocpsoft.rewrite.context.ContextcontainsKey in class org.ocpsoft.rewrite.context.ContextBasepublic Object get(Object key)
get in interface org.ocpsoft.rewrite.context.Contextget in class org.ocpsoft.rewrite.context.ContextBasepublic void addPreOperation(org.ocpsoft.rewrite.config.Operation operation)
addPreOperation in interface org.ocpsoft.rewrite.context.EvaluationContextpublic void addPostOperation(org.ocpsoft.rewrite.config.Operation operation)
addPostOperation in interface org.ocpsoft.rewrite.context.EvaluationContextpublic List<org.ocpsoft.rewrite.config.Operation> getPreOperations()
Operation instances.public List<org.ocpsoft.rewrite.config.Operation> getPostOperations()
Operation instances.public String toString()
toString in class org.ocpsoft.rewrite.context.ContextBasepublic void clear()
clear in interface org.ocpsoft.rewrite.context.Contextclear in class org.ocpsoft.rewrite.context.ContextBasepublic org.ocpsoft.rewrite.context.RewriteState getState()
getState in interface org.ocpsoft.rewrite.context.EvaluationContextpublic void setState(org.ocpsoft.rewrite.context.RewriteState state)
Copyright © 2021 JBoss by Red Hat. All rights reserved.