@TestClass(value="org.openscience.cdk.isomorphism.AtomMatcherTest") 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 container@TestMethod(value="anyMatch") public static AtomMatcher forAny()
@TestMethod(value="elementMatch") public static AtomMatcher forElement()
@TestMethod(value="queryMatch") public static AtomMatcher forQuery()
Copyright © 2014. All Rights Reserved.