The Variable type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
|
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
HasValidValue |
Is the value of this variable valid?
|
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
SetValidValue |
Sets whether the value of variable is valid.
|
|
SetValue |
Sets the value of the variable. Constant values cannot be changed.
This method calls java.util.Observable.notifyObservers() to indicate to anyone interested that the value has been changed. Note subclasses should override setValueRaw rather than this method so they do not need to handle the Observable methods. This method sets the validValue flag to true. |
|
SetValueRaw |
In general subclasses should override this method rather than
setValue. This is because setValue notifies any observers
and then calls this method.
This method sets the validValue flag to true. |
|
ToString |
Returns a string with the variable name followed by it's value.
(Overrides Object..::.ToString()()().)For example for the variable "a" with the value 10, the following string is returned: a: 10 If the variable is a constant the string " (Constant" is appended. |
Fields
Name | Description | |
---|---|---|
_name |
The variable name
|
Properties
Name | Description | |
---|---|---|
IsConstant |
Gets/sets the _isConstant data variable
|
|
Name |
Property for the variable name
|
|
Value |
Property for the variable value
|