private class FunctionEvaluator.Element
extends java.lang.Object
implements java.lang.Cloneable
String, a double, or 
 a char value.| Modifier and Type | Field and Description | 
|---|---|
| private double | nval | 
| private java.lang.String | sval | 
| static int | TT_CBRA | 
| static int | TT_COMMA | 
| static int | TT_NUMBER | 
| static int | TT_OBRA | 
| static int | TT_WORD | 
| int | ttype | 
| Constructor and Description | 
|---|
| Element(java.lang.String stringRepresentation)Creates a new  Elementinstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| private void | _setAttribute() | 
| java.lang.Object | clone()Clones the instance. | 
| double | getNumber()Gets the  doublevalue of the element. | 
| java.lang.String | getString()Gets the  Stringvalue of the element. | 
| java.lang.String | getStringRepresentation()Gets the  Stringrepresentation of the element. | 
| java.lang.String | toString()Returns a  Stringrepresentation of the object. | 
private java.lang.String sval
private double nval
public int ttype
public static final int TT_NUMBER
public static final int TT_WORD
public static final int TT_COMMA
public static final int TT_OBRA
public static final int TT_CBRA
public Element(java.lang.String stringRepresentation)
Element instance.stringRepresentation - a String value of the element being parsed.
                             The argument must have the leading and terminating whitespace
                             characters, if any, removed.private void _setAttribute()
public double getNumber()
                 throws java.lang.RuntimeException
double value of the element.double value of the elementjava.lang.RuntimeException - if the element is not of 
 type doublepublic java.lang.String getString()
                           throws java.lang.RuntimeException
String value of the element.String value of the elementjava.lang.RuntimeException - if the element is not of 
 type Stringpublic java.lang.String getStringRepresentation()
String representation of the element.
 This method can be called on any element, also for elements
 representing a double number.String representation of the elementpublic java.lang.String toString()
String representation of the object.toString in class java.lang.ObjectString representation of the objectpublic java.lang.Object clone()
clone in class java.lang.Object