| Modifier and Type | Field and Description |
|---|---|
| private WeakClassLoaderReference | |
| private final Set | |
| private final Set | |
| private ReflectionWorld |
| Access | Constructor and Description |
|---|---|
| protected | PointcutParser()
Create a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions:
|
| private | PointcutParser(Set<PointcutPrimitive>
a set of PointcutPrimitives this parser should support supportedPointcutKinds)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<?> 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 PointcutParser | getPointcutParserSupportingAllPrimitivesAndUsingContextClassloaderForResolution()
Returns a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions:
|
| public static PointcutParser | getPointcutParserSupportingAllPrimitivesAndUsingSpecifiedClassloaderForResolution(ClassLoader classLoader)
Returns a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions:
|
| public static PointcutParser | getPointcutParserSupportingSpecifiedPrimitivesAndUsingContextClassloaderForResolution(Set<PointcutPrimitive>
a set of PointcutPrimitives this parser should support supportedPointcutKinds)Returns a pointcut parser that can parse pointcut expressions built from a user-defined subset of AspectJ's supported pointcut primitives. |
| public static PointcutParser | getPointcutParserSupportingSpecifiedPrimitivesAndUsingSpecifiedClassLoaderForResolution(Set<PointcutPrimitive>
a set of PointcutPrimitives this parser should support supportedPointcutKinds, ClassLoader classLoader)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 PointcutExpression | |
| public PointcutExpression | parsePointcutExpression(String expression, Class<?> 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)
|
| protected void | setClassLoader(ClassLoader aLoader)
Set the classloader that this parser should use for type resolution. |
| protected void | setClassLoader(ClassLoader aLoader, boolean
if true then two PointcutParsers operating using the same classloader will share a ReflectionWorld shareWorlds)Set the classloader that this parser should use for type resolution. |
| pack-priv IMessageHandler | |
| public void | setLintProperties(String
path to a file containing aspectj lint properties resourcePath)Set the lint properties for this parser from the given resource on the classpath. |
| public void | setLintProperties(Properties properties)
Set the lint properties for this parser from the given properties set. |
| protected void | |
| private UnresolvedType | |
| private void | |
| private void |
| classLoaderReference | back to summary |
|---|---|
| private WeakClassLoaderReference classLoaderReference | |
| pointcutDesignators | back to summary |
|---|---|
| private final Set<PointcutDesignatorHandler> pointcutDesignators | |
| supportedPrimitives | back to summary |
|---|---|
| private final Set<PointcutPrimitive> supportedPrimitives | |
| world | back to summary |
|---|---|
| private ReflectionWorld world | |
| PointcutParser | back to summary |
|---|---|
| protected PointcutParser() Create a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions:
| |
| PointcutParser | back to summary |
|---|---|
| private PointcutParser(Set<PointcutPrimitive> supportedPointcutKinds) 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<?> type) Create a pointcut parameter of the given name and type. | |
| getAllSupportedPointcutPrimitives | back to summary |
|---|---|
public static Set
| |
| getPointcutParserSupportingAllPrimitivesAndUsingContextClassloaderForResolution | back to summary |
|---|---|
| public static PointcutParser getPointcutParserSupportingAllPrimitivesAndUsingContextClassloaderForResolution() 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. | |
| getPointcutParserSupportingAllPrimitivesAndUsingSpecifiedClassloaderForResolution | back to summary |
|---|---|
| public static PointcutParser getPointcutParserSupportingAllPrimitivesAndUsingSpecifiedClassloaderForResolution(ClassLoader classLoader) Returns a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions:
When resolving types in pointcut expressions, the given classloader is used to find types. | |
| getPointcutParserSupportingSpecifiedPrimitivesAndUsingContextClassloaderForResolution | back to summary |
|---|---|
| public static PointcutParser getPointcutParserSupportingSpecifiedPrimitivesAndUsingContextClassloaderForResolution(Set<PointcutPrimitive> supportedPointcutKinds) 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 context classloader is used to find types.
| |
| getPointcutParserSupportingSpecifiedPrimitivesAndUsingSpecifiedClassLoaderForResolution | back to summary |
|---|---|
| public static PointcutParser getPointcutParserSupportingSpecifiedPrimitivesAndUsingSpecifiedClassLoaderForResolution(Set<PointcutPrimitive> supportedPointcutKinds, ClassLoader classLoader) 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 PointcutExpression 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 PointcutExpression parsePointcutExpression(String expression, Class<?> 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) | |
| setClassLoader | back to summary |
|---|---|
| protected void setClassLoader(ClassLoader aLoader) Set the classloader that this parser should use for type resolution. | |
| setClassLoader | back to summary |
|---|---|
| protected void setClassLoader(ClassLoader aLoader, boolean shareWorlds) Set the classloader that this parser should use for type resolution.
| |
| setCustomMessageHandler | back to summary |
|---|---|
| pack-priv IMessageHandler setCustomMessageHandler(IMessageHandler aHandler) | |
| setLintProperties | back to summary |
|---|---|
| public void setLintProperties(String resourcePath) throws IOException Set the lint properties for this parser from the given resource on the classpath.
| |
| setLintProperties | back to summary |
|---|---|
| public void setLintProperties(Properties properties) Set the lint properties for this parser from the given properties set. | |
| setWorld | back to summary |
|---|---|
| protected void setWorld(ReflectionWorld aWorld) | |
| 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) | |