public class ConstantExpression extends java.lang.Object implements Expression
| Constructor and Description |
|---|
ConstantExpression() |
ConstantExpression(java.lang.Object value) |
ConstantExpression(java.lang.Object value,
QualityCode quality) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(CommonContext context,
InteractionListener updateListener)
Gives the expression a chance to connect itself to things, if necessary.
|
void |
disconnect()
Tells the expression to disconnect from anything it was connected to.
|
QualifiedValue |
execute()
Compute and return the value of this expression
|
Expression[] |
getChildren()
The children (if any) that this expression is dependent on for its execution
|
java.lang.String |
getOpName()
Return a human-readable name for the operation that this expression performs
|
QualityCode |
getQuality() |
java.lang.Class<?> |
getType()
Return the type that this expression will return
|
java.lang.Object |
getValue() |
void |
setQuality(QualityCode quality) |
void |
setValue(java.lang.Object object) |
void |
shutdown()
Tells the expression to shutdown any polling operations.
|
void |
startup()
Tells the expression to startup any polling operations.
|
public ConstantExpression(java.lang.Object value)
public ConstantExpression(java.lang.Object value,
QualityCode quality)
public ConstantExpression()
public QualifiedValue execute()
Expressionexecute in interface Expressionpublic java.lang.Class<?> getType()
ExpressiongetType in interface Expressionpublic java.lang.String getOpName()
ExpressiongetOpName in interface Expressionpublic Expression[] getChildren()
ExpressiongetChildren in interface Expressionpublic java.lang.Object getValue()
public void setValue(java.lang.Object object)
public QualityCode getQuality()
public void setQuality(QualityCode quality)
public void connect(CommonContext context, InteractionListener updateListener)
Expressionconnect in interface Expressionpublic void disconnect()
Expressiondisconnect in interface Expressionpublic void shutdown()
Expressionshutdown in interface Expressionpublic void startup()
Expressionstartup in interface Expression