|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Message
ATMessage represents a first-class AmbientTalk asynchronous message.
Asynchronous messages may be created explicitly using the <-m(args) syntax, or implicitly during an
asynchronous message send of the form o<-m(args).
This interface has not to be confused with the MessageCreation
interface in the grammar subpackage.
That interface represents an abstract grammar object representing the syntax tree of message creation.
This interface is the interface to the actual runtime message object.
Method Summary | |
---|---|
Nil |
arguments:=(Table arguments)
Assigns the arguments passed of a first class method. |
Table |
arguments()
Returns the arguments passed to the invocation, if any. |
Closure |
from(Object sender)
Turns the receiver message into a unary closure that, when applied to a receiver object, sends the message to the receiver object, where the sender used is the object passed to from. |
Symbol |
selector()
Returns the selector of message. |
Object |
sendTo(Object receiver,
Object sender)
Sends this message to a particular receiver object. |
Methods inherited from interface edu.vub.at.objects.Object |
---|
super |
Method Detail |
---|
Symbol selector()
Messages always have a selector, a symbol denoting the field or method that needs to be sought for.
Symbol
denoting the selectorTable arguments()
Messages may optionally have a table of arguments.
Table
containing the arguments passed to the invocation.Nil arguments:=(Table arguments)
arguments
- a table containing the arguments to be assigned.
Closure from(Object sender)
sender
- the object designating the sender of any message sent via the closure
Object sendTo(Object receiver, Object sender)
receiver
- the object receiving the message denoted by this ATMessage.sender
- the object sending the message denoted by this ATMessage.
Object
representing the value of the method invocation or message send.
edu.vub.at.exceptions.InterpreterException
- if the method is not found or an error occurs while processing the method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |