Package org.codehaus.aspectwerkz.expression.ast

Examples of org.codehaus.aspectwerkz.expression.ast.ASTWithin


            // 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);
View Full Code Here


        ReflectionInfo withinInfo = context.getWithinReflectionInfo();

        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

Related Classes of org.codehaus.aspectwerkz.expression.ast.ASTWithin

Copyright © 2018 www.massapicom. 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.