Package ghidra.util.constraint
Class PropertyConstraint
- java.lang.Object
-
- generic.constraint.Constraint<Program>
-
- ghidra.util.constraint.ProgramConstraint
-
- ghidra.util.constraint.PropertyConstraint
-
- All Implemented Interfaces:
ExtensionPoint
public class PropertyConstraint extends ProgramConstraint
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ghidra.util.classfinder.ExtensionPoint
ExtensionPoint.Exclude, ExtensionPoint.Util
-
-
Constructor Summary
Constructors Constructor Description PropertyConstraint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getDescription()
Returns a description of this constraint (with its configuration data) to be used to journal the decision path that was taken.boolean
isSatisfied(Program program)
Returns true if the given object satisfies this constraint.void
loadConstraintData(ConstraintData data)
Initialized this constraint state.-
Methods inherited from class generic.constraint.Constraint
getName
-
-
-
-
Method Detail
-
isSatisfied
public boolean isSatisfied(Program program)
Description copied from class:Constraint
Returns true if the given object satisfies this constraint.- Specified by:
isSatisfied
in classConstraint<Program>
- Returns:
- true if the given object satisfies this constraint.
-
loadConstraintData
public void loadConstraintData(ConstraintData data)
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
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in classConstraint<Program>
-
getDescription
public java.lang.String 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.
-
-