org.aspectj.weaver.tools

Class DefaultMatchingContext

Implemented Interfaces:
MatchingContext

public class DefaultMatchingContext
extends java.lang.Object
implements MatchingContext

Default implementation of MatchingContext, backed by a Map.

Method Summary

void
addContextBinding(String name, Object value)
Add a context binding with the given name and value
Object
getBinding(String contextParameterName)
boolean
hasContextBinding(String contextParameterName)
void
removeContextBinding(String name)
Remove the context binding with the given name

Method Details

addContextBinding

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

getBinding

public Object getBinding(String contextParameterName)
Specified by:
getBinding in interface MatchingContext

hasContextBinding

public boolean hasContextBinding(String contextParameterName)
Specified by:
hasContextBinding in interface MatchingContext

removeContextBinding

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