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

public final Class CstInteger

extends CstLiteral32
Class Inheritance
Imports
org.droidparts.dexmaker.dx.rop.type.Type, org.droidparts.dexmaker.dx.util.Hex

Constants of type CONSTANT_Integer_info.

Field Summary

Modifier and TypeField and Description
private static final CstInteger[]
cache

non-null; array of cached instances

public static final CstInteger
VALUE_0

non-null; instance representing 0

public static final CstInteger
VALUE_1

non-null; instance representing 1

public static final CstInteger
VALUE_2

non-null; instance representing 2

public static final CstInteger
VALUE_3

non-null; instance representing 3

public static final CstInteger
VALUE_4

non-null; instance representing 4

public static final CstInteger
VALUE_5

non-null; instance representing 5

public static final CstInteger
VALUE_M1

non-null; instance representing -1

Constructor Summary

AccessConstructor and Description
private
CstInteger(int
the int value
value
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public Type
getType()

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

Gets the type associated with this instance.
public int

Returns:

the value
getValue
()

Gets the int value.

public static CstInteger

Returns:

non-null; the appropriate instance
make
(int
the int value
value
)

Makes an instance for the given value.

public String
toHuman()

Implements org.droidparts.dexmaker.dx.util.ToHuman.toHuman.

Return the "human" string form of this instance.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public String
typeName()

Implements abstract org.droidparts.dexmaker.dx.rop.cst.Constant.typeName.

Returns the human name for the particular type of constant this instance is.
Inherited from org.droidparts.dexmaker.dx.rop.cst.CstLiteral32:
compareTo0equalsfitsInIntgetIntBitsgetLongBitshashCodeisCategory2

Field Detail

cacheback to summary
private static final CstInteger[] cache

non-null; array of cached instances

VALUE_0back to summary
public static final CstInteger VALUE_0

non-null; instance representing 0

VALUE_1back to summary
public static final CstInteger VALUE_1

non-null; instance representing 1

VALUE_2back to summary
public static final CstInteger VALUE_2

non-null; instance representing 2

VALUE_3back to summary
public static final CstInteger VALUE_3

non-null; instance representing 3

VALUE_4back to summary
public static final CstInteger VALUE_4

non-null; instance representing 4

VALUE_5back to summary
public static final CstInteger VALUE_5

non-null; instance representing 5

VALUE_M1back to summary
public static final CstInteger VALUE_M1

non-null; instance representing -1

Constructor Detail

CstIntegerback to summary
private CstInteger(int value)

Constructs an instance. This constructor is private; use make.

Parameters
value:int

the int value

Method Detail

getTypeback to summary
public Type getType()

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

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

Gets the type associated with this instance.

Returns:Type

non-null; the type

getValueback to summary
public int getValue()

Gets the int value.

Returns:int

the value

makeback to summary
public static CstInteger make(int value)

Makes an instance for the given value. This may (but does not necessarily) return an already-allocated instance.

Parameters
value:int

the int value

Returns:CstInteger

non-null; the appropriate instance

toHumanback to summary
public String toHuman()

Implements org.droidparts.dexmaker.dx.util.ToHuman.toHuman.

Doc from org.droidparts.dexmaker.dx.util.ToHuman.toHuman.

Return the "human" string form of this instance. This is generally less "debuggy" than toString().

Returns:String

non-null; the human string form

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
typeNameback to summary
public String typeName()

Implements abstract org.droidparts.dexmaker.dx.rop.cst.Constant.typeName.

Doc from org.droidparts.dexmaker.dx.rop.cst.Constant.typeName.

Returns the human name for the particular type of constant this instance is.

Returns:String

non-null; the name

Annotations
@Override