Expander class is responsible for expanding libraries in the source code. [詳解]
公開メンバ関数 | |
bool | is_ignored_line (self, line) |
Checks if a line should be ignored during expansion. | |
__init__ (self, List[Path] lib_paths) | |
Initializes an Expander object. | |
Path | find_library (self, str library_name) |
Finds the path of a library file. | |
List[str] | expand_library (self, Path library_file_path) |
Expands a library file. | |
str | expand (self, str source) |
Expands libraries in the source code. | |
公開変数類 | |
lib_paths = lib_paths | |
静的公開変数類 | |
include = re.compile(r'#include\s*["<](kyopro_library/[a-z0-9_/]*(|.hpp))[">]\s*') | |
included = set() | |
Expander class is responsible for expanding libraries in the source code.
Attributes:
Methods:
exp_AHC.py の 21 行目に定義があります。
exp_AHC.Expander.__init__ | ( | self, | |
List[Path] | lib_paths ) |
Initializes an Expander object.
Args:
exp_AHC.py の 67 行目に定義があります。
bool exp_AHC.Expander.is_ignored_line | ( | self, | |
line ) |
Checks if a line should be ignored during expansion.
Args:
Returns:
exp_AHC.py の 40 行目に定義があります。
Path exp_AHC.Expander.find_library | ( | self, | |
str | library_name ) |
Finds the path of a library file.
Args:
Returns:
Raises:
exp_AHC.py の 79 行目に定義があります。
List[str] exp_AHC.Expander.expand_library | ( | self, | |
Path | library_file_path ) |
Expands a library file.
Args:
Returns:
exp_AHC.py の 100 行目に定義があります。
参照先 exp.Expander.expand_library(), expand_library(), exp.Expander.find_library(), find_library(), exp_AHC.format, exp.Expander.include, include, exp.Expander.included, included, exp.Expander.is_ignored_line(), is_ignored_line().
str exp_AHC.Expander.expand | ( | self, | |
str | source ) |
Expands libraries in the source code.
Args:
Returns:
exp_AHC.py の 145 行目に定義があります。
参照先 exp.Expander.expand_library(), expand_library(), exp.Expander.find_library(), find_library(), exp.Expander.include, include, exp.Expander.included, included.
|
static |
exp_AHC.py の 38 行目に定義があります。
|
static |
exp_AHC.py の 77 行目に定義があります。
exp_AHC.Expander.lib_paths = lib_paths |
exp_AHC.py の 75 行目に定義があります。