Public Member Functions | Public Attributes | List of all members
ros_introspection.source_code.SourceCode Class Reference

Public Member Functions

def __init__ (self, filenames, pkg_name)
 
def __repr__ (self)
 
def get_build_dependencies (self)
 
def get_external_python_dependencies (self)
 
def get_source_by_language (self, language)
 
def get_test_dependencies (self)
 
def has_header_files (self)
 
def modify_with_patterns (self, patterns, language='c++', verbose=True)
 
def search_for_pattern (self, pattern, per_line=True)
 
def search_for_patterns (self, patterns, per_line=True)
 
def setup_tags (self, cmake)
 

Public Attributes

 pkg_name
 
 sources
 

Detailed Description

Definition at line 6 of file source_code.py.

Constructor & Destructor Documentation

def ros_introspection.source_code.SourceCode.__init__ (   self,
  filenames,
  pkg_name 
)

Definition at line 7 of file source_code.py.

Member Function Documentation

def ros_introspection.source_code.SourceCode.__repr__ (   self)

Definition at line 88 of file source_code.py.

def ros_introspection.source_code.SourceCode.get_build_dependencies (   self)

Definition at line 35 of file source_code.py.

def ros_introspection.source_code.SourceCode.get_external_python_dependencies (   self)

Definition at line 45 of file source_code.py.

def ros_introspection.source_code.SourceCode.get_source_by_language (   self,
  language 
)

Definition at line 20 of file source_code.py.

def ros_introspection.source_code.SourceCode.get_test_dependencies (   self)

Definition at line 53 of file source_code.py.

def ros_introspection.source_code.SourceCode.has_header_files (   self)

Definition at line 13 of file source_code.py.

def ros_introspection.source_code.SourceCode.modify_with_patterns (   self,
  patterns,
  language = 'c++',
  verbose = True 
)
Given a map of patterns, replace all instances in the package source code with the given language.

The key in the map is a regular expression string literal.
If there are no groups, then the matching string is replaced with the map value.
If there are groups, then the literals of the form $0, $1, etc in the map value are replaced with the groups

Definition at line 77 of file source_code.py.

def ros_introspection.source_code.SourceCode.search_for_pattern (   self,
  pattern,
  per_line = True 
)

Definition at line 74 of file source_code.py.

def ros_introspection.source_code.SourceCode.search_for_patterns (   self,
  patterns,
  per_line = True 
)

Definition at line 63 of file source_code.py.

def ros_introspection.source_code.SourceCode.setup_tags (   self,
  cmake 
)

Definition at line 23 of file source_code.py.

Member Data Documentation

ros_introspection.source_code.SourceCode.pkg_name

Definition at line 8 of file source_code.py.

ros_introspection.source_code.SourceCode.sources

Definition at line 9 of file source_code.py.


The documentation for this class was generated from the following file:


ros_introspection
Author(s):
autogenerated on Wed Mar 3 2021 03:56:00