Class DefaultMatchingContext

java.lang.Object
org.aspectj.weaver.tools.DefaultMatchingContext
All Implemented Interfaces:
MatchingContext

public class DefaultMatchingContext extends Object implements MatchingContext
Default implementation of MatchingContext, backed by a Map.
  • Constructor Details

    • DefaultMatchingContext

      public DefaultMatchingContext()
  • Method Details

    • hasContextBinding

      public boolean hasContextBinding(String contextParameterName)
      Description copied from interface: MatchingContext
      Returns true iff this matching context has a defined binding for the given context parameter.
      Specified by:
      hasContextBinding in interface MatchingContext
    • getBinding

      public Object getBinding(String contextParameterName)
      Description copied from interface: MatchingContext
      returns the binding associated with the given context parameter name (or null if there is no such context).
      Specified by:
      getBinding in interface MatchingContext
      Returns:
    • addContextBinding

      public void addContextBinding(String name, Object value)
      Add a context binding with the given name and value
      Parameters:
      name -
      value -
    • removeContextBinding

      public void removeContextBinding(String name)
      Remove the context binding with the given name
      Parameters:
      name -