Top Description Inners Fields Constructors Methods
jdk.vm.ci.meta

public abstract Class ValueKind<K extends ValueKind<K>>

extends Object
Class Inheritance
Known Direct Subclasses
jdk.vm.ci.meta.ValueKind.IllegalValueKind

Represents the type of values. This class can be extended by compilers to track additional information about values.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum
private static class

Field Summary

Modifier and TypeField and Description
public static final ValueKind<?>
Illegal

The non-type.

private final PlatformKind

Constructor Summary

AccessConstructor and Description
public
ValueKind(PlatformKind platformKind)

Method Summary

Modifier and TypeMethod and Description
public abstract K
changeType(PlatformKind newPlatformKind)

Create a new ValueKind with a different PlatformKind.

public String
getKindSuffix()

Returns a String representation of the kind, which will be included at the end of Value#toString() implementation.

public final PlatformKind
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

Illegalback to summary
public static final ValueKind<?> Illegal

The non-type.

platformKindback to summary
private final PlatformKind platformKind

Constructor Detail

ValueKindback to summary
public ValueKind(PlatformKind platformKind)

Method Detail

changeTypeback to summary
public abstract K changeType(PlatformKind newPlatformKind)

Create a new ValueKind with a different PlatformKind. Subclasses must override this to preserve the additional information added by the compiler.

getKindSuffixback to summary
public String getKindSuffix()

Returns a String representation of the kind, which will be included at the end of Value#toString() implementation. Defaults to toString() but can be overridden to provide something more specific.

getPlatformKindback to summary
public final PlatformKind getPlatformKind()
jdk.vm.ci.meta back to summary

private final Enum ValueKind.IllegalKind

extends Enum<ValueKind.IllegalKind>
implements PlatformKind
Class Inheritance
All Implemented Interfaces
jdk.vm.ci.meta.PlatformKind

Field Summary

Modifier and TypeField and Description
public static final ValueKind.IllegalKind
private final PlatformKind.EnumKey<ValueKind.IllegalKind>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public PlatformKind.Key
getKey()

Implements jdk.vm.ci.meta.PlatformKind.getKey.

Gets a value associated with this object that can be used as a stable key in a map.

public int
getSizeInBytes()

Implements jdk.vm.ci.meta.PlatformKind.getSizeInBytes.

Get the size in bytes of this PlatformKind.

public char
getTypeChar()

Implements jdk.vm.ci.meta.PlatformKind.getTypeChar.

Gets a single type char that identifies this type for use in debug output.

public int
getVectorLength()

Implements jdk.vm.ci.meta.PlatformKind.getVectorLength.

Returns how many primitive values fit in this PlatformKind.

public static ValueKind.IllegalKind
public static ValueKind.IllegalKind[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ILLEGALback to summary
public static final ValueKind.IllegalKind ILLEGAL
keyback to summary
private final PlatformKind.EnumKey<ValueKind.IllegalKind> key

Constructor Detail

IllegalKindback to summary
private IllegalKind()

Method Detail

getKeyback to summary
public PlatformKind.Key getKey()

Implements jdk.vm.ci.meta.PlatformKind.getKey.

Doc from jdk.vm.ci.meta.PlatformKind.getKey.

Gets a value associated with this object that can be used as a stable key in a map. The Object#hashCode() implementation of the returned value should be stable between VM executions.

Annotations
@Override
getSizeInBytesback to summary
public int getSizeInBytes()

Implements jdk.vm.ci.meta.PlatformKind.getSizeInBytes.

Doc from jdk.vm.ci.meta.PlatformKind.getSizeInBytes.

Get the size in bytes of this PlatformKind.

Annotations
@Override
getTypeCharback to summary
public char getTypeChar()

Implements jdk.vm.ci.meta.PlatformKind.getTypeChar.

Doc from jdk.vm.ci.meta.PlatformKind.getTypeChar.

Gets a single type char that identifies this type for use in debug output.

Annotations
@Override
getVectorLengthback to summary
public int getVectorLength()

Implements jdk.vm.ci.meta.PlatformKind.getVectorLength.

Doc from jdk.vm.ci.meta.PlatformKind.getVectorLength.

Returns how many primitive values fit in this PlatformKind. For scalar types this is one, for SIMD types it may be higher.

Annotations
@Override
valueOfback to summary
public static ValueKind.IllegalKind valueOf(String name)
valuesback to summary
public static ValueKind.IllegalKind[] values()
jdk.vm.ci.meta back to summary

private Class ValueKind.IllegalValueKind

extends ValueKind<ValueKind.IllegalValueKind>
Class Inheritance

Field Summary

Inherited from jdk.vm.ci.meta.ValueKind:
Illegal

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ValueKind.IllegalValueKind
changeType(PlatformKind newPlatformKind)

Implements abstract jdk.vm.ci.meta.ValueKind.changeType.

Create a new ValueKind with a different PlatformKind.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from jdk.vm.ci.meta.ValueKind:
getKindSuffixgetPlatformKind

Constructor Detail

IllegalValueKindback to summary
pack-priv IllegalValueKind()

Method Detail

changeTypeback to summary
public ValueKind.IllegalValueKind changeType(PlatformKind newPlatformKind)

Implements abstract jdk.vm.ci.meta.ValueKind.changeType.

Doc from jdk.vm.ci.meta.ValueKind.changeType.

Create a new ValueKind with a different PlatformKind. Subclasses must override this to preserve the additional information added by the compiler.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override