Class 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 Detail

      • DefaultEvaluationContext

        public DefaultEvaluationContext()
      • DefaultEvaluationContext

        public DefaultEvaluationContext​(org.ocpsoft.rewrite.context.EvaluationContext context)
    • Method Detail

      • containsKey

        public boolean containsKey​(Object key)
        Specified by:
        containsKey in interface org.ocpsoft.rewrite.context.Context
        Overrides:
        containsKey in class org.ocpsoft.rewrite.context.ContextBase
      • get

        public Object get​(Object key)
        Specified by:
        get in interface org.ocpsoft.rewrite.context.Context
        Overrides:
        get in class org.ocpsoft.rewrite.context.ContextBase
      • addPreOperation

        public void addPreOperation​(org.ocpsoft.rewrite.config.Operation operation)
        Specified by:
        addPreOperation in interface org.ocpsoft.rewrite.context.EvaluationContext
      • addPostOperation

        public void addPostOperation​(org.ocpsoft.rewrite.config.Operation operation)
        Specified by:
        addPostOperation in interface org.ocpsoft.rewrite.context.EvaluationContext
      • getPreOperations

        public List<org.ocpsoft.rewrite.config.Operation> getPreOperations()
        Get an immutable view of the added pre-Operation instances.
      • getPostOperations

        public List<org.ocpsoft.rewrite.config.Operation> getPostOperations()
        Get an immutable view of the added post-Operation instances.
      • toString

        public String toString()
        Overrides:
        toString in class org.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:
        clear in interface org.ocpsoft.rewrite.context.Context
        Overrides:
        clear in class org.ocpsoft.rewrite.context.ContextBase
      • getState

        public org.ocpsoft.rewrite.context.RewriteState getState()
        Specified by:
        getState in interface org.ocpsoft.rewrite.context.EvaluationContext
      • setState

        public void setState​(org.ocpsoft.rewrite.context.RewriteState state)