Class DefaultAssemblyResolvedError
java.lang.Object
ghidra.app.plugin.assembler.sleigh.sem.AbstractAssemblyResolution
ghidra.app.plugin.assembler.sleigh.sem.DefaultAssemblyResolvedError
- All Implemented Interfaces:
AssemblyResolution,AssemblyResolvedError,Comparable<AssemblyResolution>
public class DefaultAssemblyResolvedError
extends AbstractAssemblyResolution
implements AssemblyResolvedError
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.AbstractAssemblyResolution
children, description, factory, right -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultAssemblyResolvedError(AbstractAssemblyResolutionFactory<?, ?> factory, String description, List<? extends AssemblyResolution> children, AssemblyResolution right, String error) -
Method Summary
Modifier and TypeMethodDescriptionprotected intbooleangetError()Get a description of the errorbooleanCheck if this record describes a backfillbooleanisError()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.AbstractAssemblyResolution
childrenToString, collectAllRight, compareTo, getAllRight, getChildren, getDescription, getRight, hasChildren, hashCode, toString, toString, withoutRightMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ghidra.app.plugin.assembler.sleigh.sem.AssemblyResolution
collectAllRight, getChildren, getDescription, getRight, hasChildren, toString, toStringMethods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
error
-
-
Constructor Details
-
DefaultAssemblyResolvedError
protected DefaultAssemblyResolvedError(AbstractAssemblyResolutionFactory<?, ?> factory, String description, List<? extends AssemblyResolution> children, AssemblyResolution right, String error)
-
-
Method Details
-
computeHash
protected int computeHash()- Specified by:
computeHashin classAbstractAssemblyResolution
-
equals
-
isError
public boolean isError()Description copied from interface:AssemblyResolutionCheck if this record describes an error- Specified by:
isErrorin interfaceAssemblyResolution- Returns:
- true if the record is an error
-
isBackfill
public boolean isBackfill()Description copied from interface:AssemblyResolutionCheck if this record describes a backfill- Specified by:
isBackfillin interfaceAssemblyResolution- Returns:
- true if the record is a backfill
-
getError
Get a description of the error- Specified by:
getErrorin interfaceAssemblyResolvedError- Returns:
- the description
-
lineToString
Description copied from interface:AssemblyResolutionDisplay the resolution result in one line (omitting child details)- Specified by:
lineToStringin interfaceAssemblyResolution- Returns:
- the display description
-
shift
Description copied from interface:AssemblyResolutionShift the resolution's instruction pattern to the right, if applicableThis also shifts any backfill and forbidden pattern records.
- Specified by:
shiftin interfaceAssemblyResolution- Specified by:
shiftin classAbstractAssemblyResolution- Parameters:
amt- the number of bytes to shift.- Returns:
- the result
-
withRight
Description copied from class:AbstractAssemblyResolutionGet this same resolution, but with the given right sibling- Specified by:
withRightin classAbstractAssemblyResolution- Parameters:
right- the right sibling- Returns:
- the resolution
-
parent
Description copied from interface:AssemblyResolutionGet this same resolution, pushing its right siblings down to its children- Specified by:
parentin interfaceAssemblyResolution
-