Class AssemblyParseErrorResult
- java.lang.Object
-
- ghidra.app.plugin.assembler.sleigh.parse.AssemblyParseResult
-
- ghidra.app.plugin.assembler.sleigh.parse.AssemblyParseErrorResult
-
- All Implemented Interfaces:
java.lang.Comparable<AssemblyParseResult>
public class AssemblyParseErrorResult extends AssemblyParseResult
An unsuccessful result from parsing
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssemblyParseErrorResult(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.StringdescribeError()Get a description of the errorjava.lang.StringgetBuffer()Get the leftover contents of the input buffer when the error occurredjava.util.Set<java.lang.String>getSuggestions()Get a set of suggested tokens that would have allowed parsing to continuebooleanisError()Check if the parse result is successful or an errorjava.lang.StringtoString()-
Methods inherited from class ghidra.app.plugin.assembler.sleigh.parse.AssemblyParseResult
accept, compareTo, error
-
-
-
-
Constructor Detail
-
AssemblyParseErrorResult
protected AssemblyParseErrorResult(java.lang.String got, java.util.Set<java.lang.String> suggestions)- See Also:
AssemblyParseResult.error(String, Set)
-
-
Method Detail
-
isError
public boolean isError()
Description copied from class:AssemblyParseResultCheck if the parse result is successful or an error- Specified by:
isErrorin classAssemblyParseResult- 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 token set
-
getBuffer
public java.lang.String getBuffer()
Get the leftover contents of the input buffer when the error occurred- Returns:
- the remaining buffer contents
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-