Class AssemblyParseErrorResult

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AssemblyParseErrorResult​(java.lang.String got, java.util.Set<java.lang.String> suggestions)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String describeError()
      Get a description of the error
      java.lang.String getBuffer()
      Get the leftover contents of the input buffer when the error occurred
      java.util.Set<java.lang.String> getSuggestions()
      Get a set of suggested tokens that would have allowed parsing to continue
      boolean isError()
      Check if the parse result is successful or an error
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • AssemblyParseErrorResult

        protected AssemblyParseErrorResult​(java.lang.String got,
                                           java.util.Set<java.lang.String> suggestions)
    • Method Detail

      • isError

        public boolean isError()
        Description copied from class: AssemblyParseResult
        Check if the parse result is successful or an error
        Specified by:
        isError in class AssemblyParseResult
        Returns:
        true if the result describes an error
      • describeError

        public java.lang.String describeError()
        Get a description of the error
        Returns:
        a description
      • getSuggestions

        public java.util.Set<java.lang.String> getSuggestions()
        Get a set of suggested tokens that would have allowed parsing to continue
        Returns:
        the set
      • getBuffer

        public java.lang.String getBuffer()
        Get the leftover contents of the input buffer when the error occurred
        Returns:
      • toString

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