FileDocCategorySizeDatePackage
TypeBearer.javaAPI DocAndroid 5.1 API2397Thu Mar 12 22:18:30 GMT 2015com.android.dexgen.rop.type

TypeBearer

public interface TypeBearer implements com.android.dexgen.util.ToHuman
Object which has an associated type, possibly itself.

Fields Summary
Constructors Summary
Methods Summary
public intgetBasicFrameType()
Gets the basic type corresponding to this instance's frame type. This is equivalent to {@code getFrameType().getBasicType()}, and is the same as calling {@code getFrameType()} unless this instance is an int-like type, in which case this method returns {@code BT_INT}.

see
#getBasicType
see
#getFrameType
return
the basic frame type; one of the {@code BT_*} constants defined by {@link Type}

public intgetBasicType()
Gets the basic type corresponding to this instance.

return
the basic type; one of the {@code BT_*} constants defined by {@link Type}

public com.android.dexgen.rop.type.TypeBearergetFrameType()
Gets the frame type corresponding to this type. This method returns {@code this}, except if {@link Type#isIntlike} on the underlying type returns {@code true} but the underlying type is not in fact {@link Type#INT}, in which case this method returns an instance whose underlying type is {@code INT}.

return
{@code non-null;} the frame type for this instance

public TypegetType()
Gets the type associated with this instance.

return
{@code non-null;} the type

public booleanisConstant()
Returns whether this instance represents a constant value.

return
{@code true} if this instance represents a constant value and {@code false} if not