edu.buffalo.fs7.mathlib
Class StringArgument
java.lang.Object
|
+--edu.buffalo.fs7.mathlib.MathObject
|
+--edu.buffalo.fs7.mathlib.Argument
|
+--edu.buffalo.fs7.mathlib.StringArgument
- All Implemented Interfaces:
- java.lang.Cloneable
- public class StringArgument
- extends Argument
Class representing a string in the MathObject structure. It can be parsed
with the syntax "abc".
- See Also:
Tokenizer,
Parse
|
Field Summary |
protected java.lang.String |
string
holds teh string |
|
Method Summary |
java.lang.Object |
clone()
clone method |
boolean |
equals(MathObject o1)
equality predicate |
java.lang.String |
toParseableString()
returns the StringArgument as a parsable string, i.e. |
java.lang.String |
toString()
returns the StringArgument as a string, i.e. abc |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
string
protected java.lang.String string
- holds teh string
StringArgument
public StringArgument(java.lang.String string)
- creates a string argument from a given string
StringArgument
public StringArgument(MathObject o)
- clone constructor
clone
public java.lang.Object clone()
- clone method
- Overrides:
clone in class MathObject
toString
public java.lang.String toString()
- returns the StringArgument as a string, i.e. abc
- Overrides:
toString in class MathObject
- Following copied from class:
edu.buffalo.fs7.mathlib.MathObject
- See Also:
MathObject.toParseableString()
toParseableString
public java.lang.String toParseableString()
- returns the StringArgument as a parsable string, i.e. "abc"
- Overrides:
toParseableString in class MathObject
- Following copied from class:
edu.buffalo.fs7.mathlib.MathObject
- See Also:
MathObject.toString()
equals
public boolean equals(MathObject o1)
- equality predicate
- Overrides:
equals in class Argument