public abstract class CstLiteralBits extends TypedConstant
| Constructor and Description |
|---|
CstLiteralBits() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
fitsIn16Bits()
Returns true if this value can fit in 16 bits with sign-extension.
|
boolean |
fitsIn8Bits()
Returns true if this value can fit in 8 bits with sign-extension.
|
abstract boolean |
fitsInInt()
Returns whether or not this instance's value may be accurately
represented as an
int. |
abstract int |
getIntBits()
Gets the value as
int bits. |
abstract long |
getLongBits()
Gets the value as
long bits. |
getBasicFrameType, getBasicType, getFrameType, isConstantcompareTo, compareTo0, isCategory2, typeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic abstract boolean fitsInInt()
int. The rule is that if there
is an int which may be sign-extended to yield this
instance's value, then this method returns true.
Otherwise, it returns false.true iff this instance fits in an intpublic abstract int getIntBits()
int bits. If this instance contains
more bits than fit in an int, then this returns only
the low-order bits.public abstract long getLongBits()
long bits. If this instance contains
fewer bits than fit in a long, then the result of this
method is the sign extension of the value.public boolean fitsIn16Bits()
public boolean fitsIn8Bits()
Copyright © 2020. All Rights Reserved.