Public Member Functions | Static Private Attributes

jscicalc.StringArray Class Reference

This class is used to hold an array of strings. More...

List of all members.

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

Detailed Description

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.

Author:
J. D. Lamb
Version:
Revision:
1.3

Constructor & Destructor Documentation

jscicalc.StringArray.StringArray (  ) 

Member Function Documentation

void jscicalc.StringArray.add ( String  string  ) 
void jscicalc.StringArray.add ( char  character  ) 

Add a character to this.

Wraps the character as a Vector<String> first.

Parameters:
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.

Parameters:
string The string array to be added

References jscicalc.StringArray.add().

boolean jscicalc.StringArray.isMinusOne (  ) 

Test whether this matches minus 1.

Returns:
true or false according as this matches minus 1 or not
boolean jscicalc.StringArray.isOne (  ) 

Test whether this matches one.

Returns:
true or false according as this matches 1 or not
boolean jscicalc.StringArray.isZero (  ) 

Test whether this matches zero.

Returns:
true or false according as this matches zero or not
void jscicalc.StringArray.removeDoubleSuperscripts (  ) 

Remove double superscripts.

Referenced by jscicalc.DisplayLabel.setExpression().


Member Data Documentation

final long jscicalc.StringArray.serialVersionUID = 1L [static, private]

The documentation for this class was generated from the following file: