|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.expression.ExpressionInfo
Abstraction that holds info about the expression and the different visitors.
We are using a lazy initialization for m_hasCflowPointcut field to allow to fully resolve each expression (that is f.e. on IBM
compiler, fields are in the reverse order, thus pointcut reference in aspect defined with annotations
may not be resolved until the whole class has been parsed.
Constructor Summary | |
ExpressionInfo(String expression,
String namespace)
Creates a new expression info instance. |
Method Summary | |
void |
addArgument(String name,
String className)
Add an argument extracted from the call signature of the expression info. |
AdvisedCflowClassFilterExpressionVisitor |
getAdvisedCflowClassFilterExpression()
Returns the advised cflow class filter expression. |
AdvisedClassFilterExpressionVisitor |
getAdvisedClassFilterExpression()
Returns the advised class filter expression. |
ArgsIndexVisitor |
getArgsIndexMapper()
Returns the regular expression. |
int |
getArgumentIndex(String parameterName)
Returns the argument index. |
Set |
getArgumentNames()
Returns all argument names. |
String |
getArgumentType(String parameterName)
Returns the argumen type. |
CflowExpressionVisitor |
getCflowExpression()
Returns the cflow expression. |
CflowExpressionVisitorRuntime |
getCflowExpressionRuntime()
Returns the runtime cflow expression. |
ExpressionVisitor |
getExpression()
Returns the regular expression. |
String |
getExpressionAsString()
Returns the expression as string. |
String |
getNamespace()
Returns the namespace |
static ExpressionParser |
getParser()
Returns the parser. |
boolean |
hasCflowPointcut()
Checks if the expression has a cflow pointcut node. |
String |
toString()
Returns the expression as string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ExpressionInfo(String expression, String namespace)
expression
- the expressionnamespace
- the namespaceMethod Detail |
public String getExpressionAsString()
public ExpressionVisitor getExpression()
public String getNamespace()
public ArgsIndexVisitor getArgsIndexMapper()
public CflowExpressionVisitor getCflowExpression()
public CflowExpressionVisitorRuntime getCflowExpressionRuntime()
public AdvisedClassFilterExpressionVisitor getAdvisedClassFilterExpression()
public AdvisedCflowClassFilterExpressionVisitor getAdvisedCflowClassFilterExpression()
public static ExpressionParser getParser()
public boolean hasCflowPointcut()
public String toString()
public void addArgument(String name, String className)
name
- className
- public String getArgumentType(String parameterName)
parameterName
-
public int getArgumentIndex(String parameterName)
parameterName
-
public Set getArgumentNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |