Class SMILESRecognizer


  • @PublicAPI
    @Deprecated
    public class SMILESRecognizer
    extends Recognizer
    Deprecated.
    as of Marvin 2014.07.21.0 intended for internal use only
    SMILES/SMARTS/CxSMILES/CxSMARTS format recognizer.
    Since:
    Marvin 5.0, 06/07/2007
    • Constructor Detail

      • SMILESRecognizer

        public SMILESRecognizer()
        Deprecated.
    • Method Detail

      • tryToRecognize

        public chemaxon.common.util.Pair<Boolean,​Collection<String>> tryToRecognize​(String line,
                                                                                          int lineNumber)
        Deprecated.
        Description copied from class: Recognizer
        Checks whether the parameter line can be part of a valid (format specified) file on the given file position.
        Overrides:
        tryToRecognize in class Recognizer
        Parameters:
        line - the line string
        lineNumber - the position of the line
        Returns:
        a Pair of which second parameter gives the format name collection that is:
        • Recognized to be excluded if the first parameter is false
        • Positively recognized if the first parameter is true
      • canBeSMILES

        public static boolean canBeSMILES​(String s)
        Deprecated.
        Tests whether a string can be SMILES.
        Parameters:
        s - the input string
        Returns:
        true if it can be, false if it cannot be SMILES
      • canBeSMARTS

        public static boolean canBeSMARTS​(String s)
        Deprecated.
        Tests whether a string can be SMARTS.
        Parameters:
        s - the input string
        Returns:
        true if it can be, false if it cannot be SMARTS.
      • isComment

        public static boolean isComment​(String s)
        Deprecated.
      • isCxSMILESLine

        public static boolean isCxSMILESLine​(String s)
        Deprecated.
        Checks if a line is a Chemaxon Extended SMILES/SMARTS format.
        Parameters:
        s - the input string
        Returns:
        true if it is cxsmiles, false otherwise