Top Description Fields Constructors Methods
jdk.vm.ci.hotspot

public final Class VMField

extends Object
Class Inheritance

Describes a C++ field exposed via HotSpotVMConfigAccess.

Field Summary

Modifier and TypeField and Description
public final long
address

If the represented field is static, this is its address.

public final String
name

Fully qualified name of the represented field (e.g., "Klass::_name").

public final long
offset

If the represented field is non-static, this is its offset within the containing structure.

public final String
type

The represented field's type (e.g., "Symbol*").

public final Object
value

Value of the field represented as a boxed boolean if its C++ type is bool otherwise as a boxed long; only valid for non-oop static fields.

Constructor Summary

AccessConstructor and Description
pack-priv
VMField(String name, String type, long offset, long address, Object value)

Creates a description of a non-static field.

Method Summary

Modifier and TypeMethod and Description
public boolean
isStatic()

Determines if the represented field is static.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

addressback to summary
public final long address

If the represented field is static, this is its address. Otherwise, this is 0.

nameback to summary
public final String name

Fully qualified name of the represented field (e.g., "Klass::_name").

offsetback to summary
public final long offset

If the represented field is non-static, this is its offset within the containing structure.

typeback to summary
public final String type

The represented field's type (e.g., "Symbol*"). This may be null.

valueback to summary
public final Object value

Value of the field represented as a boxed boolean if its C++ type is bool otherwise as a boxed long; only valid for non-oop static fields. This value is only captured once, during JVMCI initialization. If type cannot be meaningfully (e.g., a struct) or safely (e.g., an oop) expressed as a boxed object, this is null.

Constructor Detail

VMFieldback to summary
pack-priv VMField(String name, String type, long offset, long address, Object value)

Creates a description of a non-static field.

Annotations
@VMEntryPoint

Method Detail

isStaticback to summary
public boolean isStatic()

Determines if the represented field is static.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override