A parsed message in Io's AST. Carries a name, argument messages, the next message in the chain, and cached values for evaluation.
Adds aMessage to the argument list of receiver. Examples:
Io> message(a) appendArg(message(b))
==> a(b)Io> message(a(1,2)) appendArg(message(3))
==> a(1, 2, 3)
Adds aValue to the argument list of receiver as a cachedResult.
Returns Message object for the specified argument or Nil if none exists.
Returns the number of arguments this message has. A faster way to do, msg arguments size. Examples,
Io> message(a(1,2,3)) argCount
==> 3Io> message(a) argCount
==> 0
Returns a List containing the argument messages evaluated in the context of anObject.
Returns a list of the message objects that act as the receiver's arguments. Modifying this list will not alter the actual list of arguments. Use the arguments_() method to do that.
Returns a copy of receiver with arguments evaluated in the context of sender if optionalContext is nil.
Returns one-line string representation up to 40 characters long.
Returns a string containing message name, file and line.
Same as code().
Returns the cached result of the Message or Nil if there is none.
Returns the message character number. The character number is typically the beginning character index in the source text from which the message was read.
Returns a Message that is a deep copy of the receiver.
Returns a String containing a decompiled code representation of the receiver.
Same as Message code, but returns first n characters only.
Returns a string containing a short description of the method.
Evaluates the receiver in the context of anObject. Optional locals object is used as message sender. anObject is used as sender otherwise.
Returns a List containing the argument messages evaluated in the context.
Returns a new Message object for the compiled(but not executed) result of aString.
Returns true if there is a cached result. Nil is a valid cached result.
Returns true if the message marks the end of the line. A ';' message.
Returns the message label. The label is typically set to the name of the file from which the source code for the message was read.
Returns the last message in the chain.
Returns the last message in the chain before the EndOfLine or nil.
Returns the line number of the message. The character number is typically the line number in the source text from which the message was read.
Returns the name of the receiver.
Returns the next message in the message chain or nil if there is no next message.
Returns the next message in the message chain which is not an EndOfLine or nil if there is no next message.
Returns the previous message in the message chain or Nil if there is no previous message.
Removes the cached result of the Message.
Sets the arguments of the receiver to deep copies of those contained in aListOfMessages. Returns self.
Sets the cached result of the message. Returns self.
Sets the character number of the message. Returns self.
Sets the label of the message and its children. Returns self.
Sets the line number of the message. Returns self.
Sets the name of the receiver. Returns self.
Sets the next message in the message chain to a deep copy of aMessage or it removes the next message if aMessage is nil.
Sets the previous message in the message chain to a deep copy of aMessage or it removes the previous message if aMessage is Nil.
Returns a new message object with the receivers message as the first argument of the returned message,
and the other parameter's arguments as each successive argument to the new message.
Io> message(a) union(message(b)) ==> [unnamed](a, b)