Package org.codehaus.aspectwerkz.expression.ast

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


        if(reflectInfo instanceof StaticInitializationInfo) {

          // Ignore the ASTStaticInitialization node in this context

          SimpleNode staticClinitNode = (SimpleNode) node.jjtGetChild(0);

               ClassInfo declaringClassInfo = ((StaticInitializationInfo) reflectInfo).getDeclaringType();

           

              boolean matchedAnnotations = visitAttributes(staticClinitNode, declaringClassInfo);

              if(!matchedAnnotations) {

                return Boolean.FALSE;

              }

           

              // In an annotated subtree, the last child node represents the pattern

              Node lastNode = staticClinitNode.jjtGetChild(staticClinitNode.jjtGetNumChildren() - 1);

              if(lastNode instanceof ASTAttribute) {

                return Boolean.TRUE;
View Full Code Here


        ReflectionInfo reflectInfo = context.getWithinReflectionInfo();
       
        if(node.isStaticInitializer()) {
        if(reflectInfo instanceof StaticInitializationInfo) {
          // Ignore the ASTStaticInitialization node in this context
          SimpleNode staticClinitNode = (SimpleNode) node.jjtGetChild(0);
               ClassInfo declaringClassInfo = ((StaticInitializationInfo) reflectInfo).getDeclaringType();
           
              boolean matchedAnnotations = visitAttributes(staticClinitNode, declaringClassInfo);
              if(!matchedAnnotations) {
                return Boolean.FALSE;
              }
           
              // In an annotated subtree, the last child node represents the pattern
              Node lastNode = staticClinitNode.jjtGetChild(staticClinitNode.jjtGetNumChildren() - 1);
              if(lastNode instanceof ASTAttribute) {
                return Boolean.TRUE;
              } else {
                    return lastNode.jjtAccept(this, reflectInfo);
                }
View Full Code Here

TOP

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

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.