Class AssemblyParseErrorResult
java.lang.Object
ghidra.app.plugin.assembler.sleigh.parse.AssemblyParseResult
ghidra.app.plugin.assembler.sleigh.parse.AssemblyParseErrorResult
- All Implemented Interfaces:
Comparable<AssemblyParseResult>
An unsuccessful result from parsing
-
Constructor Summary
ModifierConstructorDescriptionprotected
AssemblyParseErrorResult
(String got, Set<String> suggestions) -
Method Summary
Methods inherited from class ghidra.app.plugin.assembler.sleigh.parse.AssemblyParseResult
accept, compareTo, error
-
Constructor Details
-
AssemblyParseErrorResult
- See Also:
-
-
Method Details
-
isError
public boolean isError()Description copied from class:AssemblyParseResult
Check if the parse result is successful or an error- Specified by:
isError
in classAssemblyParseResult
- Returns:
- true if the result describes an error
-
describeError
Get a description of the error- Returns:
- a description
-
getSuggestions
Get a set of suggested tokens that would have allowed parsing to continue- Returns:
- the token set
-
getBuffer
Get the leftover contents of the input buffer when the error occurred- Returns:
- the remaining buffer contents
-
toString
-