Fields Summary |
---|
private static final CstInteger[] | cachenon-null; array of cached instances |
public static final CstInteger | VALUE_M1non-null; instance representing -1 |
public static final CstInteger | VALUE_0non-null; instance representing 0 |
public static final CstInteger | VALUE_1non-null; instance representing 1 |
public static final CstInteger | VALUE_2non-null; instance representing 2 |
public static final CstInteger | VALUE_3non-null; instance representing 3 |
public static final CstInteger | VALUE_4non-null; instance representing 4 |
public static final CstInteger | VALUE_5non-null; instance representing 5 |
Methods Summary |
---|
public com.android.dx.rop.type.Type | getType(){@inheritDoc}
return Type.INT;
|
public int | getValue()Gets the int value.
return getIntBits();
|
public static com.android.dx.rop.cst.CstInteger | make(int value)Makes an instance for the given value. This may (but does not
necessarily) return an already-allocated instance.
/*
* Note: No need to synchronize, since we don't make any sort
* of guarantee about ==, and it's okay to overwrite existing
* entries too.
*/
int idx = (value & 0x7fffffff) % cache.length;
CstInteger obj = cache[idx];
if ((obj != null) && (obj.getValue() == value)) {
return obj;
}
obj = new CstInteger(value);
cache[idx] = obj;
return obj;
|
public java.lang.String | toHuman(){@inheritDoc}
return Integer.toString(getIntBits());
|
public java.lang.String | toString(){@inheritDoc}
int value = getIntBits();
return "int{0x" + Hex.u4(value) + " / " + value + '}";
|
public java.lang.String | typeName(){@inheritDoc}
return "int";
|