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()
Expression
execute
in interface Expression
public java.lang.Class<?> getType()
Expression
getType
in interface Expression
public java.lang.String getOpName()
Expression
getOpName
in interface Expression
public Expression[] getChildren()
Expression
getChildren
in interface Expression
public 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)
Expression
connect
in interface Expression
public void disconnect()
Expression
disconnect
in interface Expression
public void shutdown()
Expression
shutdown
in interface Expression
public void startup()
Expression
startup
in interface Expression