This class is used to hold an array of strings. More...
Public Member Functions | |
| StringArray () | |
| Create a new empty string array. | |
| void | add (String string) |
| Add a String to this. | |
| void | add (char character) |
| Add a character to this. | |
| void | add (String[] string) |
| Add a string array to this. | |
| boolean | isOne () |
| Test whether this matches one. | |
| boolean | isZero () |
| Test whether this matches zero. | |
| boolean | isMinusOne () |
| Test whether this matches minus 1. | |
| void | removeDoubleSuperscripts () |
| Remove double superscripts. | |
Static Private Attributes | |
| static final long | serialVersionUID = 1L |
This class is used to hold an array of strings.
It is really just a Vector of Vectors of String objects, with a few additional functions. Its main purpose is to hold HTML in a way that allows us to efficiently find the positions at which a Caret makes sense.
| jscicalc.StringArray.StringArray | ( | ) |
Create a new empty string array.
Referenced by jscicalc.expression.Product.toHTMLParenString(), jscicalc.complex.Complex.toHTMLParenString(), jscicalc.expression.Product.toHTMLParenStringL(), jscicalc.expression.Variable.toHTMLSubString(), jscicalc.expression.Sum.toHTMLSubString(), jscicalc.expression.Product.toHTMLSubString(), jscicalc.expression.Power.toHTMLSubString(), jscicalc.expression.Monadic.toHTMLSubString(), jscicalc.expression.Factorial.toHTMLSubString(), jscicalc.complex.Complex.toHTMLSubString(), and jscicalc.complex.Complex.tryHTMLString().
| void jscicalc.StringArray.add | ( | String | string | ) |
Add a String to this.
Wraps the string as a Vector<String> first.
| string | The String to be added |
Referenced by jscicalc.StringArray.add(), jscicalc.OObject.toHTMLParenString(), jscicalc.complex.Complex.toHTMLParenString(), jscicalc.expression.Sum.toHTMLSubString(), jscicalc.expression.Product.toHTMLSubString(), and jscicalc.OObject.toHTMLSubString().
| void jscicalc.StringArray.add | ( | char | character | ) |
Add a character to this.
Wraps the character as a Vector<String> first.
| character | The character to be added |
References jscicalc.StringArray.add().
| void jscicalc.StringArray.add | ( | String[] | string | ) |
Add a string array to this.
Converts the string array to a Vector<String> first.
| string | The string array to be added |
References jscicalc.StringArray.add().
| boolean jscicalc.StringArray.isMinusOne | ( | ) |
Test whether this matches minus 1.
| boolean jscicalc.StringArray.isOne | ( | ) |
Test whether this matches one.
| boolean jscicalc.StringArray.isZero | ( | ) |
Test whether this matches zero.
| void jscicalc.StringArray.removeDoubleSuperscripts | ( | ) |
Remove double superscripts.
Referenced by jscicalc.DisplayLabel.setExpression().
final long jscicalc.StringArray.serialVersionUID = 1L [static, private] |
1.7.1