Information about a variable. Each variable has a name, and a value.

There is a flag to indicate whether it is a constant or not (constants cannot have their value changed). There is also a flag to indicate whether the value of the variable is valid. If the variable is initialized without a value then its value is said to be invalid.

This class extends java.util.Observable allowing observers to track if the variable value has been changed. Use addObserver(Observer o) to add an observer. When the variable value is changed the Observer's update(o, arg) method is called, the first argument is the Variable object and the second is the object representing the new value.

Namespace:  SingularSys.Jep
Assembly:  Jep (in Jep.dll) Version: (1.0.0)


public class Variable
Visual Basic (Declaration)
<SerializableAttribute> _
Public Class Variable
Visual C++
public ref class Variable

Inheritance Hierarchy


See Also