Class ParseRulesResults


  • public class ParseRulesResults
    extends java.lang.Object
    A wrapper for the results from parsing a chemical name or part of a chemical name through ParseRules
    • Constructor Summary

      Constructors 
      Constructor Description
      ParseRulesResults​(java.util.List<ParseTokens> parseTokensList, java.lang.String uninterpretableName, java.lang.String unparseableName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<ParseTokens> getParseTokensList()
      One ParseTokens object is returned for each possible interpretation of a chemical name If none of the name can be interpreted this list will be empty
      java.lang.String getUninterpretableName()
      The substring of the name that could not be classified into a substituent/full/functionalTerm e.g.
      java.lang.String getUnparseableName()
      The substring of the name that could not be tokenised at all.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ParseRulesResults

        public ParseRulesResults​(java.util.List<ParseTokens> parseTokensList,
                                 java.lang.String uninterpretableName,
                                 java.lang.String unparseableName)
    • Method Detail

      • getParseTokensList

        public java.util.List<ParseTokens> getParseTokensList()
        One ParseTokens object is returned for each possible interpretation of a chemical name If none of the name can be interpreted this list will be empty
        Returns:
        List of possible tokenisations/annotation of tokens
      • getUninterpretableName

        public java.lang.String getUninterpretableName()
        The substring of the name that could not be classified into a substituent/full/functionalTerm e.g. in ethyl-2H-fooarene "2H-fooarene" will be returned
        Returns:
        String of uninterpetable chemical name
      • getUnparseableName

        public java.lang.String getUnparseableName()
        The substring of the name that could not be tokenised at all. This will always be the same or shorter than the uninterpetable substring of name e.g. in ethyl-2H-fooarene "fooarene" will be returned
        Returns:
        String of unparseable chemical name
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object