public class ReallyAnyAtom
extends org.openscience.cdk.isomorphism.matchers.smarts.AnyAtom
public boolean matches(IAtom atom) {
if (atom.getSymbol().equals("H")) {
Integer massNumber = atom.getMassNumber();
return massNumber != null;
}
return true;
}
| Constructor and Description |
|---|
ReallyAnyAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(org.openscience.cdk.interfaces.IAtom atom) |
String |
toString() |
chiralityMatchesclone, getAtomicNumber, getAtomTypeName, getBondOrderSum, getCharge, getCovalentRadius, getExactMass, getFormalCharge, getFormalNeighbourCount, getFractionalPoint3d, getHybridization, getImplicitHydrogenCount, getMassNumber, getMaxBondOrder, getNaturalAbundance, getPoint2d, getPoint3d, getStereoParity, getSymbol, getValency, isAromatic, isInRing, setAtomicNumber, setAtomTypeName, setBondOrderSum, setCharge, setCovalentRadius, setExactMass, setFormalCharge, setFormalNeighbourCount, setFractionalPoint3d, setHybridization, setImplicitHydrogenCount, setIsAromatic, setIsInRing, setMassNumber, setMaxBondOrder, setNaturalAbundance, setPoint2d, setPoint3d, setStereoParity, setSymbol, setValencyaddListener, addProperties, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getCharge, getFractionalPoint3d, getImplicitHydrogenCount, getPoint2d, getPoint3d, getStereoParity, isAromatic, isInRing, setCharge, setFractionalPoint3d, setImplicitHydrogenCount, setIsAromatic, setIsInRing, setPoint2d, setPoint3d, setStereoParitygetAtomTypeName, getBondOrderSum, getCovalentRadius, getFormalCharge, getFormalNeighbourCount, getHybridization, getMaxBondOrder, getValency, setAtomTypeName, setBondOrderSum, setCovalentRadius, setFormalCharge, setFormalNeighbourCount, setHybridization, setMaxBondOrder, setValencygetExactMass, getMassNumber, getNaturalAbundance, setExactMass, setMassNumber, setNaturalAbundancegetAtomicNumber, getSymbol, setAtomicNumber, setSymboladdListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertypublic ReallyAnyAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public boolean matches(org.openscience.cdk.interfaces.IAtom atom)
matches in interface org.openscience.cdk.isomorphism.matchers.IQueryAtommatches in class org.openscience.cdk.isomorphism.matchers.smarts.AnyAtompublic String toString()
toString in interface org.openscience.cdk.interfaces.IChemObjecttoString in class org.openscience.cdk.isomorphism.matchers.smarts.AnyAtomCopyright © 2004–2018 Ideaconsult Ltd. All rights reserved.