Package io.jawk.intermediate
Class Tuple.IndirectFunctionTarget
java.lang.Object
io.jawk.intermediate.Tuple.IndirectFunctionTarget
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Tuple
Runtime target metadata for a user-defined indirect function call.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIndirectFunctionTarget(Supplier<Address> addressSupplierParam, long numFormalParamsParam, Set<Integer> arrayParameterIndexesParam) Creates target metadata whose address is resolved during tuple post-processing. -
Method Summary
Modifier and TypeMethodDescriptionReturns the resolved function entry point.longReturns the function's formal parameter count.booleanisArrayParameter(int index) Returns whether the parameter at the supplied index is an array.
-
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 suppliernumFormalParamsParam- formal parameter countarrayParameterIndexesParam- zero-based array parameter indexes
-
-
Method Details
-
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:
truewhen the formal parameter is an array
-