|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aspectj.weaver.tools.StandardPointcutParser
public class StandardPointcutParser
A PointcutParser can be used to build PointcutExpressions for a user-defined subset of AspectJ's pointcut language
Constructor Summary | |
---|---|
protected |
StandardPointcutParser(World world)
Create a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions: The if, cflow, and cflowbelow pointcut designators are not supported
Pointcut expressions must be self-contained :- they cannot contain references to other named pointcuts
The pointcut expression must be anonymous with no formals allowed. |
Method Summary | |
---|---|
protected Pointcut |
concretizePointcutExpression(Pointcut pc,
java.lang.Class<?> inScope,
PointcutParameter[] formalParameters)
|
PointcutParameter |
createPointcutParameter(java.lang.String name,
java.lang.Class type)
Create a pointcut parameter of the given name and type. |
static java.util.Set<PointcutPrimitive> |
getAllSupportedPointcutPrimitives()
|
static StandardPointcutParser |
getPointcutParserSupportingAllPrimitives(World world)
Returns a pointcut parser that can parse the full AspectJ pointcut language with the following exceptions: The if, cflow, and cflowbelow pointcut designators are not supported
Pointcut expressions must be self-contained :- they cannot contain references to other named pointcuts
The pointcut expression must be anonymous with no formals allowed. |
static StandardPointcutParser |
getPointcutParserSupportingSpecifiedPrimitives(java.util.Set supportedPointcutKinds,
World world)
Returns a pointcut parser that can parse pointcut expressions built from a user-defined subset of AspectJ's supported pointcut primitives. |
StandardPointcutExpression |
parsePointcutExpression(java.lang.String expression)
Parse the given pointcut expression. |
StandardPointcutExpression |
parsePointcutExpression(java.lang.String expression,
java.lang.Class inScope,
PointcutParameter[] formalParameters)
Parse the given pointcut expression. |
TypePatternMatcher |
parseTypePattern(java.lang.String typePattern)
Parse the given aspectj type pattern, and return a matcher that can be used to match types using it. |
void |
registerPointcutDesignatorHandler(PointcutDesignatorHandler designatorHandler)
Register a new pointcut designator handler with this parser. |
protected Pointcut |
resolvePointcutExpression(java.lang.String expression,
java.lang.Class<?> inScope,
PointcutParameter[] formalParameters)
|
void |
setLintProperties(java.util.Properties properties)
Set the lint properties for this parser from the given properties set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected StandardPointcutParser(World world)
if, cflow, and cflowbelow
pointcut designators are not supported
Method Detail |
---|
public static java.util.Set<PointcutPrimitive> getAllSupportedPointcutPrimitives()
public static StandardPointcutParser getPointcutParserSupportingAllPrimitives(World world)
if, cflow, and cflowbelow
pointcut designators are not supported
When resolving types in pointcut expressions, the context classloader is used to find types.
public static StandardPointcutParser getPointcutParserSupportingSpecifiedPrimitives(java.util.Set supportedPointcutKinds, World world)
if, cflow, and cflowbelow
pointcut designators are not supported
When resolving types in pointcut expressions, the given classloader is used to find types.
supportedPointcutKinds
- a set of PointcutPrimitives this parser should support
java.lang.UnsupportedOperationException
- if the set contains if, cflow, or cflow belowpublic void setLintProperties(java.util.Properties properties)
properties
- public void registerPointcutDesignatorHandler(PointcutDesignatorHandler designatorHandler)
designatorHandler
- public PointcutParameter createPointcutParameter(java.lang.String name, java.lang.Class type)
name
- type
-
public StandardPointcutExpression parsePointcutExpression(java.lang.String expression) throws UnsupportedPointcutPrimitiveException, java.lang.IllegalArgumentException
UnsupportedPointcutPrimitiveException
- if the parser encounters a primitive pointcut expression of a kind not
supported by this PointcutParser.
java.lang.IllegalArgumentException
- if the expression is not a well-formed pointcut expressionpublic StandardPointcutExpression parsePointcutExpression(java.lang.String expression, java.lang.Class inScope, PointcutParameter[] formalParameters) throws UnsupportedPointcutPrimitiveException, java.lang.IllegalArgumentException
UnsupportedPointcutPrimitiveException
- if the parser encounters a primitive pointcut expression of a kind not
supported by this PointcutParser.
java.lang.IllegalArgumentException
- if the expression is not a well-formed pointcut expressionprotected Pointcut resolvePointcutExpression(java.lang.String expression, java.lang.Class<?> inScope, PointcutParameter[] formalParameters)
protected Pointcut concretizePointcutExpression(Pointcut pc, java.lang.Class<?> inScope, PointcutParameter[] formalParameters)
public TypePatternMatcher parseTypePattern(java.lang.String typePattern) throws java.lang.IllegalArgumentException
typePattern
- an aspectj type pattern
java.lang.IllegalArgumentException
- if the type pattern cannot be successfully parsed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |