Definition at line 20 of file source_code_file.py.
◆ __init__()
def ros_introspection.source_code_file.SourceCodeFile.__init__ |
( |
|
self, |
|
|
|
rel_fn, |
|
|
|
file_path |
|
) |
| |
◆ __lt__()
def ros_introspection.source_code_file.SourceCodeFile.__lt__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
◆ __repr__()
def ros_introspection.source_code_file.SourceCodeFile.__repr__ |
( |
|
self | ) |
|
◆ get_contents()
def ros_introspection.source_code_file.SourceCodeFile.get_contents |
( |
|
self | ) |
|
◆ get_dependencies()
def ros_introspection.source_code_file.SourceCodeFile.get_dependencies |
( |
|
self | ) |
|
◆ get_external_python_dependencies()
def ros_introspection.source_code_file.SourceCodeFile.get_external_python_dependencies |
( |
|
self | ) |
|
◆ get_import_packages()
def ros_introspection.source_code_file.SourceCodeFile.get_import_packages |
( |
|
self | ) |
|
◆ is_executable()
def ros_introspection.source_code_file.SourceCodeFile.is_executable |
( |
|
self | ) |
|
◆ modify_with_patterns()
def ros_introspection.source_code_file.SourceCodeFile.modify_with_patterns |
( |
|
self, |
|
|
|
patterns, |
|
|
|
verbose |
|
) |
| |
Given a map of patterns, replace all instances in the source code.
The key in the map (needle) 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 69 of file source_code_file.py.
◆ replace_contents()
def ros_introspection.source_code_file.SourceCodeFile.replace_contents |
( |
|
self, |
|
|
|
contents |
|
) |
| |
◆ search_for_patterns()
def ros_introspection.source_code_file.SourceCodeFile.search_for_patterns |
( |
|
self, |
|
|
|
patterns |
|
) |
| |
◆ search_lines_for_pattern()
def ros_introspection.source_code_file.SourceCodeFile.search_lines_for_pattern |
( |
|
self, |
|
|
|
pattern |
|
) |
| |
◆ search_lines_for_patterns()
def ros_introspection.source_code_file.SourceCodeFile.search_lines_for_patterns |
( |
|
self, |
|
|
|
patterns |
|
) |
| |
◆ write()
def ros_introspection.source_code_file.SourceCodeFile.write |
( |
|
self | ) |
|
◆ changed_contents
ros_introspection.source_code_file.SourceCodeFile.changed_contents |
◆ file_path
ros_introspection.source_code_file.SourceCodeFile.file_path |
◆ language
ros_introspection.source_code_file.SourceCodeFile.language |
◆ lines
ros_introspection.source_code_file.SourceCodeFile.lines |
◆ rel_fn
ros_introspection.source_code_file.SourceCodeFile.rel_fn |
◆ tags
ros_introspection.source_code_file.SourceCodeFile.tags |
The documentation for this class was generated from the following file: