HomeSort by relevance Sort by last modified time
    Searched defs:Matcher (Results 1 - 25 of 124) sorted by null

1 2 3 4 5

  /external/hamcrest/src/org/hamcrest/
Matcher.java 6 * A matcher over acceptable values.
7 * A matcher is able to describe itself to give feedback when it fails.
9 * Matcher implementations should <b>NOT directly implement this interface</b>.
11 * which will ensure that the Matcher API can grow to support
12 * new features and remain compatible with all Matcher implementations.
14 * For easy access to common Matcher implementations, use the static factory
21 public interface Matcher<T> extends SelfDescribing {
24 * Evaluates the matcher for argument <var>item</var>.
27 * because the caller of the Matcher does not know at runtime what the type is
31 * @param item the object against which the matcher is evaluated
    [all...]
  /external/chromium-trace/catapult/third_party/closure_linter/closure_linter/common/
matcher.py 17 """Regular expression based JavaScript matcher classes."""
30 class Matcher(object):
31 """A token matcher.
41 regex: The regular expression representing this matcher.
47 """Create a new matcher template.
54 line_start: Whether this matcher should only match string at the start
  /external/google-breakpad/src/testing/src/
gmock-matchers.cc 34 // This file implements Matcher<const string&>, Matcher<string>, and
46 // Constructs a matcher that matches a const string& whose value is
48 Matcher<const internal::string&>::Matcher(const internal::string& s) {
52 // Constructs a matcher that matches a const string& whose value is
54 Matcher<const internal::string&>::Matcher(const char* s) {
58 // Constructs a matcher that matches a string whose value is equal to s.
59 Matcher<internal::string>::Matcher(const internal::string& s) { *this = Eq(s);
    [all...]
  /external/guice/core/src/com/google/inject/matcher/
Matcher.java 17 package com.google.inject.matcher;
24 public interface Matcher<T> {
32 * Returns a new matcher which returns {@code true} if both this and the
33 * given matcher return {@code true}.
35 Matcher<T> and(Matcher<? super T> other);
38 * Returns a new matcher which returns {@code true} if either this or the
39 * given matcher return {@code true}.
41 Matcher<T> or(Matcher<? super T> other)
    [all...]
  /external/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/util/regex/
Matcher.java 22 /** Emulation of the {@link Matcher} class, uses {@link RegExp} as internal implementation.
24 public class Matcher {
29 Matcher (Pattern pattern, CharSequence input) {
  /external/gmock/include/gmock/
gmock-matchers.h 61 // To implement a matcher Foo for type T, define:
64 // 2. a factory function that creates a Matcher<T> object from a
68 // to write "v" instead of "Eq(v)" where a Matcher is expected, which
70 // ownership management as Matcher objects can now be copied like
74 // used by a matcher to explain why a value matches or doesn't match.
101 // the match result. A matcher's MatchAndExplain() method can use
116 // matcher.
121 // Describes this matcher to an ostream. The function should print
123 // matcher should have. The subject of the verb phrase is the value
125 // matcher prints "is greater than 7"
730 typename tuple_element<N - 1, MatcherTuple>::type matcher = local
1779 const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_); local
    [all...]
gmock-generated-matchers.h 218 // Implements the Args() matcher.
228 typedef Matcher<const SelectedArgs&> MonomorphicInnerMatcher;
298 operator Matcher<ArgsTuple>() const {
492 Args(const InnerMatcher& matcher) {
493 return internal::ArgsMatcher<InnerMatcher>(matcher);
498 Args(const InnerMatcher& matcher) {
499 return internal::ArgsMatcher<InnerMatcher, k1>(matcher);
504 Args(const InnerMatcher& matcher) {
505 return internal::ArgsMatcher<InnerMatcher, k1, k2>(matcher);
510 Args(const InnerMatcher& matcher) {
    [all...]
  /external/google-breakpad/src/testing/include/gmock/
gmock-matchers.h 55 // To implement a matcher Foo for type T, define:
58 // 2. a factory function that creates a Matcher<T> object from a
62 // to write "v" instead of "Eq(v)" where a Matcher is expected, which
64 // ownership management as Matcher objects can now be copied like
68 // used by a matcher to explain why a value matches or doesn't match.
94 // the match result. A matcher's MatchAndExplain() method can use
108 // The implementation of a matcher.
114 // Returns true iff the matcher matches x; also explains the match
117 // example, the MatchAndExplain() method of the Pointee(...) matcher
120 // You should override this method when defining a new matcher
642 typename tuple_element<N - 1, MatcherTuple>::type matcher = local
1525 const Matcher<const T&> matcher = MatcherCast<const T&>(matcher_); local
    [all...]
gmock-generated-matchers.h 217 // Implements the Args() matcher.
227 typedef Matcher<const SelectedArgs&> MonomorphicInnerMatcher;
297 operator Matcher<ArgsTuple>() const {
316 operator Matcher<Container>() const {
327 const Matcher<const Element&> matcher = local
329 return MakeMatcher(new ElementsAreMatcherImpl<Container>(&matcher, 1));
344 operator Matcher<Container>() const {
349 const Matcher<const Element&> matchers[] = {
371 operator Matcher<Container>() const
    [all...]
  /external/clang/include/clang/ASTMatchers/
ASTMatchersInternal.h 10 // Implements the base layer of the matcher framework.
12 // Matchers are methods that return a Matcher<T> which provides a method
19 // 1. A function Matcher<T> MatcherName(<arguments>) which returns a Matcher<T>
21 // on the arguments. Matcher<T>s form an implicit reverse hierarchy
22 // to clang's AST class hierarchy, meaning that you can use a Matcher<Base>
23 // everywhere a Matcher<Derived> is required.
26 // The matcher functions are defined in ASTMatchers.h. To make it possible
27 // to implement both the matcher function and the implementation of the matcher
    [all...]
  /external/clang/unittests/ASTMatchers/Dynamic/
ParserTest.cpp 29 // Optimizations on the matcher framework make simple matchers like
30 // 'stmt()' to be all the same matcher.
32 ast_matchers::internal::Matcher<Stmt> M = stmt(stmt(), stmt());
47 const ExpectedMatchersTy::value_type *Matcher =
49 return reinterpret_cast<MatcherCtor>(Matcher);
57 const ExpectedMatchersTy::value_type *Matcher =
59 MatcherInfo ToStore = { Matcher->first, NameRange, Args, BindID };
61 return VariantMatcher::SingleMatcher(Matcher->second);
74 typedef std::map<std::string, ast_matchers::internal::Matcher<Stmt> >
161 using ast_matchers::internal::Matcher;
    [all...]
  /external/gmock/src/
gmock-matchers.cc 34 // This file implements Matcher<const string&>, Matcher<string>, and
46 // Constructs a matcher that matches a const string& whose value is
48 Matcher<const internal::string&>::Matcher(const internal::string& s) {
52 // Constructs a matcher that matches a const string& whose value is
54 Matcher<const internal::string&>::Matcher(const char* s) {
58 // Constructs a matcher that matches a string whose value is equal to s.
59 Matcher<internal::string>::Matcher(const internal::string& s) { *this = Eq(s);
    [all...]
  /external/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
42 /// \brief Constructor for non-matcher types.
45 /// \brief Constructor for matcher types.
79 /// \brief A variant matcher object.
84 /// overloads of the matcher. \c VariantMatcher knows how to select the
86 /// To get a real matcher object out of a \c VariantMatcher you can do:
87 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
88 /// to decide which matcher to return. Eg. it contains only a single
89 /// matcher, or a polymorphic one with only one overload.
91 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /external/clang/lib/ASTMatchers/Dynamic/
Registry.cpp 1 //===--- Registry.cpp - Matcher registry -------------------------===//
430 // Starting with the above seed of acceptable top-level matcher types, compute
455 const auto *Matcher = M.getValue();
459 unsigned NumArgs = Matcher->isVariadic() ? 1 : Matcher->getNumArgs();
460 bool IsPolymorphic = Matcher->isPolymorphic();
468 if (Matcher->isConvertibleTo(Kind.getMatcherKind(), &Specificity,
474 Matcher->getArgKinds(Kind.getMatcherKind(), Arg, ArgsKinds[Arg]);
485 OS << "Matcher<T> " << Name << "(Matcher<T>"
    [all...]
VariantValue.cpp 26 return (Twine("Matcher<") + MatcherKind.asStringRef() + ">").str();
53 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher,
55 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind);
56 return Matcher.canConvertTo(NodeKind);
66 // Matcher<T>.
82 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {}
85 return Matcher;
89 return (Twine("Matcher<") + Matcher.getSupportedKind().asStringRef() + ">"
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
UnicodePropertySource.java 97 public UnicodeSet getPropertySet(Matcher matcher, UnicodeSet result) {
104 if (matcher.matches(value)) {
111 public interface Matcher {
  /external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
UnicodePropertySource.java 96 public UnicodeSet getPropertySet(Matcher matcher, UnicodeSet result) {
103 if (matcher.matches(value)) {
110 public interface Matcher {
  /external/llvm/utils/TableGen/
DAGISelMatcherEmitter.cpp 1 //===- DAGISelMatcherEmitter.cpp - Matcher Emitter ------------------------===//
10 // This file contains code to generate C++ code for a matcher.
59 unsigned EmitMatcherList(const Matcher *N, unsigned Indent,
64 void EmitHistogram(const Matcher *N, formatted_raw_ostream &OS);
66 unsigned EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx,
153 /// EmitMatcher - Emit bytes for the specified matcher and return
156 EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx,
161 case Matcher::Scope: {
223 case Matcher::RecordNode:
232 case Matcher::RecordChild
    [all...]
  /art/runtime/quick/
inline_method_analyser.cc 40 class Matcher {
43 typedef bool MatchFn(Matcher* matcher);
50 static bool Mark(Matcher* matcher);
52 template <bool (Matcher::*Fn)()>
53 static bool Required(Matcher* matcher);
55 template <bool (Matcher::*Fn)()>
56 static bool Repeated(Matcher* matcher); // On match, returns to the mark
    [all...]
  /external/chromium-trace/catapult/third_party/closure_linter/closure_linter/
javascripttokenizer.py 26 from closure_linter.common import matcher namespace
31 Matcher = matcher.Matcher
35 """Enumeration of the different matcher modes used for JavaScript."""
277 Matcher(END_BLOCK_COMMENT, Type.END_DOC_COMMENT,
281 Matcher(DOC_INLINE_FLAG, Type.DOC_INLINE_FLAG),
282 Matcher(DOC_FLAG_LEX_SPACES, Type.DOC_FLAG,
286 Matcher(DOC_FLAG, Type.DOC_FLAG, JavaScriptModes.DOC_COMMENT_MODE),
289 Matcher(START_BLOCK, Type.DOC_START_BRACE)
    [all...]
  /libcore/ojluni/src/main/java/java/util/regex/
Matcher.java 35 * <p> A matcher is created from a pattern by invoking the pattern's {@link
36 * Pattern#matcher matcher} method. Once created, a matcher can be used to
54 * state of the matcher.
56 * <p> A matcher finds matches in a subset of its input called the
57 * <i>region</i>. By default, the region contains all of the matcher's input.
73 * <p> The explicit state of a matcher includes the start and end indices of
80 * <p> The explicit state of a matcher is initially undefined; attempting to
82 * IllegalStateException} to be thrown. The explicit state of a matcher i
    [all...]
  /external/clang/lib/ASTMatchers/
ASTMatchFinder.cpp 14 // calling the Matches(...) method of each matcher we are running on each
15 // AST node. The matcher can recurse via the ASTMatchFinder interface.
39 // of performance vs. memory consumption by running matcher
47 // We use memoization to avoid running the same matcher on the same
50 // identifying the matcher), a pointer to the AST node and the
51 // bound nodes before the matcher was executed.
83 // Creates an AST visitor that matches 'matcher' on all children or
87 MatchChildASTVisitor(const DynTypedMatcher *Matcher,
93 : Matcher(Matcher),
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
TrieMap.java 93 abstract public Matcher<V> getMatcher();
95 public abstract static class Matcher<V> {
171 public TrieMap.Matcher<V> getMatcher() {
212 public class BytesMatcher extends Matcher<V> {
357 public TrieMap.Matcher<V> getMatcher() {
396 public class CharsMatcher extends Matcher<V> {
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
TrieMap.java 92 abstract public Matcher<V> getMatcher();
94 public abstract static class Matcher<V> {
170 public TrieMap.Matcher<V> getMatcher() {
211 public class BytesMatcher extends Matcher<V> {
356 public TrieMap.Matcher<V> getMatcher() {
395 public class CharsMatcher extends Matcher<V> {
  /external/v8/src/compiler/
node-matchers.h 19 // A pattern matcher for nodes.
46 // A pattern matcher for abitrary value constants.
109 // A pattern matcher for integer constants.
146 // A pattern matcher for floating point constants.
169 // A pattern matcher for heap object constants.
177 // A pattern matcher for external reference constants.
321 typedef ScaleMatcher<BinopMatcher, kMulOpcode, kShiftOpcode> Matcher;
349 Matcher left_matcher(this->left().node(), true);
360 Matcher right_matcher(this->right().node(), true);

Completed in 1074 milliseconds

1 2 3 4 5