Class StringValue
java.lang.Object
org.opensourcephysics.ejs.control.value.Value
org.opensourcephysics.ejs.control.value.StringValue
A
StringValue
is a Value
object that
holds a String value.
- See Also:
-
Field Summary
FieldsFields inherited from class org.opensourcephysics.ejs.control.value.Value
type, TYPE_BOOLEAN, TYPE_DOUBLE, TYPE_EXPRESSION, TYPE_INTEGER, TYPE_OBJECT, TYPE_STRING, VALUE_FALSE, VALUE_NULL, VALUE_TRUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of the variable as a booleandouble
Returns the value of the variable as a doubleint
Returns the value of the variable as an intReturns the value of the variable as an Object.Returns the value of the variable as a StringMethods inherited from class org.opensourcephysics.ejs.control.value.Value
cloneValue, copyValue, getType, parseConstant, parseConstantOrArray, toString
-
Field Details
-
value
-
-
Constructor Details
-
StringValue
Constructor StringValue- Parameters:
_val
-
-
-
Method Details
-
getBoolean
public boolean getBoolean()Description copied from class:Value
Returns the value of the variable as a boolean- Specified by:
getBoolean
in classValue
-
getInteger
public int getInteger()Description copied from class:Value
Returns the value of the variable as an int- Specified by:
getInteger
in classValue
-
getDouble
public double getDouble()Description copied from class:Value
Returns the value of the variable as a double -
getString
Description copied from class:Value
Returns the value of the variable as a String -
getObject
Description copied from class:Value
Returns the value of the variable as an Object. Ideal for arrays!
-