| |
|
| java.lang.Object com.tc.aspectwerkz.expression.ExpressionInfo
ExpressionInfo | public class ExpressionInfo (Code) | | 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.
author: Jonas BonŽr author: Alexandre Vasseur |
Constructor Summary | |
public | ExpressionInfo(String expression, String namespace) | public | ExpressionInfo(Node subExpression, String namespace) Creates a new expression info from an already parsed node
This is usefull when extracting cflow sub expressions. |
JOINPOINT_ABBREVIATION | final public static String JOINPOINT_ABBREVIATION(Code) | | |
JOINPOINT_CLASS_NAME | final public static String JOINPOINT_CLASS_NAME(Code) | | |
RTTI_ABBREVIATION | final public static String RTTI_ABBREVIATION(Code) | | |
STATIC_JOINPOINT_ABBREVIATION | final public static String STATIC_JOINPOINT_ABBREVIATION(Code) | | |
STATIC_JOINPOINT_CLASS_NAME | final public static String STATIC_JOINPOINT_CLASS_NAME(Code) | | |
ExpressionInfo | public ExpressionInfo(String expression, String namespace)(Code) | | Creates a new expression info instance from its string representation
Parameters: expression - the expression Parameters: namespace - the namespace |
ExpressionInfo | public ExpressionInfo(Node subExpression, String namespace)(Code) | | Creates a new expression info from an already parsed node
This is usefull when extracting cflow sub expressions.
Some attached visitor will be wrong since the string representation
of the expression is not available.
Parameters: subExpression - the sub expression node Parameters: namespace - the namespace |
addArgument | public void addArgument(String name, String className, ClassLoader loader)(Code) | | Add an argument extracted from the call signature of the expression info.
Check is made to ensure that the argument is part of an args(..) or pointcutReference(..) subexpression.
Note that specialArgument for afterReturning/Throwing is handled in a different way.
Parameters: name - Parameters: className - Parameters: loader - |
getArgumentIndex | public int getArgumentIndex(String parameterName)(Code) | | Returns the argument index.
Parameters: parameterName - |
getArgumentNameAtIndex | public String getArgumentNameAtIndex(int index)(Code) | | Returns the argument at the given index.
Parameters: index - paramName |
getArgumentNames | public Set getArgumentNames()(Code) | | Returns all argument names.
|
getArgumentType | public String getArgumentType(String parameterName)(Code) | | Returns the argumen type.
Parameters: parameterName - |
getExpressionString | public String getExpressionString()(Code) | | |
getNamespace | public String getNamespace()(Code) | | Returns the namespace
|
getSpecialArgumentName | public String getSpecialArgumentName()(Code) | | Get the bounded name of the special argument for afterReturning/Throwing binding
|
inheritPossibleArgumentFrom | public void inheritPossibleArgumentFrom(ExpressionInfo expressionInfo)(Code) | | |
setSpecialArgumentName | public void setSpecialArgumentName(String specialArgumentName)(Code) | | Set the bounded name of the special argument for afterReturning/Throwing binding
Parameters: specialArgumentName - |
toString | public String toString()(Code) | | Returns the expression as string.
the expression as string |
|
|
|