Examples of matches()


Examples of org.boris.expr.util.Criteria.matches()

{
    public void testDatabase() throws Exception {
        Database db = Database.valueOf(loadArray("db1-d.txt"));
        assertEquals(db.get(2, "Yield"), 9);
        Criteria c = Criteria.valueOf(loadArray("db1-c.txt"));
        assertEquals(c.matches(db, 3), true);
    }

    public void testDAVERAGE() throws Exception {
        assertResult(c(), "DAVERAGE(A4:E10,\"Yield\",A1:B2)", 12.);
        assertResult(c(), "DAVERAGE(A4:E10,3,A4:E10)", 13.);

Examples of org.cafesip.jiplet.mapping.CriteriaMatch.matches()

            while (iter.hasNext() == true)
            {
                Pair p = (Pair) iter.next();
                CriteriaMatch cr = (CriteriaMatch) p.getFirst();

                if (cr.matches(event) == true)
                {
                    list.add(p.getSecond());
                }
            }
        }

Examples of org.candlepin.guice.HttpMethodMatcher.matches()

        Path a = (Path) c.getAnnotation(Path.class);
        String parentUrl = a.value();
        List<RestApiCall> classApiCalls = new LinkedList<RestApiCall>();
        Matcher<Method> matcher = new HttpMethodMatcher();
        for (Method m : c.getMethods()) {
            if (Modifier.isPublic(m.getModifiers()) && matcher.matches(m)) {
                classApiCalls.add(processMethod(parentUrl, m));
            }
        }
        return classApiCalls;
    }

Examples of org.codehaus.activemq.filter.Filter.matches()

            if (consumer.isNoLocal()) {
                filter = new AndFilter(filter, new NoLocalFilter(clientID));
            }
            for (Iterator i = transientConsumedRedeliverCache.iterator(); i.hasNext();){
                ActiveMQMessage message = (ActiveMQMessage)i.next();
                if (filter.matches(message)){
                    transientConsumedRedeliverCache.remove(message);
                    message.setMessageAcknowledge(session);
                    message.setJMSRedelivered(true);
                    message.setConsumerNos(new int[]{consumer.getConsumerNumber()});
                    consumer.processMessage(message);

Examples of org.codehaus.activemq.message.ActiveMQDestination.matches()

                String pyhsicalName = advisory.getDestination().getPhysicalName();
                String matchName = pyhsicalName.substring(ActiveMQDestination.CONSUMER_ADVISORY_PREFIX.length(),
                        pyhsicalName.length());
                ActiveMQDestination match = ActiveMQDestination.createDestination(advisoryDestination
                        .getDestinationType(), matchName);
                return match.matches(destination) || matchGeneralAdvisory(advisory, destination);
            }
        }
        return result;
    }

Examples of org.codehaus.aspectwerkz.expression.regexp.TypePattern.matches()

    public void testMatchMethodName1() {
        TypePattern classPattern = Pattern.compileTypePattern(
                "foo.bar.SomeClass",
                SubtypePatternType.NOT_HIERARCHICAL
        );
        assertFalse(classPattern.matches("SomeClass"));
        assertTrue(classPattern.matches("foo.bar.SomeClass"));
        assertFalse(classPattern.matches("Class"));
        assertFalse(classPattern.matches(""));
    }

Examples of org.codehaus.aspectwerkz.pointcut.CallerSidePointcut.matches()

        if (methodMetaData == null) throw new IllegalArgumentException("method meta-data can not be null");

        List pointcutList = new ArrayList();
        for (Iterator it = m_callerSidePointcuts.values().iterator(); it.hasNext();) {
            final CallerSidePointcut pointcut = (CallerSidePointcut)it.next();
            if (pointcut.matches(className, methodMetaData)) {
                pointcutList.add(pointcut);
            }
        }
        return pointcutList;
    }

Examples of org.codehaus.aspectwerkz.pointcut.FieldPointcut.matches()

        if (fieldMetaData == null) throw new IllegalArgumentException("field meta-data can not be null");

        List pointcutList = new ArrayList();
        for (Iterator it = m_getFieldPointcuts.values().iterator(); it.hasNext();) {
            final FieldPointcut pointcut = (FieldPointcut)it.next();
            if (pointcut.matches(classMetaData, fieldMetaData)) {
                pointcutList.add(pointcut);
            }
        }
        return pointcutList;
    }

Examples of org.codehaus.aspectwerkz.pointcut.MethodPointcut.matches()

        if (methodMetaData == null) throw new IllegalArgumentException("method meta-data can not be null");

        List pointcutList = new ArrayList();
        for (Iterator it = m_methodPointcuts.values().iterator(); it.hasNext();) {
            MethodPointcut pointcut = (MethodPointcut)it.next();
            if (pointcut.matches(classMetaData, methodMetaData)) {
                pointcutList.add(pointcut);
            }
        }
        return pointcutList;
    }

Examples of org.codehaus.aspectwerkz.pointcut.ThrowsPointcut.matches()

        if (methodMetaData == null) throw new IllegalArgumentException("method meta-data can not be null");

        List pointcutList = new ArrayList();
        for (Iterator it = m_throwsPointcuts.values().iterator(); it.hasNext();) {
            final ThrowsPointcut pointcut = (ThrowsPointcut)it.next();
            if (pointcut.matches(classMetaData, methodMetaData)) {
                pointcutList.add(pointcut);
            }
        }
        return pointcutList;
    }
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.