Package ghidra.app.analyzers
Class AbstractBinaryFormatAnalyzer
java.lang.Object
ghidra.app.services.AbstractAnalyzer
ghidra.app.analyzers.AbstractBinaryFormatAnalyzer
- All Implemented Interfaces:
Analyzer,ExtensionPoint
- Direct Known Subclasses:
AppleSingleDoubleAnalyzer,CoffAnalyzer,CoffArchiveAnalyzer,ElfAnalyzer,MachoAnalyzer,PefAnalyzer,PortableExecutableAnalyzer
-
Field Summary
FieldsFields inherited from class ghidra.app.services.AbstractAnalyzer
EMPTY_ADDRESS_SET -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanadded(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log) Called when the requested information type has been added, for example, when a function is added.final booleancanAnalyze(Program program) Can this analyzer work on this program.final booleangetDefaultEnablement(Program program) Returns true if this analyzer should be enabled by default.Methods inherited from class ghidra.app.services.AbstractAnalyzer
analysisEnded, analyzeLocation, getAnalysisType, getDescription, getName, getPriority, isPrototype, optionsChanged, registerOptions, removed, runParallelAddressAnalysis, setDefaultEnablement, setPriority, setPrototype, setSupportsOneTimeAnalysis, setSupportsOneTimeAnalysis, supportsOneTimeAnalysisMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.app.services.Analyzer
getOptionsUpdater
-
Field Details
-
command
-
-
Constructor Details
-
AbstractBinaryFormatAnalyzer
-
-
Method Details
-
added
public final boolean added(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log) throws CancelledException Description copied from interface:AnalyzerCalled when the requested information type has been added, for example, when a function is added.- Parameters:
program- program to analyzeset- AddressSet of locations that have been addedmonitor- monitor that indicates progress and indicates whether the user canceled the analysislog- a message log to record analysis information- Returns:
- true if the analysis succeeded
- Throws:
CancelledException- if the analysis is cancelled
-
canAnalyze
Description copied from interface:AnalyzerCan this analyzer work on this program.- Specified by:
canAnalyzein interfaceAnalyzer- Overrides:
canAnalyzein classAbstractAnalyzer- Parameters:
program- program to be analyzed- Returns:
- true if this analyzer can analyze this program
-
getDefaultEnablement
Description copied from interface:AnalyzerReturns true if this analyzer should be enabled by default. Generally useful analyzers should return true. Specialized analyzers should return false;- Specified by:
getDefaultEnablementin interfaceAnalyzer- Overrides:
getDefaultEnablementin classAbstractAnalyzer- Parameters:
program- the program- Returns:
- true if enabled by default
-