Methods Summary |
---|
public com.android.dx.rop.type.Type | getType(){@inheritDoc}
return Type.BOOLEAN;
|
public boolean | getValue()Gets the boolean value.
return (getIntBits() == 0) ? false : true;
|
public static com.android.dx.rop.cst.CstBoolean | make(boolean value)Makes an instance for the given value. This will return an
already-allocated instance.
return value ? VALUE_TRUE : VALUE_FALSE;
|
public static com.android.dx.rop.cst.CstBoolean | make(int value)Makes an instance for the given int value. This
will return an already-allocated instance.
if (value == 0) {
return VALUE_FALSE;
} else if (value == 1) {
return VALUE_TRUE;
} else {
throw new IllegalArgumentException("bogus value: " + value);
}
|
public java.lang.String | toHuman(){@inheritDoc}
return getValue() ? "true" : "false";
|
public java.lang.String | toString(){@inheritDoc}
return getValue() ? "boolean{true}" : "boolean{false}";
|
public java.lang.String | typeName(){@inheritDoc}
return "boolean";
|