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

Class SpecialAttrWrapper

source code

object --+
         |
        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.



Instance Methods [hide private]
 
__init__(self, lstr, for_signature=False)
The for_signature parameter, if supplied, will be the canonical string we return from for_signature().
source code
 
__str__(self)
str(x)
source code
 
escape(self, escape_func) source code
 
for_signature(self) source code
 
is_literal(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, lstr, for_signature=False)
(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.

Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)