cdqa.object
Class XInteger
java.lang.Object
cdqa.object.XObject
cdqa.object.XAtomic
cdqa.object.XNumber
cdqa.object.XInteger
public final class XInteger
- extends XNumber
class XInteger extends XNumber
- Author:
- simonkm
Methods inherited from class cdqa.object.XAtomic |
createDOMClone, fullText, getDocumentElement, getNodeName, getOwnerDocument, getParentNode, isAtomic, isDOM, pathTo, print, shortText |
Methods inherited from class cdqa.object.XObject |
asBoolean, asDouble, asInteger, asString, getFullText, getLabel, isEND, isFALSE, isTRUE, theENDObject, valueCompare |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getValue
public int getValue()
getType
public short getType()
- Description copied from class:
XObject
- Returns the type of this object.
see the enumeration in XObject class
- Specified by:
getType
in class XObject
negate
public XNumber negate()
- Specified by:
negate
in class XNumber
booleanValue
boolean booleanValue()
throws CastException
- Specified by:
booleanValue
in class XObject
- Throws:
CastException
intValue
int intValue()
throws CastException
- Specified by:
intValue
in class XObject
- Throws:
CastException
doubleValue
double doubleValue()
throws CastException
- Specified by:
doubleValue
in class XObject
- Throws:
CastException
stringValue
java.lang.String stringValue()
- Specified by:
stringValue
in class XObject
valueCompare
public boolean valueCompare(XObject o)
- Specified by:
valueCompare
in class XObject
create
public static XInteger create(int i)
create
public static XInteger create(java.lang.Integer i)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object