Package org.codehaus.aspectwerkz.aspect

Examples of org.codehaus.aspectwerkz.aspect.AdviceType


                );
                aspectDef.addBeforeAdvice(adviceDef);

            } else if (type.startsWith("after")) {
                String specialArgumentType = null;
                AdviceType adviceType = AdviceType.AFTER;
                if (type.startsWith("after returning(")) {
                    adviceType = AdviceType.AFTER_RETURNING;
                    int start = type.indexOf('(');
                    int end = type.indexOf(')');
                    specialArgumentType = type.substring(start + 1, end).trim();
View Full Code Here


                );
                aspectDef.addBeforeAdviceDefinition(adviceDef);

            } else if (type.startsWith("after")) {
                String specialArgumentType = null;
                AdviceType adviceType = AdviceType.AFTER;
                if (type.startsWith("after returning(")) {
                    adviceType = AdviceType.AFTER_RETURNING;
                    int start = type.indexOf('(');
                    int end = type.indexOf(')');
                    specialArgumentType = type.substring(start + 1, end).trim();
View Full Code Here

     *
     * @param cv
     * @param adviceMethodInfo
     */
    public void createAfterAdviceArgumentHandling(final CodeVisitor cv, final AdviceMethodInfo adviceMethodInfo) {
        final AdviceType adviceType = adviceMethodInfo.getAdviceInfo().getType();
        final int specialArgumentIndex = adviceMethodInfo.getSpecialArgumentIndex();
        final String specialArgumentTypeName = adviceMethodInfo.getSpecialArgumentTypeName();
        if (adviceType.equals(AdviceType.AFTER_RETURNING) ||
            adviceType.equals(AdviceType.AFTER_THROWING)) {
            cv.visitVarInsn(ALOAD, specialArgumentIndex);
            cv.visitTypeInsn(CHECKCAST, specialArgumentTypeName);
        }
    }
View Full Code Here

                );
                aspectDef.addBeforeAdviceDefinition(adviceDef);

            } else if (type.startsWith("after")) {
                String specialArgumentType = null;
                AdviceType adviceType = AdviceType.AFTER;
                if (type.startsWith("after returning(")) {
                    adviceType = AdviceType.AFTER_RETURNING;
                    int start = type.indexOf('(');
                    int end = type.indexOf(')');
                    specialArgumentType = type.substring(start + 1, end).trim();
View Full Code Here

     *
     * @param cv
     * @param adviceMethodInfo
     */
    public void createAfterAdviceArgumentHandling(final CodeVisitor cv, final AdviceMethodInfo adviceMethodInfo) {
        final AdviceType adviceType = adviceMethodInfo.getAdviceInfo().getType();
        final int specialArgumentIndex = adviceMethodInfo.getSpecialArgumentIndex();
        final String specialArgumentTypeName = adviceMethodInfo.getSpecialArgumentTypeName();
        if (adviceType.equals(AdviceType.AFTER_RETURNING) ||
            adviceType.equals(AdviceType.AFTER_THROWING)) {
            cv.visitVarInsn(ALOAD, specialArgumentIndex);
            cv.visitTypeInsn(CHECKCAST, specialArgumentTypeName);
        }
    }
View Full Code Here

                );
                aspectDef.addBeforeAdviceDefinition(adviceDef);

            } else if (type.startsWith("after")) {
                String specialArgumentType = null;
                AdviceType adviceType = AdviceType.AFTER;
                if (type.startsWith("after returning(")) {
                    adviceType = AdviceType.AFTER_RETURNING;
                    int start = type.indexOf('(');
                    int end = type.indexOf(')');
                    specialArgumentType = type.substring(start + 1, end).trim();
View Full Code Here

                );
                aspectDef.addBeforeAdviceDefinition(adviceDef);

            } else if (type.startsWith("after")) {
                String specialArgumentType = null;
                AdviceType adviceType = AdviceType.AFTER;
                if (type.startsWith("after returning(")) {
                    adviceType = AdviceType.AFTER_RETURNING;
                    int start = type.indexOf('(');
                    int end = type.indexOf(')');
                    specialArgumentType = type.substring(start + 1, end).trim();
View Full Code Here

                );
                aspectDef.addBeforeAdvice(adviceDef);

            } else if (type.startsWith("after")) {
                String specialArgumentType = null;
                AdviceType adviceType = AdviceType.AFTER;
                if (type.startsWith("after returning(")) {
                    adviceType = AdviceType.AFTER_RETURNING;
                    int start = type.indexOf('(');
                    int end = type.indexOf(')');
                    specialArgumentType = type.substring(start + 1, end).trim();
View Full Code Here

     *
     * @param cv
     * @param adviceMethodInfo
     */
    public void createAfterAdviceArgumentHandling(final CodeVisitor cv, final AdviceMethodInfo adviceMethodInfo) {
        final AdviceType adviceType = adviceMethodInfo.getAdviceInfo().getType();
        final int specialArgumentIndex = adviceMethodInfo.getSpecialArgumentIndex();
        final String specialArgumentTypeName = adviceMethodInfo.getSpecialArgumentTypeName();
        if (adviceType.equals(AdviceType.AFTER_RETURNING) ||
            adviceType.equals(AdviceType.AFTER_THROWING)) {
            cv.visitVarInsn(ALOAD, specialArgumentIndex);
            cv.visitTypeInsn(CHECKCAST, specialArgumentTypeName);
        }
    }
View Full Code Here

TOP

Related Classes of org.codehaus.aspectwerkz.aspect.AdviceType

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.