public interface MetaAccessProvider
Modifier and Type | Method and Description |
---|---|
int |
decodeDebugId(JavaConstant constant) |
DeoptimizationAction |
decodeDeoptAction(JavaConstant constant) |
DeoptimizationReason |
decodeDeoptReason(JavaConstant constant) |
JavaConstant |
encodeDeoptActionAndReason(DeoptimizationAction action,
DeoptimizationReason reason,
int debugId)
Encodes a deoptimization action and a deoptimization reason in an integer value.
|
long |
getMemorySize(JavaConstant constant)
Returns the number of bytes occupied by this constant value or constant object.
|
ResolvedJavaField |
lookupJavaField(Field reflectionField)
Provides the
ResolvedJavaField for a Field obtained via reflection. |
ResolvedJavaMethod |
lookupJavaMethod(Executable reflectionMethod)
|
ResolvedJavaType |
lookupJavaType(Class<?> clazz)
Returns the resolved Java type representing a given Java class.
|
ResolvedJavaType |
lookupJavaType(JavaConstant constant)
Returns the resolved Java type of the given
JavaConstant object. |
default ResolvedJavaType[] |
lookupJavaTypes(Class<?>[] classes)
Returns the resolved Java types representing some given Java classes.
|
Signature |
parseMethodDescriptor(String methodDescriptor)
Parses a method
descriptor into a
Signature . |
ResolvedJavaType lookupJavaType(Class<?> clazz)
clazz
- the Java class objectdefault ResolvedJavaType[] lookupJavaTypes(Class<?>[] classes)
classes
- the Java class objectsResolvedJavaMethod lookupJavaMethod(Executable reflectionMethod)
ResolvedJavaField lookupJavaField(Field reflectionField)
ResolvedJavaField
for a Field
obtained via reflection.ResolvedJavaType lookupJavaType(JavaConstant constant)
JavaConstant
object.null
if constant.isNull() || !constant.kind.isObject()
long getMemorySize(JavaConstant constant)
constant
- the constant whose bytes should be measuredSignature parseMethodDescriptor(String methodDescriptor)
Signature
. The behavior of this method is undefined if the
method descriptor is not well formed.JavaConstant encodeDeoptActionAndReason(DeoptimizationAction action, DeoptimizationReason reason, int debugId)
debugId
- an integer that can be used to track the origin of a deoptimization at
runtime. There is no guarantee that the runtime will use this value. The runtime
may even keep fewer than 32 bits.DeoptimizationReason decodeDeoptReason(JavaConstant constant)
DeoptimizationAction decodeDeoptAction(JavaConstant constant)
int decodeDebugId(JavaConstant constant)