Class HomogeneousAggregate
java.lang.Object
ghidra.program.model.lang.protorules.SizeRestrictedFilter
ghidra.program.model.lang.protorules.HomogeneousAggregate
- All Implemented Interfaces:
DatatypeFilter
Filter on a homogeneous aggregate data-type
All primitive data-types must be the same.
-
Field Summary
Fields inherited from class ghidra.program.model.lang.protorules.SizeRestrictedFilter
maxSize, minSize, NAME
-
Constructor Summary
ConstructorDescriptionHomogeneousAggregate
(String nm, int meta) Constructor for use with decode()HomogeneousAggregate
(String nm, int meta, int maxPrim, int min, int max) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Make a copy of this filtervoid
Encode this filter and its configuration to a streamboolean
Test whether the given data-type belongs to this filter's data-type classvoid
restoreXml
(XmlPullParser parser) Configure details of the data-type class being filtered from the given streamMethods inherited from class ghidra.program.model.lang.protorules.SizeRestrictedFilter
encodeAttributes, filterOnSize, isEquivalent, restoreAttributesXml
-
Field Details
-
NAME_FLOAT4
- See Also:
-
MAX_PRIMITIVES
public static final int MAX_PRIMITIVES- See Also:
-
-
Constructor Details
-
HomogeneousAggregate
Constructor for use with decode()- Parameters:
nm
- is the name attribute associated with the tagmeta
- is the expected element meta-type
-
HomogeneousAggregate
-
-
Method Details
-
clone
Description copied from interface:DatatypeFilter
Make a copy of this filter- Specified by:
clone
in interfaceDatatypeFilter
- Overrides:
clone
in classSizeRestrictedFilter
- Returns:
- the new copy
-
filter
Description copied from interface:DatatypeFilter
Test whether the given data-type belongs to this filter's data-type class- Specified by:
filter
in interfaceDatatypeFilter
- Overrides:
filter
in classSizeRestrictedFilter
- Parameters:
dt
- is the given data-type to test- Returns:
- true if the data-type is in the class, false otherwise
-
encode
Description copied from interface:DatatypeFilter
Encode this filter and its configuration to a stream- Specified by:
encode
in interfaceDatatypeFilter
- Overrides:
encode
in classSizeRestrictedFilter
- Parameters:
encoder
- is the stream encoder- Throws:
IOException
- for problems writing to the stream
-
restoreXml
Description copied from interface:DatatypeFilter
Configure details of the data-type class being filtered from the given stream- Specified by:
restoreXml
in interfaceDatatypeFilter
- Overrides:
restoreXml
in classSizeRestrictedFilter
- Parameters:
parser
- is the given stream decoder- Throws:
XmlParseException
- if there are problems with the stream
-