edu.buffalo.fs7.mathlib
Class MathObject
java.lang.Object
|
+--edu.buffalo.fs7.mathlib.MathObject
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- Argument, Assignment, Delimiter, MathMap, Operator, Separator, Variable
- public class MathObject
- extends java.lang.Object
- implements java.lang.Cloneable
Generic class for mathematical entities in the mathlib package.
Arguments like complex numbers as well as operators are derived from this
object. It is intensely used by the Parse and the Tokenizer
objects.
- See Also:
Parse,
Tokenizer,
Complex
|
Field Summary |
static Mathlib |
mathlib
holds a reference to an instantiated Mathlib object. |
|
Method Summary |
java.lang.Object |
clone()
clone method |
java.lang.String |
toParseableString()
returns a parseable representation of the object |
java.lang.String |
toString()
returns a string representation of the object (not necessarily parseable). |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mathlib
public static Mathlib mathlib
- holds a reference to an instantiated Mathlib object.
MathObject
public MathObject()
- generic constructor
MathObject
public MathObject(MathObject o)
- clone instructor
clone
public java.lang.Object clone()
- clone method
- Overrides:
clone in class java.lang.Object
toString
public java.lang.String toString()
- returns a string representation of the object (not necessarily parseable).
- Overrides:
toString in class java.lang.Object
- See Also:
toParseableString()
toParseableString
public java.lang.String toParseableString()
- returns a parseable representation of the object
- See Also:
toString()