public interface Signature
| Modifier and Type | Method and Description |
|---|---|
int |
getParameterCount(boolean receiver)
Returns the number of parameters in this signature, adding 1 for a receiver if requested.
|
default Kind |
getParameterKind(int index)
Gets the parameter kind at the specified position.
|
JavaType |
getParameterType(int index,
ResolvedJavaType accessingClass)
Gets the parameter type at the specified position.
|
default Kind |
getReturnKind()
Gets the return kind of this signature.
|
JavaType |
getReturnType(ResolvedJavaType accessingClass)
Gets the return type of this signature.
|
default String |
toMethodDescriptor()
Gets the method
descriptor corresponding to this signature.
|
default Kind[] |
toParameterKinds(boolean receiver) |
default JavaType[] |
toParameterTypes(JavaType receiverType) |
int getParameterCount(boolean receiver)
receiver - true if 1 is to be added to the result for a receiverreceiver == trueJavaType getParameterType(int index, ResolvedJavaType accessingClass)
index - the index into the parameters, with 0 indicating the first parameteraccessingClass - the context of the type lookup. If non-null, its class loader is used
for resolving the type. If null, then the type returned is either
unresolved or a resolved type whose resolution is context free (e.g., a primitive
type or a type in a java.* package).index'th parameter typeLinkageError - if accessingClass != null and resolution failsdefault Kind getParameterKind(int index)
getParameterType(int, jdk.internal.jvmci.meta.ResolvedJavaType). getKind.index - the index into the parameters, with 0 indicating the first parameterJavaType getReturnType(ResolvedJavaType accessingClass)
accessingClass - the context of the type lookup. If non-null, its class loader is used
for resolving the type. If null, then the type returned is either
unresolved or a resolved type whose resolution is context free (e.g., a primitive
type or a type in a java.* package).LinkageError - if accessingClass != null and resolution failsdefault Kind getReturnKind()
getReturnType(jdk.internal.jvmci.meta.ResolvedJavaType).
getKind.default String toMethodDescriptor()
(ILjava/lang/String;D)V
default JavaType[] toParameterTypes(JavaType receiverType)
default Kind[] toParameterKinds(boolean receiver)