Package SCons :: Package Scanner :: Class Selector
[show private | hide private]
[frames | no frames]

Class Selector

Base --+
       |
      Selector


A class for selecting a more specific scanner based on the scanner_key() (suffix) for a specific Node.

TODO: This functionality has been moved into the inner workings of the Base class, and this class will be deprecated at some point. (It was never exposed directly as part of the public interface, although it is used by the Scanner() factory function that was used by various Tool modules and therefore was likely a template for custom modules that may be out there.)


Method Summary
  __init__(self, dict, *args, **kw)
  __call__(self, node, env, path)
This method scans a single object.
  add_scanner(self, skey, scanner)
  select(self, node)
    Inherited from Base
  __cmp__(self, other)
  __hash__(self)
  __str__(self)
  add_skey(self, skey)
Add a skey to the list of skeys
  get_skeys(self, env)
  path(self, env, dir, target, source)
  _recurse_all_nodes(self, nodes)
  _recurse_no_nodes(self, nodes)
  recurse_nodes(self, nodes)

Method Details

__call__(self, node, env, path=())
(Call operator)

This method scans a single object. 'node' is the node that will be passed to the scanner function, and 'env' is the environment that will be passed to the scanner function. A list of direct dependency nodes for the specified node will be returned.

Overrides:
SCons.Scanner.Base.__call__ (inherited documentation)

Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 http://epydoc.sf.net