Top Description Constructors Methods
org.droidparts.dexmaker.dx.rop.cst

public abstract Class TypedConstant

extends Constant
implements TypeBearer
Class Inheritance
All Implemented Interfaces
org.droidparts.dexmaker.dx.rop.type.TypeBearer, org.droidparts.dexmaker.dx.util.ToHuman
Known Direct Subclasses
org.droidparts.dexmaker.dx.rop.cst.CstLiteralBits, org.droidparts.dexmaker.dx.rop.cst.CstMemberRef, org.droidparts.dexmaker.dx.rop.cst.CstString, org.droidparts.dexmaker.dx.rop.cst.CstType
Imports
org.droidparts.dexmaker.dx.rop.type.TypeBearer

Base class for constants which implement TypeBearer.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final int
getBasicFrameType()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.getBasicFrameType.

Gets the basic type corresponding to this instance's frame type.
public final int
getBasicType()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.getBasicType.

Gets the basic type corresponding to this instance.
public final TypeBearer
getFrameType()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.getFrameType.

Gets the frame type corresponding to this type.
public final boolean
isConstant()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.isConstant.

Returns whether this instance represents a constant value.
Inherited from org.droidparts.dexmaker.dx.rop.cst.Constant:
compareTocompareTo0isCategory2typeName

Constructor Detail

TypedConstantback to summary
public TypedConstant()

Method Detail

getBasicFrameTypeback to summary
public final int getBasicFrameType()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.getBasicFrameType.

Doc from org.droidparts.dexmaker.dx.rop.type.TypeBearer.getBasicFrameType.

Gets the basic type corresponding to this instance's frame type. This is equivalent to 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.

Returns:int

the basic frame type; one of the BT_* constants defined by Type

getBasicTypeback to summary
public final int getBasicType()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.getBasicType.

Doc from org.droidparts.dexmaker.dx.rop.type.TypeBearer.getBasicType.

Gets the basic type corresponding to this instance.

Returns:int

the basic type; one of the BT_* constants defined by Type

getFrameTypeback to summary
public final TypeBearer getFrameType()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.getFrameType.

Doc from org.droidparts.dexmaker.dx.rop.type.TypeBearer.getFrameType.

Gets the frame type corresponding to this type. This method returns 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.

Returns:TypeBearer

non-null; the frame type for this instance

isConstantback to summary
public final boolean isConstant()

Implements org.droidparts.dexmaker.dx.rop.type.TypeBearer.isConstant.

Doc from org.droidparts.dexmaker.dx.rop.type.TypeBearer.isConstant.

Returns whether this instance represents a constant value.

Returns:boolean

true if this instance represents a constant value and false if not