Class MatchedFunction

java.lang.Object
ai.reveng.model.MatchedFunction

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class MatchedFunction extends Object
MatchedFunction
  • Field Details

  • Constructor Details

    • MatchedFunction

      public MatchedFunction()
  • Method Details

    • analysisId

      public MatchedFunction analysisId(@Nonnull Long analysisId)
    • getAnalysisId

      @Nonnull public Long getAnalysisId()
      Analysis the candidate's binary belongs to
      Returns:
      analysisId
    • setAnalysisId

      public void setAnalysisId(@Nonnull Long analysisId)
    • binaryId

      public MatchedFunction binaryId(@Nonnull Long binaryId)
    • getBinaryId

      @Nonnull public Long getBinaryId()
      Binary the candidate belongs to
      Returns:
      binaryId
    • setBinaryId

      public void setBinaryId(@Nonnull Long binaryId)
    • binaryName

      public MatchedFunction binaryName(@Nonnull String binaryName)
    • getBinaryName

      @Nonnull public String getBinaryName()
      Binary name
      Returns:
      binaryName
    • setBinaryName

      public void setBinaryName(@Nonnull String binaryName)
    • confidence

      public MatchedFunction confidence(@Nonnull Double confidence)
    • getConfidence

      @Nonnull public Double getConfidence()
      Softmax-normalised confidence over the candidate pool
      Returns:
      confidence
    • setConfidence

      public void setConfidence(@Nonnull Double confidence)
    • debug

      public MatchedFunction debug(@Nonnull Boolean debug)
    • getDebug

      @Nonnull public Boolean getDebug()
      Whether the candidate's name came from debug info
      Returns:
      debug
    • setDebug

      public void setDebug(@Nonnull Boolean debug)
    • functionId

      public MatchedFunction functionId(@Nonnull Long functionId)
    • getFunctionId

      @Nonnull public Long getFunctionId()
      Candidate function ID
      Returns:
      functionId
    • setFunctionId

      public void setFunctionId(@Nonnull Long functionId)
    • functionName

      public MatchedFunction functionName(@Nonnull String functionName)
    • getFunctionName

      @Nonnull public String getFunctionName()
      Candidate function name
      Returns:
      functionName
    • setFunctionName

      public void setFunctionName(@Nonnull String functionName)
    • functionVaddr

      public MatchedFunction functionVaddr(@Nonnull Long functionVaddr)
    • getFunctionVaddr

      @Nonnull public Long getFunctionVaddr()
      Candidate's virtual address inside its binary
      Returns:
      functionVaddr
    • setFunctionVaddr

      public void setFunctionVaddr(@Nonnull Long functionVaddr)
    • mangledName

      public MatchedFunction mangledName(@Nonnull String mangledName)
    • getMangledName

      @Nonnull public String getMangledName()
      Mangled name when available
      Returns:
      mangledName
    • setMangledName

      public void setMangledName(@Nonnull String mangledName)
    • sha256Hash

      public MatchedFunction sha256Hash(@Nonnull String sha256Hash)
    • getSha256Hash

      @Nonnull public String getSha256Hash()
      SHA-256 of the candidate's binary
      Returns:
      sha256Hash
    • setSha256Hash

      public void setSha256Hash(@Nonnull String sha256Hash)
    • similarity

      public MatchedFunction similarity(@Nonnull Double similarity)
    • getSimilarity

      @Nonnull public Double getSimilarity()
      Cosine similarity scaled to a percentage
      Returns:
      similarity
    • setSimilarity

      public void setSimilarity(@Nonnull Double similarity)
    • putAdditionalProperty

      public MatchedFunction putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the MatchedFunction instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to MatchedFunction
    • fromJson

      public static MatchedFunction fromJson(String jsonString) throws IOException
      Create an instance of MatchedFunction given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of MatchedFunction
      Throws:
      IOException - if the JSON string is invalid with respect to MatchedFunction
    • toJson

      public String toJson()
      Convert an instance of MatchedFunction to an JSON string
      Returns:
      JSON string