Definition at line 20 of file source_code_file.py.
def ros_introspection.source_code_file.SourceCodeFile.__init__ |
( |
|
self, |
|
|
|
rel_fn, |
|
|
|
file_path |
|
) |
| |
def ros_introspection.source_code_file.SourceCodeFile.__lt__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
def ros_introspection.source_code_file.SourceCodeFile.__repr__ |
( |
|
self | ) |
|
def ros_introspection.source_code_file.SourceCodeFile.get_contents |
( |
|
self | ) |
|
def ros_introspection.source_code_file.SourceCodeFile.get_dependencies |
( |
|
self | ) |
|
def ros_introspection.source_code_file.SourceCodeFile.get_external_python_dependencies |
( |
|
self | ) |
|
def ros_introspection.source_code_file.SourceCodeFile.get_import_packages |
( |
|
self | ) |
|
def ros_introspection.source_code_file.SourceCodeFile.is_executable |
( |
|
self | ) |
|
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.
def ros_introspection.source_code_file.SourceCodeFile.replace_contents |
( |
|
self, |
|
|
|
contents |
|
) |
| |
def ros_introspection.source_code_file.SourceCodeFile.search_for_patterns |
( |
|
self, |
|
|
|
patterns |
|
) |
| |
def ros_introspection.source_code_file.SourceCodeFile.search_lines_for_pattern |
( |
|
self, |
|
|
|
pattern |
|
) |
| |
def ros_introspection.source_code_file.SourceCodeFile.search_lines_for_patterns |
( |
|
self, |
|
|
|
patterns |
|
) |
| |
def ros_introspection.source_code_file.SourceCodeFile.write |
( |
|
self | ) |
|
ros_introspection.source_code_file.SourceCodeFile.changed_contents |
ros_introspection.source_code_file.SourceCodeFile.file_path |
ros_introspection.source_code_file.SourceCodeFile.language |
ros_introspection.source_code_file.SourceCodeFile.lines |
ros_introspection.source_code_file.SourceCodeFile.rel_fn |
ros_introspection.source_code_file.SourceCodeFile.tags |
The documentation for this class was generated from the following file: