|
ColdSpring 2.0 - Narwhal | ||||
FRAMES |
WEB-INF.cftags.component coldspring.aop.expression.ExpressionParser
public class ExpressionParser
Parser for expressions that returns a CompositePointcut
Constructor Summary | |
---|---|
init()
Constructor |
Method Summary | |
---|---|
private void |
checkParserForErrors(string expression, any parser)
check to see if there was an error in parsing, and if so, throw the required exception |
void |
configure()
configure method for singleton setup |
private JavaLoader |
getJavaLoader()
|
private string |
htmlDisplayTree(any tree, [numeric level='0'])
walks the tree, and makes a string |
Pointcut |
parse(string expression)
parse an expression, and return an appropriate pointcut |
private Pointcut |
parseAnnotation(any tree, any parser)
parses an annotation pointcut - @target or @annotation |
private any |
parseArguments(any tree, ExecutionPointcut pointcut)
parse the argument section of the exectution pointcut |
private Pointcut |
parseCompositeExpression(string expression, any tree, any parser)
parse multipe expressions that are composite |
private Pointcut |
parseExecution(string expression, any tree, any parser)
parses an execution pointcut - execution() |
private void |
parseExecutionPackageClassAndMethod(any tree, ExecutionPointcut pointcut)
parses the execution() pointcut package/class and method portion and sets the relevent details on the pointcut |
private void |
parseExecutionScope(string expression, any tree)
Parse the scope part of a execution() pointcut |
private Pointcut |
parseSingleExpression(string expression, any tree, any parser)
parses a single expression, and returns a pointcut |
private Pointcut |
parseTarget(any tree, any parser)
parses a Target pointcut - target |
private Pointcut |
parseWithin(string expression, any tree, any parser)
parses an within pointcut - within() |
private void |
setJavaLoader(JavaLoader JavaLoader)
|
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init()
Method Detail |
---|
private void checkParserForErrors(string expression, any parser)
expression
- the original expressionparser
- the parser in question.public void configure()
private JavaLoader getJavaLoader()
private string htmlDisplayTree(any tree, [numeric level='0'])
tree
- The tree node to walklevel
- public Pointcut parse(string expression)
expression
- the expression to parseprivate Pointcut parseAnnotation(any tree, any parser)
tree
- the ASTparser
- the parser in question. Useful for constantsprivate any parseArguments(any tree, ExecutionPointcut pointcut)
tree
- the package, class and method part of the ASTpointcut
- the expression pointcutprivate Pointcut parseCompositeExpression(string expression, any tree, any parser)
expression
- the original expressiontree
- the ASTparser
- the parser in question. Useful for constantsprivate Pointcut parseExecution(string expression, any tree, any parser)
expression
- the original expressiontree
- the ASTparser
- the parser in question. Useful for constantsprivate void parseExecutionPackageClassAndMethod(any tree, ExecutionPointcut pointcut)
tree
- the package, class and method part of the ASTpointcut
- the expression pointcutprivate void parseExecutionScope(string expression, any tree)
expression
- the original expressiontree
- the scope part of the ASTprivate Pointcut parseSingleExpression(string expression, any tree, any parser)
expression
- the original expressiontree
- the ASTparser
- the parser in question. Useful for constantsprivate Pointcut parseTarget(any tree, any parser)
tree
- the ASTparser
- the parser in question. Useful for constantsprivate Pointcut parseWithin(string expression, any tree, any parser)
expression
- the original expressiontree
- the ASTparser
- the parser in question. Useful for constantsprivate void setJavaLoader(JavaLoader JavaLoader)
JavaLoader
|
ColdSpring 2.0 - Narwhal | ||||
FRAMES |