public class HotSpotSignature extends Object implements Signature
Modifier and Type | Field and Description |
---|---|
private String |
originalString |
private List<String> |
parameters |
private ResolvedJavaType[] |
parameterTypes |
private String |
returnType |
private ResolvedJavaType |
returnTypeCache |
private HotSpotJVMCIRuntimeProvider |
runtime |
Constructor and Description |
---|
HotSpotSignature(HotSpotJVMCIRuntimeProvider runtime,
ResolvedJavaType returnType,
ResolvedJavaType... parameterTypes) |
HotSpotSignature(HotSpotJVMCIRuntimeProvider runtime,
String signature) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
checkValidCache(ResolvedJavaType type,
ResolvedJavaType accessingClass) |
boolean |
equals(Object obj) |
int |
getParameterCount(boolean withReceiver) |
Kind |
getParameterKind(int index) |
JavaType |
getParameterType(int index,
ResolvedJavaType accessingClass) |
Kind |
getReturnKind() |
JavaType |
getReturnType(ResolvedJavaType accessingClass) |
private static JavaType |
getUnresolvedOrPrimitiveType(HotSpotJVMCIRuntimeProvider runtime,
String name) |
int |
hashCode() |
private static int |
parseSignature(String signature,
int start) |
String |
toMethodDescriptor() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toParameterKinds, toParameterTypes
private final List<String> parameters
private final String returnType
private final String originalString
private ResolvedJavaType[] parameterTypes
private ResolvedJavaType returnTypeCache
private final HotSpotJVMCIRuntimeProvider runtime
public HotSpotSignature(HotSpotJVMCIRuntimeProvider runtime, String signature)
public HotSpotSignature(HotSpotJVMCIRuntimeProvider runtime, ResolvedJavaType returnType, ResolvedJavaType... parameterTypes)
private static int parseSignature(String signature, int start)
public int getParameterCount(boolean withReceiver)
getParameterCount
in interface Signature
public Kind getParameterKind(int index)
getParameterKind
in interface Signature
private static boolean checkValidCache(ResolvedJavaType type, ResolvedJavaType accessingClass)
private static JavaType getUnresolvedOrPrimitiveType(HotSpotJVMCIRuntimeProvider runtime, String name)
public JavaType getParameterType(int index, ResolvedJavaType accessingClass)
getParameterType
in interface Signature
public String toMethodDescriptor()
toMethodDescriptor
in interface Signature
public Kind getReturnKind()
getReturnKind
in interface Signature
public JavaType getReturnType(ResolvedJavaType accessingClass)
getReturnType
in interface Signature