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

Class SpecialAttrWrapper

source code

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.
Instance Methods [hide private]
 
__init__(self, lstr, for_signature=None)
The for_signature parameter, if supplied, will be the canonical string we return from for_signature().
source code
 
__str__(self) source code
 
escape(self, escape_func) source code
 
for_signature(self) source code
 
is_literal(self) source code
Method Details [hide private]

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

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