| java.lang.Object org.codehaus.aspectwerkz.expression.ExpressionVisitor org.codehaus.aspectwerkz.expression.ArgsIndexVisitor
ArgsIndexVisitor | public class ArgsIndexVisitor extends ExpressionVisitor (Code) | | A visitor to compute the args index of the target (matching) method/constructor which match the advice args. Note:
extends the ExpressionVisitor. We should allow for optimization (all=TRUE) by assuming that args(..) does not depends
of the matching context. The "(String a, String b):methodX && args(a,b) -OR- methodY && args(b,a)" expression should
not be allowed then.
author: Alexandre Vasseur |
Method Summary | |
public static void | updateContextForRuntimeInformation(ExpressionInfo expressionInfo, ExpressionContext context, ClassLoader loader) Update the given context with its runtime information (this, target, args). | public Object | visit(ASTPointcutReference node, Object data) | public Object | visit(ASTCflow node, Object data) | public Object | visit(ASTArgs node, Object data) | public Object | visit(ASTArgParameter node, Object data) | public Object | visit(ASTThis node, Object data) | public Object | visit(ASTTarget node, Object data) |
updateContextForRuntimeInformation | public static void updateContextForRuntimeInformation(ExpressionInfo expressionInfo, ExpressionContext context, ClassLoader loader)(Code) | | Update the given context with its runtime information (this, target, args).
It should be called for each advice.
Parameters: expressionInfo - Parameters: context - |
Methods inherited from org.codehaus.aspectwerkz.expression.ExpressionVisitor | public Node getASTRoot()(Code)(Java Doc) public ExpressionInfo getExpressionInfo()(Code)(Java Doc) public boolean match(ExpressionContext context)(Code)(Java Doc) protected Boolean matchUndeterministic(ExpressionContext context)(Code)(Java Doc) public String toString()(Code)(Java Doc) public Object visit(Node node, Object data)(Code)(Java Doc) public Object visit(SimpleNode node, Object data)(Code)(Java Doc) public Object visit(ASTRoot node, Object data)(Code)(Java Doc) public Object visit(ASTExpression node, Object data)(Code)(Java Doc) public Object visit(ASTOr node, Object data)(Code)(Java Doc) public Object visit(ASTAnd node, Object data)(Code)(Java Doc) public Object visit(ASTNot node, Object data)(Code)(Java Doc) public Object visit(ASTPointcutReference node, Object data)(Code)(Java Doc) public Object visit(ASTExecution node, Object data)(Code)(Java Doc) public Object visit(ASTCall node, Object data)(Code)(Java Doc) public Object visit(ASTSet node, Object data)(Code)(Java Doc) public Object visit(ASTGet node, Object data)(Code)(Java Doc) public Object visit(ASTHandler node, Object data)(Code)(Java Doc) public Object visit(ASTStaticInitialization node, Object data)(Code)(Java Doc) public Object visit(ASTWithin node, Object data)(Code)(Java Doc) public Object visit(ASTWithinCode node, Object data)(Code)(Java Doc) public Object visit(ASTHasMethod node, Object data)(Code)(Java Doc) public Object visit(ASTHasField node, Object data)(Code)(Java Doc) public Object visit(ASTTarget node, Object data)(Code)(Java Doc) public Object visit(ASTThis node, Object data)(Code)(Java Doc) public Object visit(ASTCflow node, Object data)(Code)(Java Doc) public Object visit(ASTCflowBelow node, Object data)(Code)(Java Doc) public Object visit(ASTClassPattern node, Object data)(Code)(Java Doc) public Object visit(ASTMethodPattern node, Object data)(Code)(Java Doc) public Object visit(ASTConstructorPattern node, Object data)(Code)(Java Doc) public Object visit(ASTFieldPattern node, Object data)(Code)(Java Doc) public Object visit(ASTParameter node, Object data)(Code)(Java Doc) public Object visit(ASTArgs node, Object data)(Code)(Java Doc) public Object visit(ASTArgParameter node, Object data)(Code)(Java Doc) public Object visit(ASTAttribute node, Object data)(Code)(Java Doc) public Object visit(ASTModifier node, Object data)(Code)(Java Doc) protected Object visitAnnotatedNode(SimpleNode node, ReflectionInfo reflectInfo)(Code)(Java Doc) protected boolean visitAttributes(SimpleNode node, ReflectionInfo refInfo)(Code)(Java Doc) protected boolean visitModifiers(SimpleNode node, ReflectionInfo refInfo)(Code)(Java Doc) protected boolean visitParameters(SimpleNode node, ClassInfo[] parameterTypes)(Code)(Java Doc)
|
|
|