Examples of EnclosingStaticJoinPointImpl


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

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

    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
Copyright © 2018 www.massapi.com. 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.