Examples of MemberInfo


Examples of org.codehaus.aspectwerkz.reflect.MemberInfo

                        if (constructorFilter(ctConstructor)) {
                            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

Examples of org.codehaus.aspectwerkz.reflect.MemberInfo

                                calleeClassName), 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());
                        } else if (where instanceof CtConstructor) {
                            withinMemberInfo = JavassistConstructorInfo.getConstructorInfo(
                                (CtConstructor) where,
View Full Code Here

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

Examples of org.codehaus.aspectwerkz.reflect.MemberInfo

                            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

Examples of org.codehaus.aspectwerkz.reflect.MemberInfo

        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

Examples of org.codehaus.aspectwerkz.reflect.MemberInfo

     * @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

Examples of org.codehaus.aspectwerkz.reflect.MemberInfo

                                    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

Examples of org.codehaus.aspectwerkz.reflect.MemberInfo

                                            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

Examples of org.codehaus.aspectwerkz.reflect.MemberInfo

                                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

Examples of org.codehaus.aspectwerkz.reflect.MemberInfo

            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
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.