| Package | vegas.events |
| Class | public class Command |
| Inheritance | Command CoreObject |
| Implements | IRunnable |
| Property | Defined by | ||
|---|---|---|---|
| channel : String
The channel of this command.
| Command | ||
| CONSTRUCTOR_ERROR : String = ", you can't create this instance without 'name' definition." [static]
The internal string message used in the constructor if the constructor notify an IllegalArgumentError.
| Command | ||
| name : String
The command's type name.
| Command | ||
| value : *
The value of this command.
| Command | ||
| Method | Defined by | ||
|---|---|---|---|
|
Command(... arguments)
Creates a new Command instance.
| Command | ||
![]() |
Returns the internal
ILogger reference of this ILogable object. | CoreObject | |
![]() |
hashCode():uint
Returns a hashcode value for the object.
| CoreObject | |
|
run(... arguments):void
Run the process of this command.
| Command | ||
![]() |
Sets the internal
ILogger reference of this ILogable object. | CoreObject | |
|
toObject():Object
Returns a simple Object representation of the Commands's instance.
| Command | ||
|
toSource(indent:int = 0):String
Returns the string EDEN representation of this object.
| Command | ||
|
toString():String
Returns the string representation of this object.
| Command | ||
| channel | property |
public var channel:StringThe channel of this command.
| CONSTRUCTOR_ERROR | property |
public static var CONSTRUCTOR_ERROR:String = ", you can't create this instance without 'name' definition."The internal string message used in the constructor if the constructor notify an IllegalArgumentError.
| name | property |
public var name:StringThe command's type name.
| value | property |
public var value:*The value of this command.
| Command | () | constructor |
public function Command(... arguments)Creates a new Command instance.
Example :
var c1:Command = new Command() ; var c2:Command = new Command([name:String [, value:, channel:String]]]) ; var c3:Command = new Command([initObject:Object]) ;Parameters
... arguments |
— if the optional passed-in arguments failed the initialization of the new Command instance.
|
| run | () | method |
public function run(... arguments):voidRun the process of this command.
Parameters... arguments |
| toObject | () | method |
public function toObject():ObjectReturns a simple Object representation of the Commands's instance.
ReturnsObject — a simple Object representation of the Commands's instance.
|
| toSource | () | method |
public override function toSource(indent:int = 0):StringReturns the string EDEN representation of this object.
Parametersindent:int (default = 0) |
String — the string EDEN representation of this object.
|
| toString | () | method |
public override function toString():StringReturns the string representation of this object.
ReturnsString — the string representation of this object.
|