Class DefaultMatchingContext
java.lang.Object
org.aspectj.weaver.tools.DefaultMatchingContext
- All Implemented Interfaces:
MatchingContext
Default implementation of MatchingContext, backed
by a Map.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContextBinding
(String name, Object value) Add a context binding with the given name and valuegetBinding
(String contextParameterName) returns the binding associated with the given context parameter name (or null if there is no such context).boolean
hasContextBinding
(String contextParameterName) Returns true iff this matching context has a defined binding for the given context parameter.void
removeContextBinding
(String name) Remove the context binding with the given name
-
Constructor Details
-
DefaultMatchingContext
public DefaultMatchingContext()
-
-
Method Details
-
hasContextBinding
Description copied from interface:MatchingContext
Returns true iff this matching context has a defined binding for the given context parameter.- Specified by:
hasContextBinding
in interfaceMatchingContext
- Parameters:
contextParameterName
-
-
getBinding
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 interfaceMatchingContext
- Parameters:
contextParameterName
-- Returns:
-
addContextBinding
-
removeContextBinding
Remove the context binding with the given name- Parameters:
name
-
-