| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final Set | |
| private World |
| Access | Constructor and Description |
|---|---|
| protected | StandardPointcutParser(World world)
Create a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions:
|
| private | StandardPointcutParser(Set<PointcutPrimitive>
a set of PointcutPrimitives this parser should support supportedPointcutKinds, World world)Create a pointcut parser that can parse pointcut expressions built from a user-defined subset of AspectJ's supported pointcut primitives. |
| Modifier and Type | Method and Description |
|---|---|
| private IScope | |
| private String | |
| protected Pointcut | |
| public PointcutParameter | createPointcutParameter(String name, Class<T> type)
Create a pointcut parameter of the given name and type. |
| public static Set | Returns: a Set containing every PointcutPrimitive except if, cflow, and cflowbelow (useful for passing to PointcutParser constructor).
|
| public static StandardPointcutParser | getPointcutParserSupportingAllPrimitives(World world)
Returns a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions:
|
| public static StandardPointcutParser | getPointcutParserSupportingSpecifiedPrimitives(Set<E>
a set of PointcutPrimitives this parser should support supportedPointcutKinds, World world)Returns a pointcut parser that can parse pointcut expressions built from a user-defined subset of AspectJ's supported pointcut primitives. |
| pack-priv Set | |
| private World | |
| public StandardPointcutExpression | |
| public StandardPointcutExpression | parsePointcutExpression(String expression, Class<T> inScope, PointcutParameter[] formalParameters)
Parse the given pointcut expression. |
| public TypePatternMatcher | Returns: a type pattern matcher that matches using the given patternan aspectj type pattern typePattern)Parse the given aspectj type pattern, and return a matcher that can be used to match types using it. |
| public void | registerPointcutDesignatorHandler(PointcutDesignatorHandler designatorHandler)
Register a new pointcut designator handler with this parser. |
| protected Pointcut | resolvePointcutExpression(String expression, Class<?> inScope, PointcutParameter[] formalParameters)
|
| pack-priv IMessageHandler | |
| public void | setLintProperties(Properties properties)
Set the lint properties for this parser from the given properties set. |
| private UnresolvedType | |
| private void | |
| private void |
| pointcutDesignators | back to summary |
|---|---|
| private final Set<PointcutDesignatorHandler> pointcutDesignators | |
| supportedPrimitives | back to summary |
|---|---|
| private final Set<PointcutPrimitive> supportedPrimitives | |
| world | back to summary |
|---|---|
| private World world | |
| StandardPointcutParser | back to summary |
|---|---|
| protected StandardPointcutParser(World world) Create a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions:
| |
| StandardPointcutParser | back to summary |
|---|---|
| private StandardPointcutParser(Set<PointcutPrimitive> supportedPointcutKinds, World world) Create a pointcut parser that can parse pointcut expressions built from a user-defined subset of AspectJ's supported pointcut primitives. The following restrictions apply:
| |
| buildResolutionScope | back to summary |
|---|---|
| private IScope buildResolutionScope(Class<?> inScope, PointcutParameter[] formalParameters) | |
| buildUserMessageFromParserException | back to summary |
|---|---|
| private String buildUserMessageFromParserException(String pc, ParserException ex) | |
| concretizePointcutExpression | back to summary |
|---|---|
| protected Pointcut concretizePointcutExpression(Pointcut pc, Class<?> inScope, PointcutParameter[] formalParameters) | |
| createPointcutParameter | back to summary |
|---|---|
| public PointcutParameter createPointcutParameter(String name, Class<T> type) Create a pointcut parameter of the given name and type. | |
| getAllSupportedPointcutPrimitives | back to summary |
|---|---|
public static Set
| |
| getPointcutParserSupportingAllPrimitives | back to summary |
|---|---|
| public static StandardPointcutParser getPointcutParserSupportingAllPrimitives(World world) Returns a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions:
When resolving types in pointcut expressions, the context classloader is used to find types. | |
| getPointcutParserSupportingSpecifiedPrimitives | back to summary |
|---|---|
| public static StandardPointcutParser getPointcutParserSupportingSpecifiedPrimitives(Set<E> supportedPointcutKinds, World world) Returns a pointcut parser that can parse pointcut expressions built from a user-defined subset of AspectJ's supported pointcut primitives. The following restrictions apply:
When resolving types in pointcut expressions, the given classloader is used to find types.
| |
| getSupportedPrimitives | back to summary |
|---|---|
| pack-priv Set | |
| getWorld | back to summary |
|---|---|
| private World getWorld() | |
| parsePointcutExpression | back to summary |
|---|---|
| public StandardPointcutExpression parsePointcutExpression(String expression) throws UnsupportedPointcutPrimitiveException, IllegalArgumentException Parse the given pointcut expression. A global scope is assumed for resolving any type references, and the pointcut must contain no formals (variables to be bound).
| |
| parsePointcutExpression | back to summary |
|---|---|
| public StandardPointcutExpression parsePointcutExpression(String expression, Class<T> inScope, PointcutParameter[] formalParameters) throws UnsupportedPointcutPrimitiveException, IllegalArgumentException Parse the given pointcut expression. The pointcut is resolved as if it had been declared inside the inScope class (this allows the pointcut to contain unqualified references to other pointcuts declared in the same type for example). The pointcut may contain zero or more formal parameters to be bound at matched join points.
| |
| parseTypePattern | back to summary |
|---|---|
| public TypePatternMatcher parseTypePattern(String typePattern) throws IllegalArgumentException Parse the given aspectj type pattern, and return a matcher that can be used to match types using it.
| |
| registerPointcutDesignatorHandler | back to summary |
|---|---|
| public void registerPointcutDesignatorHandler(PointcutDesignatorHandler designatorHandler) Register a new pointcut designator handler with this parser. This provides an extension mechansim for the integration of domain-specific pointcut designators with the AspectJ pointcut language. | |
| resolvePointcutExpression | back to summary |
|---|---|
| protected Pointcut resolvePointcutExpression(String expression, Class<?> inScope, PointcutParameter[] formalParameters) | |
| setCustomMessageHandler | back to summary |
|---|---|
| pack-priv IMessageHandler setCustomMessageHandler(IMessageHandler aHandler) | |
| setLintProperties | back to summary |
|---|---|
| public void setLintProperties(Properties properties) Set the lint properties for this parser from the given properties set. | |
| toUnresolvedType | back to summary |
|---|---|
| private UnresolvedType toUnresolvedType(Class<?> clazz) | |
| validateAgainstSupportedPrimitives | back to summary |
|---|---|
| private void validateAgainstSupportedPrimitives(Pointcut pc, String expression) | |
| validateKindedPointcut | back to summary |
|---|---|
| private void validateKindedPointcut(KindedPointcut pc, String expression) | |