Package ghidra.app.services
Class FieldMatcher
java.lang.Object
ghidra.app.services.FieldMatcher
This class allows clients to match on multiple field attributes, such as name and offset
within a parent data type.
Use FieldMatcher(DataType) as an 'empty' or 'ignored' field matcher to signal that any
field match is considered value.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldMatcher(DataType dataType) Creates an 'empty' matcher that can be used to signal no specific field or offset match is required.FieldMatcher(DataType dataType, int offset) FieldMatcher(DataType dataType, String fieldName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a display text for this field matcher, for example,Foo.bar.Returns the field name given to this matcher or will attempt to generate a default field name using the given data type and offset.inthashCode()booleanSignals that no specific field match is required.booleantoString()
-
Constructor Details
-
FieldMatcher
Creates an 'empty' matcher that can be used to signal no specific field or offset match is required.- Parameters:
dataType- the non-null data type.
-
FieldMatcher
-
FieldMatcher
-
-
Method Details
-
isIgnored
public boolean isIgnored()Signals that no specific field match is required.- Returns:
- true if no field or offset has been specified.
-
matches
-
getDisplayText
Returns a display text for this field matcher, for example,Foo.bar.- Returns:
- the display text
-
getDataType
-
getFieldName
Returns the field name given to this matcher or will attempt to generate a default field name using the given data type and offset.- Returns:
- the field name or null
-
toString
-
hashCode
public int hashCode() -
equals
-