Package ghidra.util.constraint
Class CompilerConstraint
java.lang.Object
generic.constraint.Constraint<Program>
ghidra.util.constraint.ProgramConstraint
ghidra.util.constraint.CompilerConstraint
- All Implemented Interfaces:
ExtensionPoint
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a description of this constraint (with its configuration data) to be used to journal the decision path that was taken.int
hashCode()
boolean
isSatisfied
(Program program) Returns true if the given object satisfies this constraint.void
Initialized this constraint state.Methods inherited from class generic.constraint.Constraint
getName
-
Constructor Details
-
CompilerConstraint
public CompilerConstraint()
-
-
Method Details
-
isSatisfied
Description copied from class:Constraint
Returns true if the given object satisfies this constraint.- Specified by:
isSatisfied
in classConstraint<Program>
- Parameters:
program
- the object to test this constraint on.- Returns:
- true if the given object satisfies this constraint.
-
loadConstraintData
Description copied from class:Constraint
Initialized this constraint state. Attributes in the xml element with this constaints tag name will be extracted into the ConstraintData object for easy retrieval.- Specified by:
loadConstraintData
in classConstraint<Program>
- Parameters:
data
- the ConstraintData object used to initialize this constraint.
-
equals
- Specified by:
equals
in classConstraint<Program>
-
hashCode
public int hashCode() -
getDescription
Description copied from class:Constraint
Returns a description of this constraint (with its configuration data) to be used to journal the decision path that was taken.- Specified by:
getDescription
in classConstraint<Program>
- Returns:
- a description of this constraint with its configuration data.
-