|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.ejs.control.value.Value
org.opensourcephysics.ejs.control.value.ExpressionValue
public class ExpressionValue
A ExpressionValue is a Value object that
holds an expression is parsed into a double.
Value| Constructor Summary | |
|---|---|
ExpressionValue(java.lang.String _expression,
GroupControl _group)
Constructor ExpressionValue |
|
| Method Summary | |
|---|---|
Value |
cloneValue()
Clones one value into another |
void |
copyValue(Value _source)
Copies one value into another |
boolean |
getBoolean()
Returns the value of the variable as a boolean |
double |
getDouble()
Returns the value of the variable as a double |
int |
getInteger()
Returns the value of the variable as an int |
java.lang.Object |
getObject()
Returns the value of the variable as an Object. |
java.lang.String |
getString()
Returns the value of the variable as a String |
void |
setExpression(java.lang.String _expression)
|
| Methods inherited from class org.opensourcephysics.ejs.control.value.Value |
|---|
parseConstant, parseConstantOrArray, removeScapes, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionValue(java.lang.String _expression,
GroupControl _group)
_expression - _group - | Method Detail |
|---|
public boolean getBoolean()
Value
getBoolean in class Valuepublic int getInteger()
Value
getInteger in class Valuepublic double getDouble()
Value
getDouble in class Valuepublic java.lang.String getString()
Value
getString in class Valuepublic java.lang.Object getObject()
Value
getObject in class Valuepublic void setExpression(java.lang.String _expression)
public void copyValue(Value _source)
Value
copyValue in class Valuepublic Value cloneValue()
Value
cloneValue in class Value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||