public final class ExecutionSignature extends Object
RootNode
. This is used to represent AOT
signatures.RootNode.prepareForAOT()
Modifier and Type | Field and Description |
---|---|
static ExecutionSignature |
GENERIC
Returns a generic return profile where return and argument types are unknown.
|
Modifier and Type | Method and Description |
---|---|
static ExecutionSignature |
create(Class<?> returnType,
Class<?>[] argumentTypes)
Creates a new execution signature of a
RootNode . |
Class<?>[] |
getArgumentTypes()
Returns the argument types of the execution signature.
|
Class<?> |
getReturnType()
Returns the return type of the execution signature.
|
public static final ExecutionSignature GENERIC
public Class<?>[] getArgumentTypes()
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.public Class<?> getReturnType()
null
to indicate that the type is unknown.public static ExecutionSignature create(Class<?> returnType, Class<?>[] argumentTypes)
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.