Class ExecutionSignature

java.lang.Object
com.oracle.truffle.api.nodes.ExecutionSignature

public final class ExecutionSignature extends Object
Represents an execution signature of a RootNode. This is used to represent AOT signatures.
Since:
20.3
See Also:
  • Field Details

    • GENERIC

      public static final ExecutionSignature GENERIC
      Returns a generic return profile where return and argument types are unknown.
      Since:
      20.3
  • Method Details

    • getArgumentTypes

      public Class<?>[] getArgumentTypes()
      Returns the argument types of the execution signature. The returned types may be null to indicate that nothing is known about argument types. If the argument returns a non-null value then the length of the array will be used for the number of expected arguments. Each value of the return array specifies the expected argument type of the execution. If an argument type is null then this indicates that the argument type is unknown.
      Since:
      20.3
    • getReturnType

      public Class<?> getReturnType()
      Returns the return type of the execution signature. The return type may be null to indicate that the type is unknown.
      Since:
      20.3
    • create

      public static ExecutionSignature create(Class<?> returnType, Class<?>[] argumentTypes)
      Creates a new execution signature of a RootNode. The return type or the argument types may be null to indicate that they are unknown. Individual argument type array values may also be null to indicate they are unknown.
      Since:
      20.3