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 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 errorjava.lang.String
getBuffer()
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 continueboolean
isError()
Check if the parse result is successful or an errorjava.lang.String
toString()
-
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: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
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:
toString
in classjava.lang.Object
-
-