| Home | Trees | Index | Help |
|
|---|
| Package SCons :: Package Node :: Module FS :: Class Entry |
|
Node--+ |Base--+ | Entry
This is the class for generic Node.FS entries--that is, things that could be a File or a Dir, but we're just not sure yet. Consequently, the methods in this class really exist just to transform their associated object into the right class when the time comes, and then call the same-named method in the transformed class.
| Method Summary | |
|---|---|
Must be overridden in a specific subclass to return True if this Node (a dependency) has changed since the last time it was used to build the specified target. | |
disambiguate(self,
must_exist)
| |
diskcheck_match(self)
| |
Return if the Entry exists. | |
Fetch the contents of the entry. | |
Called to make sure a Node is a Dir. | |
new_ninfo(self)
| |
rel_path(self,
other)
| |
We're a generic Entry, but the caller is actually looking for a File at this point, so morph into one. | |
scanner_key(self)
| |
_glob1(self,
pattern,
ondisk,
source,
strings)
| |
| Inherited from Base | |
Initialize a generic Node.FS.Base object. | |
A Node.FS.Base object's string representation is its path name. | |
Return a string representation of the Node that will always be the same for this particular Node, no matter what. | |
Get the absolute path of the file. | |
| |
Return path relative to the current working directory of the Node.FS.Base object that owns us. | |
This method is expected to return an object that will function exactly like this Node, except that it implements any additional special features that we would like to be in effect for Environment variable substitution. | |
| |
| |
| |
| |
| |
| |
| |
Search for a list of directories in the Repository list. | |
| |
Does this node exist locally or in a repositiory? | |
Return all of the directories for a given path list, including corresponding "backing" directories in any repositories. | |
A Node.FS.Base object's string representation is its path name. | |
| |
Set the source code builder for this node. | |
Fetch the source code builder for this node. | |
If this node is in a build path, return the node corresponding to its source file. | |
| |
Generates a target entry that corresponds to this entry (usually a source file) with the specified prefix and suffix. | |
| |
| |
| |
| Inherited from Node | |
Adds dependencies. | |
Adds dependencies to ignore. | |
Adds prerequisites | |
Adds sources. | |
| |
Returns the number of nodes added to our waiting parents list: 1 if we add a unique waiting parent, 0 if not. | |
| |
Add a node to the list of kids waiting to be evaluated | |
Return a list of all the node's direct children. | |
Return a list of alternate targets for this Node. | |
Actually build the node. | |
| |
Called just after this node is successfully built. | |
| |
Returns if the node is up-to-date with respect to the BuildInfo stored last time it was built. | |
Return a list of the node's direct children, minus those that are ignored by this node. | |
Alternate check for whether the Node is current: If all of our children were up-to-date, then this Node was up-to-date, too. | |
Completely clear a Node of all its cached state (so that it can be re-evaluated by interfaces that do continuous integration builds). | |
| |
| |
Delete the build info from this node. | |
| |
| |
| |
Let the executor clean up any cached information. | |
| |
Fetch a node's build information. | |
Fetch the appropriate Environment to build this node. | |
Fetch the appropriate scanner path for this node. | |
Return the set builder, or a specified default value | |
| |
| |
| |
| |
Fetch the action executor for this node. | |
Return the scanned include lines (implicit dependencies) found in this node. | |
Return a list of implicit dependencies for this node. | |
| |
Fetch the source scanner for the specified node | |
| |
Fetch the stored implicit dependencies | |
| |
This is a convenience function designed primarily to be used in command generators (i.e., CommandGeneratorActions or Environment variables that are callable), which are called with a for_signature argument that is nonzero if the command generator is being called to generate a signature for the command line, which determines if we should rebuild or not. | |
| |
Return whether this Node has a builder or not. | |
Return whether this Node has an explicit builder | |
Returns true iff this node is derived (i.e. | |
Always pass the string representation of a Node to the command interpreter literally. | |
Default check for whether the Node is current: unknown Node subtypes are always out of date, so they will always get built. | |
Get a Node ready for evaluation. | |
| |
Return whether this Node has a builder or not. | |
| |
Clean up anything we don't need to hang onto after we've been built. | |
Prepare for this Node to be built. | |
Remove this Node: no-op by default. | |
Return a text representation, suitable for displaying to the user, of the include tree for the sources of this node. | |
Remove cached executor; forces recompute when needed. | |
Try to retrieve the node's content from a cache | |
Scan this node's dependents for implicit dependencies. | |
Selects a scanner for this Node. | |
Set the Node's always_build value. | |
Set the action executor for this node. | |
| |
Set the Node's nocache value. | |
Set the Node's noclean value. | |
Set the Node's precious value. | |
| |
| |
Make the build signature permanent (that is, store it in the .sconsign file or equivalent). | |
Called just after this node has been visited (with or without a build). | |
Adds 'child' to 'collection', first checking 'dict' to see if it's already present. | |
| |
| |
| |
| Class Variable Summary | |
|---|---|
| Inherited from Base | |
list |
memoizer_counters = [<SCons.Memoize.CountValue instance ...
|
| Method Details |
|---|
changed_since_last_build(self, target, prev_ni)Must be overridden in a specific subclass to return True if this Node (a dependency) has changed since the last time it was used to build the specified target. prev_ni is this Node's state (for example, its file timestamp, length, maybe content signature) as of the last time the target was built. Note that this method is called through the dependency, not the target, because a dependency Node must be able to use its own logic to decide if it changed. For example, File Nodes need to obey if we're configured to use timestamps, but Python Value Nodes never use timestamps and always use the content. If this method were called through the target, then each Node's implementation of this method would have to have more complicated logic to handle all the different Node types on which it might depend.
|
exists(self)Return if the Entry exists. Check the file system to see what we should turn into first. Assume a file if there's no directory.
|
get_contents(self)Fetch the contents of the entry. Since this should return the real contents from the file system, we check to see into what sort of subclass we should morph this Entry. |
must_be_same(self, klass)Called to make sure a Node is a Dir. Since we're an Entry, we can morph into one.
|
rfile(self)We're a generic Entry, but the caller is actually looking for a File at this point, so morph into one.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 | http://epydoc.sf.net |