Package ghidra.app.cmd.formats
Class PefBinaryAnalysisCommand
java.lang.Object
ghidra.program.flatapi.FlatProgramAPI
ghidra.app.cmd.formats.PefBinaryAnalysisCommand
- All Implemented Interfaces:
ghidra.app.plugin.core.analysis.AnalysisWorker,BinaryAnalysisCommand,ExtensionPoint
public class PefBinaryAnalysisCommand
extends FlatProgramAPI
implements BinaryAnalysisCommand, ghidra.app.plugin.core.analysis.AnalysisWorker
-
Field Summary
Fields inherited from class ghidra.program.flatapi.FlatProgramAPI
currentProgram, MAX_REFERENCES_TO, monitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleananalysisWorkerCallback(Program program, Object workerContext, TaskMonitor monitor) booleanapplyTo(Program program, TaskMonitor monitor) Applies the command to the given domain object.booleanReturns TRUE if this command can be applied to the given domain object.Returns the status message indicating the status of the command.getName()Returns the name of this command.Methods inherited from class ghidra.program.flatapi.FlatProgramAPI
addEntryPoint, addInstructionXref, analyze, analyzeAll, analyzeChanges, clearListing, clearListing, clearListing, clearListing, clearListing, createAddressSet, createAsciiString, createAsciiString, createBookmark, createByte, createChar, createClass, createData, createDouble, createDWord, createDwords, createEquate, createEquate, createExternalReference, createExternalReference, createExternalReference, createFloat, createFragment, createFragment, createFragment, createFragment, createFunction, createLabel, createLabel, createLabel, createMemoryBlock, createMemoryBlock, createMemoryReference, createMemoryReference, createNamespace, createQWord, createStackReference, createSymbol, createSymbol, createUnicodeString, createWord, disassemble, end, find, find, find, findBytes, findBytes, findBytes, findBytes, findBytes, findPascalStrings, findStrings, getAddressFactory, getBookmarks, getByte, getBytes, getCurrentProgram, getDataAfter, getDataAfter, getDataAt, getDataBefore, getDataBefore, getDataContaining, getDataTypes, getDouble, getEOLComment, getEquate, getEquate, getEquates, getFirstData, getFirstFunction, getFirstInstruction, getFirstInstruction, getFloat, getFragment, getFunction, getFunctionAfter, getFunctionAfter, getFunctionAt, getFunctionBefore, getFunctionBefore, getFunctionContaining, getGlobalFunctions, getInstructionAfter, getInstructionAfter, getInstructionAt, getInstructionBefore, getInstructionBefore, getInstructionContaining, getInt, getLastData, getLastFunction, getLastInstruction, getLong, getMemoryBlock, getMemoryBlock, getMemoryBlocks, getMonitor, getNamespace, getPlateComment, getPostComment, getPreComment, getProgramFile, getProjectRootFolder, getReference, getReference, getReferencesFrom, getReferencesTo, getRepeatableComment, getShort, getSymbol, getSymbolAfter, getSymbolAfter, getSymbolAt, getSymbolAt, getSymbolAt, getSymbolBefore, getSymbolBefore, getSymbols, getUndefinedDataAfter, getUndefinedDataAt, getUndefinedDataBefore, openDataTypeArchive, removeBookmark, removeData, removeDataAt, removeEntryPoint, removeEquate, removeEquate, removeEquates, removeFunction, removeFunctionAt, removeInstruction, removeInstructionAt, removeMemoryBlock, removeReference, removeSymbol, saveProgram, saveProgram, set, setByte, setBytes, setDouble, setEOLComment, setFloat, setInt, setLong, setPlateComment, setPostComment, setPreComment, setReferencePrimary, setReferencePrimary, setRepeatableComment, setShort, start, toAddr, toAddr, toAddr
-
Constructor Details
-
PefBinaryAnalysisCommand
public PefBinaryAnalysisCommand()
-
-
Method Details
-
canApply
Description copied from interface:BinaryAnalysisCommandReturns TRUE if this command can be applied to the given domain object.- Specified by:
canApplyin interfaceBinaryAnalysisCommand- Parameters:
program- the domain object to inspect.- Returns:
- TRUE if this command can be applied
-
analysisWorkerCallback
public boolean analysisWorkerCallback(Program program, Object workerContext, TaskMonitor monitor) throws Exception, CancelledException - Specified by:
analysisWorkerCallbackin interfaceghidra.app.plugin.core.analysis.AnalysisWorker- Throws:
ExceptionCancelledException
-
getWorkerName
- Specified by:
getWorkerNamein interfaceghidra.app.plugin.core.analysis.AnalysisWorker
-
applyTo
Description copied from interface:BinaryAnalysisCommandApplies the command to the given domain object.- Specified by:
applyToin interfaceBinaryAnalysisCommand- Parameters:
program- domain object that this command is to be applied.monitor- the task monitor- Returns:
- true if the command applied successfully
- Throws:
Exception
-
getName
Description copied from interface:BinaryAnalysisCommandReturns the name of this command.- Specified by:
getNamein interfaceBinaryAnalysisCommand- Returns:
- the name of this command
-
getMessages
Description copied from interface:BinaryAnalysisCommandReturns the status message indicating the status of the command.- Specified by:
getMessagesin interfaceBinaryAnalysisCommand- Returns:
- reason for failure, or null if the status of the command was successful
-