Top Description Methods
org.aspectj.weaver.tools

public Interface PointcutDesignatorHandler


The PointcutDesignator interface allows extension of the AspectJ pointcut language so that third-party tools integrating with AspectJ can add easily their own custom domain-specific designators and have them interoperate seamlessly with the standard AspectJ designators. A pointcut designator can only be used for matching, not for binding.

Method Summary

Modifier and TypeMethod and Description
public String
getDesignatorName()

The name of this pointcut designator.

public ContextBasedMatcher

Returns:

a pointcut expression that can be used for matching.
parse
(String
the body of the pointcut expression. For example, given the expression "bean(*DAO)" the parse method will be called with the argument "*DAO".
expression
)

Parse the given expression string and return a ContextBasedMatcher that can be used for matching.

Method Detail

getDesignatorNameback to summary
public String getDesignatorName()

The name of this pointcut designator. For example, if this designator handles a "bean(<NamePattern>) format designator, this method would return "bean".

parseback to summary
public ContextBasedMatcher parse(String expression)

Parse the given expression string and return a ContextBasedMatcher that can be used for matching.

Parameters
expression:String

the body of the pointcut expression. For example, given the expression "bean(*DAO)" the parse method will be called with the argument "*DAO".

Returns:ContextBasedMatcher

a pointcut expression that can be used for matching.

Exceptions
IllegalArgumentException:
if the expression is ill-formed.