Class AssemblyResolvedError
- java.lang.Object
-
- ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolution
-
- ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolvedError
-
- All Implemented Interfaces:
java.lang.Comparable<AssemblyResolution>
public class AssemblyResolvedError extends AssemblyResolution
AAssemblyResolution
indicating the occurrence of a (usually semantic) error The description should indicate where the error occurred. The error message should explain the actual error. To help the user diagnose the nature of the error, errors in sub-constructors should be placed as children of an error given by the parent constructor.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
error
-
Fields inherited from class ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolution
children, description
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
computeHash()
boolean
equals(java.lang.Object obj)
java.lang.String
getError()
Get a description of the errorboolean
isBackfill()
Check if this record describes a backfillboolean
isError()
Check if this record describes an errorjava.lang.String
lineToString()
Display the resolution result in one line (omitting child details)-
Methods inherited from class ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolution
backfill, childrenToString, compareTo, contextOnly, error, error, fromPattern, hasChildren, hashCode, instrOnly, nop, resolved, toString, toString
-
-
-
-
Method Detail
-
computeHash
protected int computeHash()
- Specified by:
computeHash
in classAssemblyResolution
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
isError
public boolean isError()
Description copied from class:AssemblyResolution
Check if this record describes an error- Specified by:
isError
in classAssemblyResolution
- Returns:
- true if the record is an error
-
isBackfill
public boolean isBackfill()
Description copied from class:AssemblyResolution
Check if this record describes a backfill- Specified by:
isBackfill
in classAssemblyResolution
- Returns:
- true if the record is a backfill
-
getError
public java.lang.String getError()
Get a description of the error- Returns:
- the description
-
lineToString
public java.lang.String lineToString()
Description copied from class:AssemblyResolution
Display the resolution result in one line (omitting child details)- Specified by:
lineToString
in classAssemblyResolution
- Returns:
- the display description
-
-