CodeSegmenter#

class langchain_community.document_loaders.parsers.language.code_segmenter.CodeSegmenter(code: str)[source]#

Abstract class for the code segmenter.

Methods

Parameters:

code (str) –

__init__(code: str)[source]#
Parameters:

code (str) –

abstract extract_functions_classes() List[str][source]#
Return type:

List[str]

is_valid() bool[source]#
Return type:

bool

abstract simplify_code() str[source]#
Return type:

str