|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.expression.ExpressionInfo
public class 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.
Field Summary | |
---|---|
static String |
JOINPOINT_ABBREVIATION
|
static String |
JOINPOINT_CLASS_NAME
|
static String |
RTTI_ABBREVIATION
|
static String |
STATIC_JOINPOINT_ABBREVIATION
|
static String |
STATIC_JOINPOINT_CLASS_NAME
|
Constructor Summary | |
---|---|
ExpressionInfo(Node subExpression,
String namespace)
Creates a new expression info from an already parsed node This is usefull when extracting cflow sub expressions. |
|
ExpressionInfo(String expression,
String namespace)
Creates a new expression info instance from its string representation |
Method Summary | |
---|---|
void |
addArgument(String name,
String className,
ClassLoader loader)
Add an argument extracted from the call signature of the expression info. |
AdvisedClassFilterExpressionVisitor |
getAdvisedClassFilterExpression()
Returns the advised class filter expression. |
int |
getArgumentIndex(String parameterName)
Returns the argument index. |
String |
getArgumentNameAtIndex(int index)
Returns the argument at the given index. |
Set |
getArgumentNames()
Returns all argument names. |
String |
getArgumentType(String parameterName)
Returns the argumen type. |
CflowAspectExpressionVisitor |
getCflowAspectExpression()
Returns the cflow aspect expression. |
ExpressionVisitor |
getExpression()
Returns the regular expression. |
String |
getNamespace()
Returns the namespace |
static ExpressionParser |
getParser()
Returns the parser. |
String |
getSpecialArgumentName()
Get the bounded name of the special argument for afterReturning/Throwing binding |
void |
inheritPossibleArgumentFrom(ExpressionInfo expressionInfo)
|
void |
setSpecialArgumentName(String specialArgumentName)
Set the bounded name of the special argument for afterReturning/Throwing binding |
String |
toString()
Returns the expression as string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String JOINPOINT_CLASS_NAME
public static final String STATIC_JOINPOINT_CLASS_NAME
public static final String JOINPOINT_ABBREVIATION
public static final String STATIC_JOINPOINT_ABBREVIATION
public static final String RTTI_ABBREVIATION
Constructor Detail |
---|
public ExpressionInfo(String expression, String namespace)
expression
- the expressionnamespace
- the namespacepublic ExpressionInfo(Node subExpression, String namespace)
subExpression
- the sub expression nodenamespace
- the namespaceMethod Detail |
---|
public ExpressionVisitor getExpression()
public String getNamespace()
public CflowAspectExpressionVisitor getCflowAspectExpression()
public AdvisedClassFilterExpressionVisitor getAdvisedClassFilterExpression()
public static ExpressionParser getParser()
public String toString()
toString
in class Object
public void addArgument(String name, String className, ClassLoader loader)
name
- className
- loader
- public void setSpecialArgumentName(String specialArgumentName)
specialArgumentName
- public String getSpecialArgumentName()
public String getArgumentType(String parameterName)
parameterName
-
public int getArgumentIndex(String parameterName)
parameterName
-
public String getArgumentNameAtIndex(int index)
index
-
public Set getArgumentNames()
public void inheritPossibleArgumentFrom(ExpressionInfo expressionInfo)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |