Package org.machanism.machai.gw.reviewer
Class PythonReviewer
java.lang.Object
org.machanism.machai.gw.reviewer.PythonReviewer
- All Implemented Interfaces:
Reviewer
Reviewer implementation for Python source files (.py).
Extracts guidance information or comments annotated with the
FileProcessor.GUIDANCE_TAG_NAME for documentation input processing,
supporting Python file comment conventions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the file extensions supported by this reviewer.Performs analysis on the specified Python source file, extracting documentation guidance if marked with the appropriate tag.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.machanism.machai.gw.reviewer.Reviewer
setDirGuidanceMap
-
Constructor Details
-
PythonReviewer
public PythonReviewer()
-
-
Method Details
-
getSupportedFileExtentions
Returns the file extensions supported by this reviewer. This reviewer handles files with the 'py' extension.- Specified by:
getSupportedFileExtentionsin interfaceReviewer- Returns:
- an array of supported file extension strings
-
perform
Performs analysis on the specified Python source file, extracting documentation guidance if marked with the appropriate tag.- Specified by:
performin interfaceReviewer- Parameters:
projectDir- the root directory of the project for contextguidancesFile- the Python file to be analyzed- Returns:
- formatted documentation guidance or
nullif none found - Throws:
IOException- if an error occurs reading the file
-