|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.actor.gt.util.PtolemyExpressionString
public class PtolemyExpressionString
A wrapper for a string containing a Ptolemy expression.
Red (tfeng) |
Yellow (tfeng) |
Field Summary | |
---|---|
private Token |
_token
The last evaluation result. |
private java.lang.String |
_value
The Ptolemy expression. |
private ASTPtRootNode |
_valueParseTree
The value parse tree. |
private VariableScope |
_variableScope
The scope in which the Ptolemy expression is evaluated. |
Constructor Summary | |
---|---|
PtolemyExpressionString()
Construct a Ptolemy expression string. |
|
PtolemyExpressionString(NamedObj container)
Construct a Ptolemy expression string with the given container as its scope. |
|
PtolemyExpressionString(NamedObj container,
java.lang.String value)
Construct a Ptolemy expression string with the given container as its scope and the given value as its initial value. |
Method Summary | |
---|---|
java.lang.String |
get()
Get the current value. |
Token |
getToken()
Evaluate the Ptolemy expression and return the result in a token. |
void |
set(java.lang.String value)
Set the value. |
java.lang.String |
toString()
Return the Ptolemy expression in a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Token _token
private java.lang.String _value
private ASTPtRootNode _valueParseTree
private VariableScope _variableScope
Constructor Detail |
---|
public PtolemyExpressionString()
public PtolemyExpressionString(NamedObj container)
container
- The container.public PtolemyExpressionString(NamedObj container, java.lang.String value)
container
- The container.value
- The initial value.Method Detail |
---|
public java.lang.String get()
set(String)
public Token getToken() throws IllegalActionException
IllegalActionException
- If error occurs in the evaluation.public void set(java.lang.String value)
value
- The value.get()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |