Top Description Methods
org.droidparts.dexmaker.dx.rop.type

public Interface TypeBearer

extends ToHuman
Known Direct Implementers
org.droidparts.dexmaker.dx.rop.code.RegisterSpec, org.droidparts.dexmaker.dx.rop.cst.TypedConstant, org.droidparts.dexmaker.dx.rop.type.Type
Imports
org.droidparts.dexmaker.dx.util.ToHuman

Object which has an associated type, possibly itself.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

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

Gets the basic type corresponding to this instance's frame type.

public int

Returns:

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

Gets the basic type corresponding to this instance.

public TypeBearer

Returns:

non-null; the frame type for this instance
getFrameType
()

Gets the frame type corresponding to this type.

public Type

Returns:

non-null; the type
getType
()

Gets the type associated with this instance.

public boolean

Returns:

true if this instance represents a constant value and false if not
isConstant
()

Returns whether this instance represents a constant value.

Inherited from org.droidparts.dexmaker.dx.util.ToHuman:
toHuman

Method Detail

getBasicFrameTypeback to summary
public int 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

See Also
getBasicType, getFrameType
getBasicTypeback to summary
public int 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 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.

Returns:TypeBearer

non-null; the frame type for this instance

getTypeback to summary
public Type getType()

Gets the type associated with this instance.

Returns:Type

non-null; the type

isConstantback to summary
public boolean isConstant()

Returns whether this instance represents a constant value.

Returns:boolean

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