public abstract class AtomMatcher extends Object
| Constructor and Description |
|---|
AtomMatcher() |
| Modifier and Type | Method and Description |
|---|---|
static AtomMatcher |
forAny()
Atoms are always compatible.
|
static AtomMatcher |
forElement()
Atoms are compatible if they are the same element.
|
static AtomMatcher |
forQuery()
|
abstract boolean |
matches(IAtom atom1,
IAtom atom2)
Are the semantics of
atom1 compatible with atom2. |
public abstract boolean matches(IAtom atom1, IAtom atom2)
atom1 compatible with atom2.atom1 - an atom from a query containeratom2 - an atom from the target containerpublic static AtomMatcher forAny()
public static AtomMatcher forElement()
public static AtomMatcher forQuery()
Copyright © 2017. All rights reserved.