GLOBAL SCOPE
(NOTE: both namespace notation and command/subcommand notation are shown.)
- class
- ::toe::class name ?inherits className? ?implements list? ?mixes
list? ?abstracts list? body
- toe class name ?inherits className? ?implements list? ?mixes
list? ?abstracts list? body
- interface
- ::toe::interface name body
- toe interface name body
- mixin
- ::toe::mixin name body
- toe mixin name body
- new
- ::toe::new className ?args?
- toe new className ?args?
- delete
- ::toe::delete cmd
- toe delete cmd
- cmd (an object command)
- cmd method ?arglist?
- cmd self subcommand
- cmd variable name ?value?
CLASS SCOPE
- modal target
- object: (default)
- common:
- single member target
- object ...
- common ...
- modal access
- public: (default)
- protected:
- private:
- single member access
- public ...
- protected ...
- private ...
- variable
- ?target? ?access? variable name ?value?
- method
- ?target? ?access? method ?-novars? name arglist body
- nested class
- class name body
METHOD SCOPE
- next
- next ?arglist?
- self
- self caller
- self method
- self next
INTERFACE SCOPE
- modal target
- object: (default)
- common:
- single member target
- object ...
- common ...
- constant
- const name value
- method
- ?target? ?access? method arglist
MIXIN SCOPE
- method
- ?target? ?access? method ?-novars? name arglist body
- filter
- filter name prependScript ?appendScript?
CLASS-SPECIFIC COMMANDS
- self
- self class
- self namespace
- self object
- self common
- self super
- self methods
- self interfaces
- self mixins
- self abstracts
- self owner
- self owns
- my
- my common ?...?
- my constant
- my method ?...?
- my myClass method ?...?
- my nestedClass method ?...?
RUNTIME COMMANDS
- api
- toe api className
- info
- toe info classes ?pattern?
- toe info interfaces ?pattern?
- toe info mixins ?pattern?
- toe info ancestors ?pattern?
- toe info objects ?pattern?
- toe info inherited ?pattern?
- toe info implemented ?pattern?
- toe info abstracted ?pattern?
- toe info mixed ?pattern?
where:
for toe info <classes | interfaces | mixins>,
a list is returned of names for the pattern-matching, or all, entities;
for toe info ancestors,
a list is returned of either:
class names up the inheritance chain for the pattern-matching, or all, classes, or
object names up the inheritance chain for the pattern-matching, or all, objects, with
one line in the list for each match to a derived class or object;
for toe info objects,
a list is returned of object command names for instantiations of the pattern-matching, or all, classes,
one line in the list for each matching object;
for toe info inherited,
a list is returned of class names for classes that inherit from the pattern-matching, or all, classes,
one line in the list for each matching base class name;
for toe info <implemented | abstracted>,
a list is returned of class names for classes implementing or abstracting the pattern-matching, or all, interfaces,
one line in the list for each matching interface;
for toe info mixed,
a list is returned of class names for classes that mix from the pattern-matching, or all, mixins,
one line in the list for each matching mixin name;
- policy
- toe policy ?name? ?0|1?
- object ownership
- toe adopt object owner ?adopter?
- toe orphan object owner
- toe seize object ?newOwner?
- revise
- toe revise <class | object | interface | mixin> name
?access? ?common? target targetName spec ...
-
where:
"revise" means insert or replace, as appropriate
name is a class name, object name, interface name or mixin name
access is an optional access specifier for the target
common designates the common scope, as opposed to the dynamic scope, for revision
target is a member type, such as method, filter, variable, or const; typically, target is "method"
targetName is the name of the target to be revised
spec is the specification appropriate for the named target
|
|
|