Class Scalar
java.lang.Object
com.ibm.j9ddr.vm29.j9.DataType
com.ibm.j9ddr.vm29.types.Scalar
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
protected long
protected String
Fields declared in class com.ibm.j9ddr.vm29.j9.DataType
BITFIELD_FORMAT, pointerPackageName, process, SIZEOF_BOOL, structurePackageName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
allBitsIn
(long bitmask) boolean
anyBitsIn
(long bitmask) byte
protected void
checkComparisonValid
(Scalar parameter) static UDATA
convertBytesToSlots
(UDATA size) static UDATA
convertSlotsToBytes
(UDATA size) boolean
eq
(long parameter) boolean
boolean
This is a class based equals.boolean
gt
(int parameter) boolean
gt
(long parameter) boolean
boolean
int
intValue()
abstract boolean
isSigned()
boolean
isZero()
long
boolean
lt
(int parameter) boolean
lt
(long parameter) boolean
boolean
boolean
maskAndCompare
(long bitmask, long compareValue) protected static UDATA
static UDATA
roundToSizeofU32
(UDATA value) static UDATA
roundToSizeofU64
(UDATA value) static UDATA
roundToSizeofUDATA
(UDATA value) static UDATA
roundToSizeToFJ9object
(UDATA value) static UDATA
short
protected boolean
abstract int
sizeof()
Methods declared in class com.ibm.j9ddr.vm29.j9.DataType
formatShortInteractive, getJ9RASPointer, getPointerPackageName, getProcess, getStructure, getStructure, getStructure, getStructurePackageName, init, setJ9RASPointer
-
Field Details
-
data
protected long data -
bitsPerBytes
protected static final int bitsPerBytes- See Also:
-
bitsPerLong
protected static final int bitsPerLong- See Also:
-
toStringPattern
-
-
Constructor Details
-
Scalar
public Scalar(long value) -
Scalar
-
Scalar
public Scalar()
-
-
Method Details
-
byteValue
public byte byteValue() -
shortValue
public short shortValue() -
intValue
public int intValue() -
longValue
public long longValue() -
getHexValue
-
equals
This is a class based equals. Objects can only be equal if they are the same class. It is meant for use with Hash based collections. I.E. U16.equals(I16) is never true, regardless of the values represented by the objects. For mathematical equality use .eq(Scalar) -
eq
-
eq
public boolean eq(long parameter) -
checkComparisonValid
-
gt
public boolean gt(int parameter) -
gt
public boolean gt(long parameter) -
lt
public boolean lt(int parameter) -
lt
public boolean lt(long parameter) -
isZero
public boolean isZero() -
gt
-
gte
-
lt
-
lte
-
convertBytesToSlots
-
convertSlotsToBytes
-
roundToSizeofUDATA
-
roundToSizeToObjectReference
-
roundToSizeofU32
-
roundToSizeofU64
-
roundToSizeToFJ9object
-
roundTo
-
allBitsIn
public final boolean allBitsIn(long bitmask) -
anyBitsIn
public boolean anyBitsIn(long bitmask) -
maskAndCompare
public boolean maskAndCompare(long bitmask, long compareValue) -
signBitSet
protected boolean signBitSet() -
sizeof
public abstract int sizeof() -
isSigned
public abstract boolean isSigned()
-