Package org.codehaus.aspectwerkz.definition.expression

Examples of org.codehaus.aspectwerkz.definition.expression.CflowExpression


    }

    public Object visit(Anonymous node, Object data) {
        CflowIdentifierLookupVisitorContext context = (CflowIdentifierLookupVisitorContext)data;
        if (node.name.startsWith("cflow(")) {
            CflowExpression expr = context.getNamespace().createCflowExpression(
                    node.name.substring(6, node.name.length()-1), "", ""
            );
            expr.setName();
            context.addAnonymous(expr);
        }
        return data;
    }
View Full Code Here


        if (! expr.startsWith("cflow(")) {
            throw new RuntimeException("inflated expression has anonymous which is not inflated: " + expr);
        }
        String pattern = expr.substring(6, expr.length()-1);
        CflowExpressionContext ctx = (CflowExpressionContext)data;
        CflowExpression cflowExpr = ctx.getNamespace().createCflowExpression(pattern, "", "");
        return new Boolean(cflowExpr.matchCflow(ctx.getClassNameMethodMetaDataTuples()));
    }
View Full Code Here

TOP

Related Classes of org.codehaus.aspectwerkz.definition.expression.CflowExpression

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.