Class Tuple.IndirectFunctionTarget

java.lang.Object
io.jawk.intermediate.Tuple.IndirectFunctionTarget
All Implemented Interfaces:
Serializable
Enclosing class:
Tuple

public static final class Tuple.IndirectFunctionTarget extends Object implements Serializable
Runtime target metadata for a user-defined indirect function call.
See Also:
  • Constructor Details

    • IndirectFunctionTarget

      public IndirectFunctionTarget(Supplier<Address> addressSupplierParam, long numFormalParamsParam, Set<Integer> arrayParameterIndexesParam)
      Creates target metadata whose address is resolved during tuple post-processing.
      Parameters:
      addressSupplierParam - function entry-point supplier
      numFormalParamsParam - formal parameter count
      arrayParameterIndexesParam - zero-based array parameter indexes
  • Method Details

    • getAddress

      public Address getAddress()
      Returns the resolved function entry point.
      Returns:
      function address
    • getNumFormalParams

      public long getNumFormalParams()
      Returns the function's formal parameter count.
      Returns:
      formal parameter count
    • isArrayParameter

      public boolean isArrayParameter(int index)
      Returns whether the parameter at the supplied index is an array.
      Parameters:
      index - zero-based formal parameter index
      Returns:
      true when the formal parameter is an array