Package org.codehaus.aspectwerkz.joinpoint.impl

Examples of org.codehaus.aspectwerkz.joinpoint.impl.EnclosingStaticJoinPointImpl


        final String description) {

        if (TransformationConstants.CLINIT_METHOD_NAME.equals(name)) {

            return new EnclosingStaticJoinPointImpl(

                    new StaticInitializerSignatureImpl(declaringClass),

                    JoinPointType.STATIC_INITIALIZATION

            );

        } else if (TransformationConstants.INIT_METHOD_NAME.equals(name)) {

            return new EnclosingStaticJoinPointImpl(

                    newConstructorSignature(declaringClass, AsmHelper.calculateConstructorHash(description)),

                    JoinPointType.CONSTRUCTOR_EXECUTION

            );

        } else {

            // regular method

            return new EnclosingStaticJoinPointImpl(

                    newMethodSignature(declaringClass, AsmHelper.calculateMethodHash(name, description)),

                    JoinPointType.METHOD_EXECUTION
View Full Code Here


    public static EnclosingStaticJoinPoint newEnclosingStaticJoinPoint(
        final Class declaringClass,
        final String name,
        final String description) {
        if (TransformationConstants.CLINIT_METHOD_NAME.equals(name)) {
            return new EnclosingStaticJoinPointImpl(
                    new StaticInitializerSignatureImpl(declaringClass),
                    JoinPointType.STATIC_INITIALIZATION
            );
        } else if (TransformationConstants.INIT_METHOD_NAME.equals(name)) {
            return new EnclosingStaticJoinPointImpl(
                    newConstructorSignature(declaringClass, AsmHelper.calculateConstructorHash(description)),
                    JoinPointType.CONSTRUCTOR_EXECUTION
            );
        } else {
            // regular method
            return new EnclosingStaticJoinPointImpl(
                    newMethodSignature(declaringClass, AsmHelper.calculateMethodHash(name, description)),
                    JoinPointType.METHOD_EXECUTION
            );
        }
    }
View Full Code Here

TOP

Related Classes of org.codehaus.aspectwerkz.joinpoint.impl.EnclosingStaticJoinPointImpl

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.