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
  • Constructor Details

    • PefBinaryAnalysisCommand

      public PefBinaryAnalysisCommand()
  • Method Details

    • canApply

      public boolean canApply(Program program)
      Description copied from interface: BinaryAnalysisCommand
      Returns TRUE if this command can be applied to the given domain object.
      Specified by:
      canApply in interface BinaryAnalysisCommand
      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:
      analysisWorkerCallback in interface ghidra.app.plugin.core.analysis.AnalysisWorker
      Throws:
      Exception
      CancelledException
    • getWorkerName

      public String getWorkerName()
      Specified by:
      getWorkerName in interface ghidra.app.plugin.core.analysis.AnalysisWorker
    • applyTo

      public boolean applyTo(Program program, TaskMonitor monitor) throws Exception
      Description copied from interface: BinaryAnalysisCommand
      Applies the command to the given domain object.
      Specified by:
      applyTo in interface BinaryAnalysisCommand
      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

      public String getName()
      Description copied from interface: BinaryAnalysisCommand
      Returns the name of this command.
      Specified by:
      getName in interface BinaryAnalysisCommand
      Returns:
      the name of this command
    • getMessages

      public MessageLog getMessages()
      Description copied from interface: BinaryAnalysisCommand
      Returns the status message indicating the status of the command.
      Specified by:
      getMessages in interface BinaryAnalysisCommand
      Returns:
      reason for failure, or null if the status of the command was successful