Modules | Files | Inheritance Tree | Inheritance Graph | Name Index | Config
module Synopsis::Core::Executor
class Executor
Files: Synopsis/Core/Executor.py
Executor-inheritance Scopes/Synopsis/Core/Executor/ParserExecutor.html Scopes/Synopsis/Core/Executor/FormatExecutor.html Scopes/Synopsis/Core/Executor/LinkerExecutor.html Scopes/Synopsis/Core/Executor/SourceExecutor.html Scopes/Synopsis/Core/Executor/CacherExecutor.html

Base class for executor classes, defining the common interface between each executor instance.


Operations Summary:
 get_output_names(self)
Returns a list of (name, timestamp) tuples, representing the output from this executor. [Source]
 prepare_output(self, name, keep)
Prepares an AST object for returning. [Source]
 get_output(self, name)
Returns the AST object for the given name. [Source]

Operation Details:
  get_output_names(self)

Returns a list of (name, timestamp) tuples, representing the output from this executor. The names must be given to get_output in turn to retrieve the AST objects, and the timestamp may be used for build control.


  prepare_output(self, name, keep)

Prepares an AST object for returning. For most objects, this does nothing. In the case of a cacher, this causes it to process each input in turn and store the results to disk. This is as opposed to keeping each previous input in memory while the next is parsed! Returns the AST if keep is set, else None.


  get_output(self, name)

Returns the AST object for the given name. Name must one returned from the 'get_output_names' method.