Package org.codehaus.aspectwerkz.reflect

Examples of org.codehaus.aspectwerkz.reflect.MemberInfo


                            // then we skip it silently
                            return;
                        }

                        // create the caller method info
                        MemberInfo withinMethodInfo = null;
                        if (where instanceof CtMethod) {
                            withinMethodInfo = JavassistMethodInfo.getMethodInfo((CtMethod) where, context.getLoader());
                        } else if (where instanceof CtConstructor) {
                            withinMethodInfo = JavassistConstructorInfo.getConstructorInfo(
                                (CtConstructor) where,
View Full Code Here


                            where = handlerExpr.where();
                        } catch (RuntimeException e) {
                            // <clinit> access leads to a bug in Javassist
                            where = ctClass.getClassInitializer();
                        }
                        MemberInfo withinMethodInfo = null;
                        if (where instanceof CtMethod) {
                            withinMethodInfo = JavassistMethodInfo.getMethodInfo((CtMethod) where, context.getLoader());
                        } else if (where instanceof CtConstructor) {
                            withinMethodInfo = JavassistConstructorInfo.getConstructorInfo(
                                (CtConstructor) where,
View Full Code Here

        final String withinMethodSignature,
        final int joinPointType) throws Throwable {
        ThreadLocal threadLocal;
        synchronized (m_joinPoints) {
            if ((joinPointIndex >= m_joinPoints.length) || (m_joinPoints[joinPointIndex] == null)) {
                MemberInfo withinMemberInfo = ClassInfoHelper.createMemberInfo(
                    targetClass,
                    withinMethodName,
                    withinMethodSignature);
                s_registry.registerJoinPoint(
                    joinPointType,
View Full Code Here

     * @TODO: check if we have a constructor and not a method
     */
    public static MemberInfo createMemberInfo(
            final Class targetClass, final String withinMethodName,
            final String withinMethodSignature) {
        MemberInfo withinMemberInfo = null;
        String[] withinMethodParameterNames = DescriptorUtil.getParameters(withinMethodSignature);
        Method[] targetMethods = targetClass.getDeclaredMethods();
        for (int i = 0; i < targetMethods.length; i++) {
            Method method = targetMethods[i];
            Class[] parameterTypes = method.getParameterTypes();
View Full Code Here

                                    where = handlerExpr.where();
                                } catch (RuntimeException e) {
                                    // <clinit> access leads to a bug in Javassist
                                    where = ctClass.getClassInitializer();
                                }
                                MemberInfo withinMethodInfo = null;
                                if (where instanceof CtMethod) {
                                    withinMethodInfo = JavassistMethodInfo.getMethodInfo(
                                            (CtMethod)where,
                                            context.getLoader()
                                    );
View Full Code Here

                                            context.getLoader()
                                    );
                                }

                                // create the caller method info, used for 'within' and 'withincode'
                                MemberInfo withinMemberInfo = null;
                                if (where instanceof CtMethod) {
                                    withinMemberInfo = JavassistMethodInfo.getMethodInfo(
                                            (CtMethod)where,
                                            context.getLoader()
                                    );
View Full Code Here

                                if (constructorFilter(ctConstructor)) {
                                    return;
                                }

                                // create the caller method info
                                MemberInfo withinMethodInfo = null;
                                boolean isWithinInfoAMethod = true;
                                if (where instanceof CtMethod) {
                                    withinMethodInfo = JavassistMethodInfo.getMethodInfo(
                                            (CtMethod)where,
                                            context.getLoader()
View Full Code Here

            final String withinMethodSignature, final int joinPointType)
            throws Throwable {
        ThreadLocal threadLocal;
        synchronized (m_joinPoints) {
            if ((joinPointIndex >= m_joinPoints.length) || (m_joinPoints[joinPointIndex] == null)) {
                MemberInfo withinMemberInfo = TransformationUtil.createMemberInfo(
                        targetClass, withinMethodName,
                        withinMethodSignature
                );
                s_registry.registerJoinPoint(
                        joinPointType, methodHash, null, m_classHash, thisClass, withinMemberInfo,
View Full Code Here

TOP

Related Classes of org.codehaus.aspectwerkz.reflect.MemberInfo

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.