Class AssemblyResolvedError
java.lang.Object
ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolution
ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolvedError
- All Implemented Interfaces:
Comparable<AssemblyResolution>
A
AssemblyResolution
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
FieldsFields inherited from class ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolution
children, description, right
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
boolean
getError()
Get a description of the errorboolean
Check if this record describes a backfillboolean
isError()
Check if this record describes an errorDisplay the resolution result in one line (omitting child details)Get this same resolution, pushing its right siblings down to its childrenshift
(int amt) Shift the resolution's instruction pattern to the right, if applicablewithRight
(AssemblyResolution right) Get this same resolution, but with the given right siblingMethods inherited from class ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolution
backfill, childrenToString, collectAllRight, compareTo, contextOnly, error, error, error, fromPattern, getAllRight, hasChildren, hashCode, instrOnly, nop, nop, resolved, toString, toString, withoutRight
-
Field Details
-
error
-
-
Method Details
-
computeHash
protected int computeHash()- Specified by:
computeHash
in classAssemblyResolution
-
equals
-
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
Get a description of the error- Returns:
- the description
-
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
-
shift
Description copied from class:AssemblyResolution
Shift the resolution's instruction pattern to the right, if applicableThis also shifts any backfill and forbidden pattern records.
- Specified by:
shift
in classAssemblyResolution
- Parameters:
amt
- the number of bytes to shift.- Returns:
- the result
-
withRight
Description copied from class:AssemblyResolution
Get this same resolution, but with the given right sibling- Specified by:
withRight
in classAssemblyResolution
- Returns:
- the resolution
-
parent
Description copied from class:AssemblyResolution
Get this same resolution, pushing its right siblings down to its children- Specified by:
parent
in classAssemblyResolution
-