Class FormalChargeAtom

All Implemented Interfaces:
Cloneable, IAtom, IAtomType, ICDKObject, IChemObject, IElement, IIsotope, IQueryAtom

@Deprecated public class FormalChargeAtom extends SMARTSAtom
Deprecated.
This matcher checks the formal charge of the Atom.
Source code:
main
Belongs to CDK module:
smarts
Keywords:
SMARTS
  • Constructor Details

    • FormalChargeAtom

      public FormalChargeAtom(int charge, IChemObjectBuilder builder)
      Deprecated.
      Creates a new instance
      Parameters:
      charge -
  • Method Details

    • matches

      public boolean matches(IAtom atom)
      Deprecated.
      Description copied from class: QueryAtom
      Returns true of the given atom matches this IQueryAtom.
      Specified by:
      matches in interface IQueryAtom
      Overrides:
      matches in class SMARTSAtom
      Parameters:
      atom - IAtom to match against
      Returns:
      true, if this IQueryAtom matches the given IAtom
    • toString

      public String toString()
      Deprecated.
      Description copied from interface: IChemObject
      Returns a one line description of this IChemObject.
      Specified by:
      toString in interface IChemObject
      Overrides:
      toString in class Object
      Returns:
      a String representation of this object