Examples of MethodMatcher


Examples of edu.umd.cs.findbugs.filter.MethodMatcher

        } else if (qName.equals("Method")) {
            String name = getOptionalAttribute(attributes, "name");
            String params = getOptionalAttribute(attributes, "params");
            String returns = getOptionalAttribute(attributes, "returns");
            String role = getOptionalAttribute(attributes, "role");
            addMatcher(new MethodMatcher(name, params, returns, role));
        } else if (qName.equals("Field")) {
            String name = getOptionalAttribute(attributes, "name");
            String type = getOptionalAttribute(attributes, "type");
            addMatcher(new FieldMatcher(name, type));
        } else if (qName.equals("Or")) {
View Full Code Here

Examples of flex.messaging.util.MethodMatcher

                me.setCode("Server.Processing");
                throw me;
            }
            Class c = instance.getClass();

            MethodMatcher methodMatcher = remotingDestination.getMethodMatcher();
            Method method = methodMatcher.getMethod(c, methodName, parameters);
            result = method.invoke(instance, parameters.toArray());

            saveInstance(instance);
        }
        catch (InvocationTargetException ex)
View Full Code Here

Examples of org.apache.hivemind.methodmatch.MethodMatcher

    protected void addServiceMethods(InterceptorStack stack, ClassFab fab, List parameters)
    {
        boolean toString = false;
        Method[] methods = stack.getServiceInterface().getMethods();

        MethodMatcher matcher = buildMethodMatcher(parameters);

        for (int i = 0; i < methods.length; i++)
        {
            Method m = methods[i];
            MethodSignature sig = new MethodSignature(m);
View Full Code Here

Examples of org.apache.hivemind.methodmatch.MethodMatcher

    }

    private MethodMatcher buildMethodMatcher(List parameters)
    {
        MethodMatcher result = null;

        Iterator i = parameters.iterator();
        while (i.hasNext())
        {
            MethodContribution mc = (MethodContribution) i.next();

            if (result == null)
                result = new MethodMatcher();

            result.put(mc.getMethodPattern(), mc);
        }

        return result;
    }
View Full Code Here

Examples of org.apache.hivemind.methodmatch.MethodMatcher

    /**
     * Creates a method matcher that helps finding the intercepted methods
     */
    private MethodMatcher buildMethodMatcher(List parameters)
    {
        MethodMatcher result = null;

        Iterator i = parameters.iterator();
        while (i.hasNext())
        {
            MethodContribution mc = (MethodContribution) i.next();

            if (result == null)
                result = new MethodMatcher();

            result.put(mc.getMethodPattern(), mc);
        }

        return result;
    }
View Full Code Here

Examples of org.apache.hivemind.methodmatch.MethodMatcher

     * the interceptor parameters via include and exclude mechanism
     */
    protected Set getInterceptedMethods(InterceptorStack stack, List parameters)
    {
        Set methods = new HashSet();
        MethodMatcher matcher = buildMethodMatcher(parameters);

        MethodIterator mi = new MethodIterator(stack.getServiceInterface());

        while (mi.hasNext())
        {
View Full Code Here

Examples of org.apache.hivemind.methodmatch.MethodMatcher

        methodFab.addCatch(RuntimeException.class, body);
    }

    protected void addServiceMethods(InterceptorStack stack, ClassFab fab, List parameters)
    {
        MethodMatcher matcher = buildMethodMatcher(parameters);

        MethodIterator mi = new MethodIterator(stack.getServiceInterface());

        while (mi.hasNext())
        {
View Full Code Here

Examples of org.apache.hivemind.methodmatch.MethodMatcher

    }

    private MethodMatcher buildMethodMatcher(List parameters)
    {
        MethodMatcher result = null;

        Iterator i = parameters.iterator();
        while (i.hasNext())
        {
            MethodContribution mc = (MethodContribution) i.next();

            if (result == null)
                result = new MethodMatcher();

            result.put(mc.getMethodPattern(), mc);
        }

        return result;
    }
View Full Code Here

Examples of org.apache.hivemind.methodmatch.MethodMatcher

    /**
     * Creates a method matcher that helps finding the intercepted methods
     */
    private MethodMatcher buildMethodMatcher(List parameters)
    {
        MethodMatcher result = null;

        Iterator i = parameters.iterator();
        while (i.hasNext())
        {
            MethodContribution mc = (MethodContribution) i.next();

            if (result == null)
                result = new MethodMatcher();

            result.put(mc.getMethodPattern(), mc);
        }

        return result;
    }
View Full Code Here

Examples of org.apache.hivemind.methodmatch.MethodMatcher

     * the interceptor parameters via include and exclude mechanism
     */
    protected Set getInterceptedMethods(InterceptorStack stack, List parameters)
    {
        Set methods = new HashSet();
        MethodMatcher matcher = buildMethodMatcher(parameters);

        MethodIterator mi = new MethodIterator(stack.getServiceInterface());

        while (mi.hasNext())
        {
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.