Package org.codehaus.aspectwerkz.expression.ast

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


        if (nrChildren != 0) {

            for (int i = 0; i < nrChildren; i++) {

                Node child = node.jjtGetChild(i);

                if (child instanceof ASTAttribute) {

                    List annotations = refInfo.getAnnotations();

                    if (Boolean.TRUE.equals(child.jjtAccept(this, annotations))) {

                        continue;

                    } else {
View Full Code Here


        if (nrChildren != 0) {

            for (int i = 0; i < nrChildren; i++) {

                Node child = node.jjtGetChild(i);

                if (child instanceof ASTModifier) {

                    if (Boolean.TRUE.equals(child.jjtAccept(this, refInfo))) {

                        continue;

                    } else {
View Full Code Here

        List parameterNodes = new ArrayList();

        for (int i = 0; i < nrChildren; i++) {

            Node child = node.jjtGetChild(i);

            if (child instanceof ASTParameter) {

                parameterNodes.add(child);
View Full Code Here

                      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;

            }
View Full Code Here

    public Object visit(ASTCflow node, Object data) {

        int cflowID = node.hashCode();

        Node subNode = node.jjtGetChild(0);

        ExpressionInfo subExpression = new ExpressionInfo(subNode, m_namespace);

        subExpression.inheritPossibleArgumentFrom(m_expressionInfo);
View Full Code Here

    public Object visit(ASTCflowBelow node, Object data) {

        int cflowID = node.hashCode();

        Node subNode = node.jjtGetChild(0);

        ExpressionInfo subExpression = new ExpressionInfo(subNode, m_namespace);

        subExpression.inheritPossibleArgumentFrom(m_expressionInfo);
View Full Code Here

     * @param data
     * @return
     */
    public Object visit(ASTCflow node, Object data) {
        int cflowID = node.hashCode();
        Node subNode = node.jjtGetChild(0);
        ExpressionInfo subExpression = new ExpressionInfo(subNode, m_namespace);
        subExpression.inheritPossibleArgumentFrom(m_expressionInfo);
        ((List)data).add(new CflowBinding(cflowID, subExpression, m_expressionInfo, false));
        return data;
    }
View Full Code Here

     * @param data
     * @return
     */
    public Object visit(ASTCflowBelow node, Object data) {
        int cflowID = node.hashCode();
        Node subNode = node.jjtGetChild(0);
        ExpressionInfo subExpression = new ExpressionInfo(subNode, m_namespace);
        subExpression.inheritPossibleArgumentFrom(m_expressionInfo);
        ((List)data).add(new CflowBinding(cflowID, subExpression, m_expressionInfo, true));
        return data;
    }
View Full Code Here

         
          if(reflectInfo instanceof StaticInitializationInfo) {
            ClassInfo declaringClassInfo = ((StaticInitializationInfo) reflectInfo).getDeclaringType();

                // In an annotated subtree, only the last child node may represent 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

              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);
                }
        } else {
          return Boolean.FALSE;
        }
        } else {
View Full Code Here

TOP

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

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.