- java.lang.Object
-
- com.ibm.j9ddr.vm29.j9.DataType
-
- com.ibm.j9ddr.vm29.types.Scalar
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
bitsPerBytes
protected static int
bitsPerLong
protected long
data
protected String
toStringPattern
-
Fields declared in class com.ibm.j9ddr.vm29.j9.DataType
BITFIELD_FORMAT, pointerPackageName, process, SIZEOF_BOOL, structurePackageName
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
allBitsIn(long bitmask)
boolean
anyBitsIn(long bitmask)
byte
byteValue()
protected void
checkComparisonValid(Scalar parameter)
static UDATA
convertBytesToSlots(UDATA size)
static UDATA
convertSlotsToBytes(UDATA size)
boolean
eq(long parameter)
boolean
eq(Scalar parameter)
boolean
equals(Object parameter)
This is a class based equals.String
getHexValue()
boolean
gt(int parameter)
boolean
gt(long parameter)
boolean
gt(Scalar parameter)
boolean
gte(Scalar parameter)
int
intValue()
abstract boolean
isSigned()
boolean
isZero()
boolean
lt(int parameter)
boolean
lt(long parameter)
boolean
lt(Scalar parameter)
boolean
lte(Scalar parameter)
boolean
maskAndCompare(long bitmask, long compareValue)
protected static UDATA
roundTo(UDATA value, long size)
static UDATA
roundToSizeofU32(UDATA value)
static UDATA
roundToSizeofU64(UDATA value)
static UDATA
roundToSizeofUDATA(UDATA value)
static UDATA
roundToSizeToFJ9object(UDATA value)
static UDATA
roundToSizeToObjectReference(UDATA value)
short
shortValue()
protected boolean
signBitSet()
abstract int
sizeof()
-
Methods declared in class com.ibm.j9ddr.vm29.j9.DataType
formatShortInteractive, getJ9RASPointer, getPointerPackageName, getProcess, getStructure, getStructure, getStructure, getStructurePackageName, init, longValue, setJ9RASPointer
-
-
-
-
Field Detail
-
data
protected long data
-
bitsPerBytes
protected static final int bitsPerBytes
- See Also:
- Constant Field Values
-
bitsPerLong
protected static final int bitsPerLong
- See Also:
- Constant Field Values
-
toStringPattern
protected String toStringPattern
-
-
Constructor Detail
-
Scalar
public Scalar(long value)
-
Scalar
public Scalar(Scalar value)
-
Scalar
public Scalar()
-
-
Method Detail
-
byteValue
public byte byteValue()
-
shortValue
public short shortValue()
-
intValue
public int intValue()
-
getHexValue
public String getHexValue()
-
equals
public boolean equals(Object parameter)
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)- Overrides:
equals
in classObject
- Parameters:
parameter
- Object the object to compare with this object.- Returns:
- boolean
true
if the object is the same as this objectfalse
if it is different from this object. - See Also:
Object.hashCode()
-
eq
public boolean eq(Scalar parameter)
-
eq
public boolean eq(long parameter)
-
checkComparisonValid
protected void checkComparisonValid(Scalar parameter)
-
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
public boolean gt(Scalar parameter)
-
gte
public boolean gte(Scalar parameter)
-
lt
public boolean lt(Scalar parameter)
-
lte
public boolean lte(Scalar parameter)
-
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()
-
-