Package ghidra.app.cmd.formats
Class PortableExecutableBinaryAnalysisCommand
- java.lang.Object
-
- ghidra.program.flatapi.FlatProgramAPI
-
- ghidra.app.cmd.formats.PortableExecutableBinaryAnalysisCommand
-
- All Implemented Interfaces:
ghidra.app.plugin.core.analysis.AnalysisWorker,BinaryAnalysisCommand,ExtensionPoint
public class PortableExecutableBinaryAnalysisCommand extends FlatProgramAPI implements BinaryAnalysisCommand, ghidra.app.plugin.core.analysis.AnalysisWorker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ghidra.util.classfinder.ExtensionPoint
ExtensionPoint.Exclude, ExtensionPoint.Util
-
-
Field Summary
-
Fields inherited from class ghidra.program.flatapi.FlatProgramAPI
currentProgram, MAX_REFERENCES_TO, monitor
-
-
Constructor Summary
Constructors Constructor Description PortableExecutableBinaryAnalysisCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleananalysisWorkerCallback(Program program, java.lang.Object workerContext, TaskMonitor monitor)booleanapplyTo(Program program, TaskMonitor monitor)Applies the command to the given domain object.booleancanApply(Program program)Returns TRUE if this command can be applied to the given domain object.MessageLoggetMessages()Returns the status message indicating the status of the command.java.lang.StringgetName()Returns the name of this command.java.lang.StringgetWorkerName()-
Methods inherited from class ghidra.program.flatapi.FlatProgramAPI
addEntryPoint, addInstructionXref, analyze, analyzeAll, analyzeChanges, clearListing, clearListing, clearListing, clearListing, createAddressSet, createAsciiString, createAsciiString, createBookmark, createByte, createChar, createData, createDouble, createDWord, createDwords, createEquate, createEquate, createExternalReference, createExternalReference, createExternalReference, createFloat, createFragment, createFragment, createFragment, createFragment, createFunction, createLabel, createLabel, createMemoryBlock, createMemoryBlock, createMemoryReference, createMemoryReference, 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, 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, getShort, getSymbol, getSymbolAfter, getSymbolAfter, getSymbolAt, getSymbolAt, getSymbolAt, getSymbolBefore, getSymbolBefore, getSymbols, getUndefinedDataAfter, getUndefinedDataAt, getUndefinedDataBefore, openDataTypeArchive, removeBookmark, removeData, removeDataAt, removeEntryPoint, removeEquate, 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, setShort, start, toAddr, toAddr, toAddr
-
-
-
-
Method Detail
-
canApply
public boolean canApply(Program program)
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, java.lang.Object workerContext, TaskMonitor monitor) throws java.lang.Exception, CancelledException
- Specified by:
analysisWorkerCallbackin interfaceghidra.app.plugin.core.analysis.AnalysisWorker- Throws:
java.lang.ExceptionCancelledException
-
getWorkerName
public java.lang.String getWorkerName()
- Specified by:
getWorkerNamein interfaceghidra.app.plugin.core.analysis.AnalysisWorker
-
applyTo
public boolean applyTo(Program program, TaskMonitor monitor) throws java.lang.Exception
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:
java.lang.Exception
-
getName
public java.lang.String getName()
Description copied from interface:BinaryAnalysisCommandReturns the name of this command.- Specified by:
getNamein interfaceBinaryAnalysisCommand- Returns:
- the name of this command
-
getMessages
public MessageLog 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
-
-