Package org.codehaus.aspectwerkz.expression.ast

Examples of org.codehaus.aspectwerkz.expression.ast.Node.jjtAccept()


    protected Object visitAnnotatedNode(SimpleNode node,
                      ReflectionInfo reflectInfo) {
        // In an annotated subtree, only the last child node may represent the pattern
        Node patternNode = node.jjtGetChild(node.jjtGetNumChildren() - 1);
        if (!(patternNode instanceof ASTAttribute)) {
            if (Boolean.FALSE.equals((Boolean)patternNode.jjtAccept(this, reflectInfo))) {
                return Boolean.FALSE;
            }
        }

        boolean matchedAnnotations = visitAttributes(node, reflectInfo);
View Full Code Here


        return node.jjtGetChild(0).jjtAccept(this, data);
    }

    public Object visit(ASTRoot node, Object data) {
        Node child = node.jjtGetChild(0);
        Boolean match = (Boolean) child.jjtAccept(this, data);
        return match;
    }

    public Object visit(ASTExpression node, Object data) {
        Node child = node.jjtGetChild(0);
View Full Code Here

        return match;
    }

    public Object visit(ASTExpression node, Object data) {
        Node child = node.jjtGetChild(0);
        Boolean match = (Boolean) child.jjtAccept(this, data);
        return match;
    }

    public Object visit(ASTNot node, Object data) {
        return super.visit(node,data);
View Full Code Here

       
        if(checkPattern) {
            if (context.hasWithinPointcut() || context.hasExecutionPointcut()) {
                if (context.hasExecutionPointcut()) {
                    // reflectionInfo was given
                    return patternNode.jjtAccept(this, context.getReflectionInfo());
                } else {
                    // only withinInfo was given
                    return patternNode.jjtAccept(this, context.getWithinReflectionInfo());
                }
            } else {
View Full Code Here

                if (context.hasExecutionPointcut()) {
                    // reflectionInfo was given
                    return patternNode.jjtAccept(this, context.getReflectionInfo());
                } else {
                    // only withinInfo was given
                    return patternNode.jjtAccept(this, context.getWithinReflectionInfo());
                }
            } else {
                return Boolean.FALSE;
            }
        } else {
View Full Code Here

        boolean checkPattern = !(patternNode instanceof ASTAttribute);
       
        if(checkPattern) {
            if (context.hasWithinPointcut() || context.hasCallPointcut()) {
                if (context.hasReflectionInfo()) {
                        return patternNode.jjtAccept(this, context.getReflectionInfo());
                } else {
                    return null;
                }
            } else {
                return Boolean.FALSE;
View Full Code Here

        // for set evaluation, the reflection info may be null at the early matching phase
        // when we will allow for field interception within non declaring class
        if(checkPattern) {
            if (context.hasWithinPointcut() || context.hasSetPointcut()) {
                if (context.hasReflectionInfo()) {
                        return patternNode.jjtAccept(this, context.getReflectionInfo());
                } else {
                    return null;
                }
            } else {
                return Boolean.FALSE;
View Full Code Here

        // for get evaluation, the reflection info may be null at the early matching phase
        // since we allow for field interception within non declaring class
        if(checkPattern) {
            if (context.hasWithinPointcut() || context.hasGetPointcut()) {
                if (context.hasReflectionInfo()) {
                  return patternNode.jjtAccept(this, context.getReflectionInfo());
                } else {
                    return null;
                }
            } else {
                return Boolean.FALSE;
View Full Code Here

            }
          if (reflectInfo instanceof ClassInfo) {
                // In an annotated subtree, the last child node represents the pattern
                Node patternNode = node.jjtGetChild(node.jjtGetNumChildren() - 1);
                if (!(patternNode instanceof ASTAttribute)) {
                    Boolean matchPattern = (Boolean) patternNode.jjtAccept(this, reflectInfo);
                    if (Boolean.FALSE.equals(matchPattern)) {
                        return Boolean.FALSE;
                    }
                }
View Full Code Here

          Node patternNode = node.jjtGetChild(node.jjtGetNumChildren() - 1);
          boolean checkPattern = !(patternNode instanceof ASTAttribute);
 
          if (checkPattern) {
              if (withinInfo instanceof MemberInfo) {
                  return patternNode.jjtAccept(this, withinInfo);
              } else if (withinInfo instanceof ClassInfo) {
                  Boolean matchDeclaringType = (Boolean) patternNode.jjtAccept(this, withinInfo);
                  if (Boolean.FALSE.equals(matchDeclaringType)) {
                      return Boolean.FALSE;
                  } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.