Class NativeSignatureMatchResult

java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.sig.NativeSignatureMatchResult

public class NativeSignatureMatchResult extends Object
Result of a match, i.e. a list of INativeSignature matching a INativeMethodItem. Such result can be incomplete, see isComplete().

Immutable.

  • Constructor Details

    • NativeSignatureMatchResult

      public NativeSignatureMatchResult(INativeMethodItem target, List<INativeSignature> signatures, boolean completeMatch, INativeSignature.ConfidenceLevel confidenceLevel)
      Create a native signature match result.
      Parameters:
      target - cannot be null
      signatures - cannot be null
      completeMatch - true if the match was computed against all applicable signatures
      confidenceLevel - result confidence level, if different from INativeSignature.ConfidenceLevel.UNKNOWN, all signatures have this level of confidence. Cannot be null.
  • Method Details

    • getSignatures

      public List<INativeSignature> getSignatures()
      Get the matching signatures.
      Returns:
      matching signatures
    • getTarget

      public INativeMethodItem getTarget()
      Get the matched native method item.
      Returns:
      matched target item
    • isComplete

      public boolean isComplete()
      If false indicates that the matching was not done on the whole DB, i.e. there may be more matching signatures than the ones in this result.
      Returns:
      true if the match result is complete
    • getConfidenceLevel

      public INativeSignature.ConfidenceLevel getConfidenceLevel()
      Get the confidence level of the result.
      Returns:
      confidence level, cannot be null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object