public class IntegerValue extends Value
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
bigIntValue()
bigIntValue
|
int |
bitLength()
bitLength
|
byte |
byteValue()
byteValue
|
int |
getBitWidth()
getBitWidth
|
java.lang.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
|
java.lang.String |
toString() |
public static Value parse(URIString pUriStr)
pUriStr - Valuepublic static Value parseUnsigned(URIString pUriStr, int pBitWidth) throws java.lang.IllegalArgumentException
pUriStr - pBitWidth - java.lang.IllegalArgumentException - if parsing failed.public static Value parseSigned(URIString pUriStr, int pBitWidth) throws java.lang.IllegalArgumentException
pUriStr - pBitWidth - java.lang.IllegalArgumentException - if parsing failed.public byte byteValue()
public short shortValue()
public int intValue()
public long longValue()
public java.math.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getTypeInfo()
ValuegetTypeInfo in class ValueValue.getTypeInfo()Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.