| Package | org.flexunit.experimental.theories |
| Class | public class PotentialAssignment |
| Inheritance | PotentialAssignment Object |
| Implements | IPotentialAssignment |
PotentialAssignment stores information for a particular value
that is assigned to a parameter in a theory method.
| Property | Defined By | ||
|---|---|---|---|
| name : String
The name of the variable that is providing the potential value. | PotentialAssignment | ||
| value : Object
The value that can be applied to a particular parameter. | PotentialAssignment | ||
| Method | Defined By | ||
|---|---|---|---|
PotentialAssignment(name:String, value:Object)
Constructor. | PotentialAssignment | ||
forValue(name:String, value:Object):PotentialAssignment [static]
Creates a PotentialAssignment for a given name and value. | PotentialAssignment | ||
getDescription():String
Returns the name of the variable associated with the PotentialAssignment. | PotentialAssignment | ||
getValue():Object
Returns the value of the PotentialAssignment. | PotentialAssignment | ||
toString():String
Returns a string that includes the name of the parameter the potential assignment is associated with
as well as the value being assigned to the parameter. | PotentialAssignment | ||
| name | property |
public var name:StringThe name of the variable that is providing the potential value.
| value | property |
public var value:ObjectThe value that can be applied to a particular parameter.
| PotentialAssignment | () | Constructor |
public function PotentialAssignment(name:String, value:Object)Constructor.
Parametersname:String — The name of the variable that is providing the potential value.
| |
value:Object — The value that can be applied to a particular parameter.
|
| forValue | () | method |
public static function forValue(name:String, value:Object):PotentialAssignment
Creates a PotentialAssignment for a given name and value.
Parameters
name:String — The name of the variable that is providing the potential value.
| |
value:Object — The value that can be applied to a particular parameter.
|
PotentialAssignment — a PotentialAssignment.
|
| getDescription | () | method |
public function getDescription():String
Returns the name of the variable associated with the PotentialAssignment.
String |
| getValue | () | method |
public function getValue():Object
Returns the value of the PotentialAssignment.
Object |
| toString | () | method |
public function toString():StringReturns a string that includes the name of the parameter the potential assignment is associated with as well as the value being assigned to the parameter.
ReturnsString |