These methods are implemented by Tree version 0.4.0 for its nodes
change value of the Tree's currentPath
syntax:
work way through this node's directory structure. sending a particular message to each child node in turn
syntax:
if depthFirst is given as a keyword for the first argument, then the message is applied to the leaves before being applied to this node.
otherwise, apply message to this node before descending down to the leaves.
NOTE THIS IS A NON-OBJECT-ORIENTED METHOD, optimised for speed.
determine if a path represents a valid node from this node.
syntax:
path is either relative or absolute
if relative, is relative to this node. NOTE how this is different from the Tree's concept of a relative path.
returns:
the absolute path if it exists, null string otherwise.
list all nodes that are children of this one
syntax:
return the path for this directory
syntax:
reference a node in a Tree from another node
syntax:
path is either relative or absolute
if relative, is relative to this node. NOTE how this differs from the Tree's concept of relative path.
For a dictionary, parses a message and converts it to a canonical form of method arguments
specifically
syntax:
returns a message in the form
$ method arguments
NOTE This uses a deprecated methodology which is no longer consistent with other Offsiders. Should just override sugar instead.
remove this node, and all children
syntax:
reference the tree directory that this node is contained within
syntax:
work way through this node's directory structure. sending a particular message to each child node in turn
syntax:
is depthFirst is given as a keyword for the first argument, then the message is applied to the leaves before being applied to this node.
otherwise, apply message to this node before descending down to the leaves.
(20090617 20:23:59) This page was produced by rsml2html using the file TreeAPI-0.4.0-nodeMethods as its source document