|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tue.win.riaca.openmath.lang.OMObject
nl.tue.win.riaca.openmath.lang.OMInteger
Models an OpenMath integer.
Field Summary | |
protected java.lang.String |
integer
Stores the integer. |
Fields inherited from class nl.tue.win.riaca.openmath.lang.OMObject |
attributes |
Constructor Summary | |
OMInteger()
Constructor. |
|
OMInteger(int newInteger)
Constructor. |
|
OMInteger(java.lang.Integer newInteger)
Constructor. |
|
OMInteger(long newLong)
Constructor. |
|
OMInteger(java.lang.Long newLong)
Constructor. |
|
OMInteger(java.lang.String newInteger)
Constructor. |
Method Summary | |
java.lang.Object |
clone()
Clones the object (shallow copy). |
java.lang.Object |
copy()
Copies the object (full copy). |
java.lang.String |
getInteger()
Get the integer. |
java.lang.String |
getType()
Gets the type. |
int |
intValue()
Returns the integer as an int. |
boolean |
isAtom()
Is this an atom object. |
boolean |
isComposite()
Is this a composite object. |
boolean |
isSame(OMObject object)
Determines if this is the same object. |
boolean |
isValid()
Determines if this object is valid. |
long |
longValue()
Return the integer as a long. |
void |
setInteger(int newInteger)
Set the integer. |
void |
setInteger(java.lang.Integer newInteger)
Set the integer. |
void |
setInteger(long newLong)
Set the integer. |
void |
setInteger(java.lang.Long newLong)
Set the integer. |
void |
setInteger(java.lang.String newInteger)
Set the integer. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class nl.tue.win.riaca.openmath.lang.OMObject |
getAttribute, getAttributes, removeAttribute, setAttribute, setAttributes |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String integer
Constructor Detail |
public OMInteger()
public OMInteger(java.lang.String newInteger)
newInteger
- the integer to set (as a string).public OMInteger(long newLong)
newLong
- the long to use for this OpenMath integer.public OMInteger(int newInteger)
newInteger
- the int to use for this OpenMath integer.public OMInteger(java.lang.Long newLong)
newLong
- the Long to use for this OpenMath integer.public OMInteger(java.lang.Integer newInteger)
newInteger
- the Integer to use for this OpenMath integer.Method Detail |
public java.lang.String getType()
getType
in class OMObject
public void setInteger(java.lang.String newInteger)
newInteger
- the integer to set (as string).public void setInteger(java.lang.Long newLong)
newLong
- the integer to set (as Long).public void setInteger(java.lang.Integer newInteger)
newInteger
- the integer to set (as Integer).public void setInteger(long newLong)
newLong
- the integer to set (as Long).public void setInteger(int newInteger)
newInteger
- the integer to set (as int).public java.lang.String getInteger()
public long longValue()
public int intValue()
public boolean isAtom()
isAtom
in class OMObject
public boolean isComposite()
isComposite
in class OMObject
public java.lang.String toString()
toString
in class OMObject
public java.lang.Object clone()
clone
in class OMObject
public java.lang.Object copy()
copy
in class OMObject
public boolean isSame(OMObject object)
isSame
in class OMObject
object
- the object to test against.
public boolean isValid()
isValid
in class OMObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |