ColdSpring 2.0 - Narwhal

coldspring.aop.expression
Class ExpressionParser

WEB-INF.cftags.component
        extended by coldspring.aop.expression.ExpressionParser

public class ExpressionParser
extends WEB-INF.cftags.component

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

init

public init()
Constructor

Method Detail

checkParserForErrors

private void checkParserForErrors(string expression, any parser)
check to see if there was an error in parsing, and if so, throw the required exception

Parameters:
expression - the original expression
parser - the parser in question.

configure

public void configure()
configure method for singleton setup


getJavaLoader

private JavaLoader getJavaLoader()


htmlDisplayTree

private string htmlDisplayTree(any tree, [numeric level='0'])
walks the tree, and makes a string

Parameters:
tree - The tree node to walk
level -

parse

public Pointcut parse(string expression)
parse an expression, and return an appropriate pointcut

Parameters:
expression - the expression to parse

parseAnnotation

private Pointcut parseAnnotation(any tree, any parser)
parses an annotation pointcut - @target or @annotation

Parameters:
tree - the AST
parser - the parser in question. Useful for constants

parseArguments

private any parseArguments(any tree, ExecutionPointcut pointcut)
parse the argument section of the exectution pointcut

Parameters:
tree - the package, class and method part of the AST
pointcut - the expression pointcut

parseCompositeExpression

private Pointcut parseCompositeExpression(string expression, any tree, any parser)
parse multipe expressions that are composite

Parameters:
expression - the original expression
tree - the AST
parser - the parser in question. Useful for constants

parseExecution

private Pointcut parseExecution(string expression, any tree, any parser)
parses an execution pointcut - execution()

Parameters:
expression - the original expression
tree - the AST
parser - the parser in question. Useful for constants

parseExecutionPackageClassAndMethod

private void parseExecutionPackageClassAndMethod(any tree, ExecutionPointcut pointcut)
parses the execution() pointcut package/class and method portion and sets the relevent details on the pointcut

Parameters:
tree - the package, class and method part of the AST
pointcut - the expression pointcut

parseExecutionScope

private void parseExecutionScope(string expression, any tree)
Parse the scope part of a execution() pointcut

Parameters:
expression - the original expression
tree - the scope part of the AST

parseSingleExpression

private Pointcut parseSingleExpression(string expression, any tree, any parser)
parses a single expression, and returns a pointcut

Parameters:
expression - the original expression
tree - the AST
parser - the parser in question. Useful for constants

parseTarget

private Pointcut parseTarget(any tree, any parser)
parses a Target pointcut - target

Parameters:
tree - the AST
parser - the parser in question. Useful for constants

parseWithin

private Pointcut parseWithin(string expression, any tree, any parser)
parses an within pointcut - within()

Parameters:
expression - the original expression
tree - the AST
parser - the parser in question. Useful for constants

setJavaLoader

private void setJavaLoader(JavaLoader JavaLoader)

Parameters:
JavaLoader

ColdSpring 2.0 - Narwhal