Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.hp.hpl.jena.graph.query
Class Matcher

    java.lang.Object
      com.hp.hpl.jena.graph.query.Matcher

    public abstract class Matcher

extends java.lang.Object

A Matcher knows how to match itself against a concrete triple (the triple to be matched) and a domain (of bindings to check and extend). It is part of the improved-we-hope PatternStage code.

Author:
  kers

Field Summary
`static Matcher` | `always` This matcher always answers `true` and doesn't even look at the domain, never mind update it.

Constructor Summary
`Matcher()`

Method Summary
`abstract boolean` | `match(Domain d, Triple t)` Answer true iff we match the triple `t` given the bindings in `d`, updating those bindings if appropriate; the bindings may be updated even if the match answers `false`.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### always

    public static final Matcher always

  This matcher always answers `true` and doesn't even look at the domain, never mind update it.

Constructor Detail

### Matcher

    public Matcher()

Method Detail

### match

    public abstract boolean match(Domain d,
                                  Triple t)

  Answer true iff we match the triple `t` given the bindings in `d`, updating those bindings if appropriate; the bindings may be updated even if the match answers `false`.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP