public class IntegerValue extends Value
Modifier and Type | Method and Description |
---|---|
BigInteger |
bigIntValue()
bigIntValue
|
int |
bitLength()
bitLength
|
byte |
byteValue()
byteValue
|
int |
getBitWidth()
getBitWidth
|
String |
getTypeInfo()
getTypeInfo
|
int |
intValue()
intValue
|
boolean |
isNegative()
isNegative
|
boolean |
isSigned()
isSigned
|
long |
longValue()
longValue
|
static Value |
parse(URIString pUriStr)
Parses an untyped integer value.
|
static Value |
parseSigned(URIString pUriStr,
int pBitWidth)
parseSigned
|
static Value |
parseUnsigned(URIString pUriStr,
int pBitWidth)
parseUnsigned
|
short |
shortValue()
shortValue
|
String |
toString() |
public static Value parse(URIString pUriStr)
pUriStr
- Value
public static Value parseUnsigned(URIString pUriStr, int pBitWidth) throws IllegalArgumentException
pUriStr
- pBitWidth
- IllegalArgumentException
- if parsing failed.public static Value parseSigned(URIString pUriStr, int pBitWidth) throws IllegalArgumentException
pUriStr
- pBitWidth
- IllegalArgumentException
- if parsing failed.public byte byteValue()
public short shortValue()
public int intValue()
public long longValue()
public BigInteger bigIntValue()
public boolean isNegative()
true
if the number is negativepublic boolean isSigned()
true
if the number is signed integerpublic int bitLength()
public int getBitWidth()
public String toString()
toString
in class Object
Object.toString()
public String getTypeInfo()
Value
getTypeInfo
in class Value
Value.getTypeInfo()
Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.