public abstract class TypedConstant extends Constant implements TypeBearer
TypeBearer.| Constructor and Description |
|---|
TypedConstant() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBasicFrameType()
Gets the basic type corresponding to this instance's frame type.
|
int |
getBasicType()
Gets the basic type corresponding to this instance.
|
TypeBearer |
getFrameType()
Gets the frame type corresponding to this type.
|
boolean |
isConstant()
Returns whether this instance represents a constant value.
|
compareTo, compareTo0, isCategory2, typeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic final TypeBearer getFrameType()
this, except if Type.isIntlike() on the underlying
type returns true but the underlying type is not in
fact Type.INT, in which case this method returns an instance
whose underlying type is INT.
This implementation always returns this.getFrameType in interface TypeBearernon-null; the frame type for this instancepublic final int getBasicType()
getBasicType in interface TypeBearerBT_* constants
defined by Typepublic final int getBasicFrameType()
getFrameType().getBasicType(), and
is the same as calling getFrameType() unless this
instance is an int-like type, in which case this method returns
BT_INT.getBasicFrameType in interface TypeBearerBT_* constants
defined by TypeTypeBearer.getBasicType(),
TypeBearer.getFrameType()public final boolean isConstant()
isConstant in interface TypeBearertrue if this instance represents a constant value
and false if notCopyright © 2020. All Rights Reserved.