Module Expr Str Assign NameStore Str Import alias ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str Str body Expr Str Assign AttributeStore NameLoad attr IfExp NameLoad NameLoad ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Print BinOpMod Str AttributeLoad NameLoad attr Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A Module that holds all file-level filter classes of Definate. N/A __author__ msu@google.com (Martin Suess) N/A logging Error N/A Exception N/A N/A Base error class. N/A FileError N/A Error N/A N/A Exception to use when file handling files. N/A Container N/A object N/A N/A Container class to hold all information to be passed between filters. __init__ N/A N/A self lines relative_path absolute_path N/A None N/A N/A Initializer.

    Args:
      lines: Optional list of strings which will be added as lines.
        E.g. the file header can be added here directly.
      relative_path: Optional string to specify the path of the file relative to
        the location of the definition directory (e.g. 'AUTOGEN.net').
      absolute_path: Optional string to specify the absolute path of the local
        file to be written (e.g. '/tmp/AUTOGEN.net') or if a SCM software is
        used it can refer to the full path there
        (e.g. '//depot/def/AUTOGEN.net').
     N/A N/A self lines N/A lines lines N/A N/A N/A self absolute_path absolute_path N/A N/A self relative_path relative_path N/A N/A FileFilter N/A object N/A N/A Abstract class defining the interface for the filter chain objects. Filter N/A N/A self container args N/A N/A N/A Interface to filter or modify data passed into it.

    Args:
      container: Container object which holds all information for one definition
        file. See Container class for details.
      args: Dictionary of arguments depending on the actual filter in use.

    Raises:
      NotImplementedError: In any case since this is not implemented an needs
        to be defined by subclasses.
     N/A N/A NotImplementedError This is an interface only. Implemented by subclasses. N/A N/A PrintFilter N/A FileFilter N/A N/A FileFilter implementation which simply logs the file content. Filter N/A N/A self container unused_args N/A N/A N/A Filter method that prints the content of the file to stdout.

    Args:
      container: Container object which holds all information for one definition
        file. See Container class for details.
      unused_args: No extra arguments required by this filter implementation.

    Returns:
      Container object that has been passed in.
     N/A N/A # File "%s" N/A container absolute_path N/A N/A N/A join N/A container lines N/A container N/A N/A WriteFileFilter N/A FileFilter N/A N/A FileFilter implementation which writes the content into a file. Filter N/A N/A self container unused_args N/A N/A N/A Filter method that writes the content of the file into a file.

    Args:
      container: Container object which holds all information for one definition
        file. See Container class for details.
      unused_args: No extra arguments required by this filter implementation.

    Returns:
      Container object that has been passed in.
     N/A N/A N/A f N/A file N/A container absolute_path w N/A N/A N/A IOError N/A e N/A N/A N/A FileError N/A File "%s" could not be opened: %s N/A N/A container absolute_path e N/A N/A N/A N/A N/A f write N/A N/A join N/A container lines N/A N/A N/A IOError N/A e N/A N/A N/A FileError N/A File "%s" could not be written: %s N/A N/A container absolute_path e N/A N/A N/A N/A f close N/A N/A N/A logging info Wrote file: %s N/A container absolute_path N/A container N/A N/A