Package SCons :: Module Subst :: Class SpecialAttrWrapper
[show private | hide private]
[frames | no frames]

Class SpecialAttrWrapper


This is a wrapper for what we call a 'Node special attribute.' This is any of the attributes of a Node that we can reference from Environment variable substitution, such as $TARGET.abspath or $SOURCES[1].filebase. We implement the same methods as Literal so we can handle special characters, plus a for_signature method, such that we can return some canonical string during signature calculation to avoid unnecessary rebuilds.


Method Summary
  __init__(self, lstr, for_signature)
The for_signature parameter, if supplied, will be the canonical string we return from for_signature().
  __str__(self)
  escape(self, escape_func)
  for_signature(self)
  is_literal(self)

Method Details

__init__(self, lstr, for_signature=None)
(Constructor)

The for_signature parameter, if supplied, will be the canonical string we return from for_signature(). Else we will simply return lstr.


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