Class SmartsResult

java.lang.Object
org.openscience.cdk.smarts.SmartsResult

public class SmartsResult extends Object
The result of parsing a SMARTS. The result indicates if the input was parsed OK or not (ok(), if the parse was not OK an error message and location is set.
Author:
John Mayfield
See Also:
  • Method Details

    • getMessage

      public String getMessage()
      The error/warning message.
      Returns:
      the message
    • displayErrorLocation

      public String displayErrorLocation()
      Displays where the error occurred on the input string.
      Returns:
      the error location
    • ok

      public boolean ok()
      Was the SMARTS parsed ok.
      Returns:
      parse was OK.
    • getPosition

      public int getPosition()
      The position (string index) in the input that was interpreted.
      Returns:
      the position