Package ghidra.features.bsim.gui.filters
Class NotExecutableNameBSimFilterType
java.lang.Object
ghidra.features.bsim.gui.filters.BSimFilterType
ghidra.features.bsim.gui.filters.NotExecutableNameBSimFilterType
- All Implemented Interfaces:
Comparable<BSimFilterType>
A BsimFilterType for filtering on functions whose containing program don't match a specific name.
-
Field Summary
FieldsFields inherited from class ghidra.features.bsim.gui.filters.BSimFilterType
BLANK, hint, label, xmlval -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(ExecutableRecord rec, String value) Evaluate this filter for a specific ExecutableRecord and a specific filter -value-voidgatherElasticEffect(ElasticEffects effect, FilterAtom atom, IDElasticResolution resolution) Gather pieces necessary to emit this filter as part of an elasticsearch query documentvoidgatherSQLEffect(SQLEffects effect, FilterAtom atom, IDSQLResolution resolution) Gather all pieces to successfully convert this filter element into an SQL clauseConstruct a record describing the column id's that might need to be recovered before this filter element can be converted to an SQL clausebooleanMethods inherited from class ghidra.features.bsim.gui.filters.BSimFilterType
buildElasticCombinedClause, buildSQLCombinedClause, compareTo, equals, generateBsimFilters, generateIDElasticResolution, getBaseFilters, getBlank, getEditor, getHint, getLabel, getXmlValue, hashCode, isBlank, isChildFilter, isLocal, isMultipleEntryAllowed, isValidValue, nameToType, normalizeValue, saveXml, toString
-
Field Details
-
XML_VALUE
- See Also:
-
-
Constructor Details
-
NotExecutableNameBSimFilterType
public NotExecutableNameBSimFilterType()
-
-
Method Details
-
gatherSQLEffect
public void gatherSQLEffect(SQLEffects effect, FilterAtom atom, IDSQLResolution resolution) throws SQLException Description copied from class:BSimFilterTypeGather all pieces to successfully convert this filter element into an SQL clause- Specified by:
gatherSQLEffectin classBSimFilterType- Parameters:
effect- is SQLEffects container for this filter elements pieces and othersatom- holds the values for a particular instantiation of this filter elementresolution- is the IDResolution containing relevant row ids for the filter, which must have been precalculated- Throws:
SQLException- for errors building the SQL clause
-
gatherElasticEffect
public void gatherElasticEffect(ElasticEffects effect, FilterAtom atom, IDElasticResolution resolution) throws ElasticException Description copied from class:BSimFilterTypeGather pieces necessary to emit this filter as part of an elasticsearch query document- Specified by:
gatherElasticEffectin classBSimFilterType- Parameters:
effect- is the ElasticEffects container holding the piecesatom- holds the values for a particular instantiation of this filter elementresolution- contains relevant ids for the filter, which must have been precalculated- Throws:
ElasticException- for errors building the JSON subdocument
-
evaluate
Description copied from class:BSimFilterTypeEvaluate this filter for a specific ExecutableRecord and a specific filter -value-- Specified by:
evaluatein classBSimFilterType- Parameters:
rec- is the ExecutableRecord to filter againstvalue- is the String value for an instantiated filter- Returns:
- true if this element would allow the ExecutableRecord to pass the filter
-
generateIDSQLResolution
Description copied from class:BSimFilterTypeConstruct a record describing the column id's that might need to be recovered before this filter element can be converted to an SQL clause- Specified by:
generateIDSQLResolutionin classBSimFilterType- Parameters:
atom- is the specific FilterAtom to generate the record for- Returns:
- the IDSQLResolution record or null if no ids need to be recovered
-
orMultipleEntries
public boolean orMultipleEntries()- Overrides:
orMultipleEntriesin classBSimFilterType- Returns:
- true if multiple filters of this type should be OR'd. AND them otherwise.
-