pygccxml.declarations.matchers.access_type_matcher_t

Package pygccxml :: Package declarations :: Module matchers :: Class access_type_matcher_t |

# type access_type_matcher_t

source code

        object --+
                 |
    matcher_base_t --+
                     |
                    access_type_matcher_t

Instance of this class will match declaration by its access type: public, private or protected. If declarations does not have access type, for example free function, then False will be returned.

Instance Methods
__init__(self, access_type) | source code
__call__(self, decl) | source code
__str__(self) | source code
Inherited from `matcher_base_t`: `__and__`, `__invert__`, `__or__`

Method Details

### __init__(self, access_type) (Constructor) | source code
Parameters: `access_type` (ACCESS_TYPES defines few consts for your convinience. Any way you can pass public, private or protected as argument to this function) - declaration access type Overrides: matcher_base_t.__init__

### __call__(self, decl) (Call operator) | source code
Overrides: matcher_base_t.__call__

### __str__(self) (Informal representation operator) | source code
Overrides: matcher_base_t.__str__