Class FunctionMapping

java.lang.Object
ai.reveng.model.FunctionMapping

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

  • Constructor Details

    • FunctionMapping

      public FunctionMapping()
  • Method Details

    • functionMap

      public FunctionMapping functionMap(@Nonnull Map<String,Integer> functionMap)
    • putFunctionMapItem

      public FunctionMapping putFunctionMapItem(String key, Integer functionMapItem)
    • getFunctionMap

      @Nonnull public Map<String,Integer> getFunctionMap()
      Mapping of remote function ids to local function addresses
      Returns:
      functionMap
    • setFunctionMap

      public void setFunctionMap(@Nonnull Map<String,Integer> functionMap)
    • inverseFunctionMap

      public FunctionMapping inverseFunctionMap(@Nonnull Map<String,Integer> inverseFunctionMap)
    • putInverseFunctionMapItem

      public FunctionMapping putInverseFunctionMapItem(String key, Integer inverseFunctionMapItem)
    • getInverseFunctionMap

      @Nonnull public Map<String,Integer> getInverseFunctionMap()
      Mapping of local function addresses to remote function ids
      Returns:
      inverseFunctionMap
    • setInverseFunctionMap

      public void setInverseFunctionMap(@Nonnull Map<String,Integer> inverseFunctionMap)
    • nameMap

      public FunctionMapping nameMap(@Nonnull Map<String,String> nameMap)
    • putNameMapItem

      public FunctionMapping putNameMapItem(String key, String nameMapItem)
    • getNameMap

      @Nonnull public Map<String,String> getNameMap()
      Mapping of local function addresses to mangled names
      Returns:
      nameMap
    • setNameMap

      public void setNameMap(@Nonnull Map<String,String> nameMap)
    • 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 FunctionMapping
    • fromJson

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

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