Package org.codehaus.aspectwerkz.expression.ast

Examples of org.codehaus.aspectwerkz.expression.ast.ASTWithin.jjtAddChild()


            ASTWithin fastNode = new ASTWithin(0);

            for (int i = 0; i < node.jjtGetChild(0).jjtGetNumChildren(); i++) {

                  fastNode.jjtAddChild(node.jjtGetChild(0).jjtGetChild(i), i);

            }

            return super.visit(fastNode, data);
View Full Code Here


        if (node.isStaticInitializer()) {
            // transform the node in a within node to do an exact match on the within info
            //TODO would be worth to do the fastNode creation only once somewhere
            ASTWithin fastNode = new ASTWithin(0);
            for (int i = 0; i < node.jjtGetChild(0).jjtGetNumChildren(); i++) {
                  fastNode.jjtAddChild(node.jjtGetChild(0).jjtGetChild(i), i);
            }
            return super.visit(fastNode, data);
        } else {
          Node patternNode = node.jjtGetChild(node.jjtGetNumChildren() - 1);
          boolean checkPattern = !(patternNode instanceof ASTAttribute);
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.