Top Description Fields Constructors Methods
org.aspectj.weaver.tools

public Class DefaultMatchingContext

extends Object
implements MatchingContext
Class Inheritance
All Implemented Interfaces
org.aspectj.weaver.tools.MatchingContext
Imports
java.util.HashMap, .Map

Default implementation of MatchingContext, backed by a Map.

Field Summary

Modifier and TypeField and Description
private Map<String, Object>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addContextBinding(String name, Object value)

Add a context binding with the given name and value

public Object
getBinding(String contextParameterName)

Implements org.aspectj.weaver.tools.MatchingContext.getBinding.

returns the binding associated with the given context parameter name (or null if there is no such context).
public boolean
hasContextBinding(String contextParameterName)

Implements org.aspectj.weaver.tools.MatchingContext.hasContextBinding.

Returns true iff this matching context has a defined binding for the given context parameter.
public void
removeContextBinding(String name)

Remove the context binding with the given name

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextMapback to summary
private Map<String, Object> contextMap

Constructor Detail

DefaultMatchingContextback to summary
public DefaultMatchingContext()

Method Detail

addContextBindingback to summary
public void addContextBinding(String name, Object value)

Add a context binding with the given name and value

getBindingback to summary
public Object getBinding(String contextParameterName)

Implements org.aspectj.weaver.tools.MatchingContext.getBinding.

Doc from org.aspectj.weaver.tools.MatchingContext.getBinding.

returns the binding associated with the given context parameter name (or null if there is no such context).

hasContextBindingback to summary
public boolean hasContextBinding(String contextParameterName)

Implements org.aspectj.weaver.tools.MatchingContext.hasContextBinding.

Doc from org.aspectj.weaver.tools.MatchingContext.hasContextBinding.

Returns true iff this matching context has a defined binding for the given context parameter.

removeContextBindingback to summary
public void removeContextBinding(String name)

Remove the context binding with the given name