Class AIFileProcessor
java.lang.Object
org.machanism.machai.project.ProjectProcessor
org.machanism.machai.gw.processor.AbstractFileProcessor
org.machanism.machai.gw.processor.AIFileProcessor
- Direct Known Subclasses:
ActProcessor,GuidanceProcessor
-
Field Summary
FieldsFields inherited from class org.machanism.machai.gw.processor.AbstractFileProcessor
GW_PROJECT_LAYOUT_PROP_PREFIXFields inherited from class org.machanism.machai.project.ProjectProcessor
MACHAI_TEMP_DIR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) StringgetDirInfoLine(Collection<String> sources, File projectDir) getModel()getProjectStructureDescription(ProjectLayout projectLayout, File file) FalsePositive Backward-compatible alias kept for configuration/property naming; delegating to getModel() is intentional.protected Stringinput()booleanbooleanparseLines(String data) (package private) StringparseScanDir(File projectDir, String scanDir) process(ProjectLayout projectLayout, File file, String instructions, String prompt) voidprocessFolder(ProjectLayout projectLayout) Processes a project layout for documentation gathering.(package private) StringreadFromFilePath(String filePath) (package private) static StringreadFromHttpUrl(String urlString) voidscanDocuments(File projectDir, String scanDir) voidsetDefaultPrompt(String defaultPrompt) voidsetInstructions(String instructions) voidsetInteractive(boolean interactive) voidsetLogInputs(boolean logInputs) voidvoidsetProvider(String genai) FalsePositive Backward-compatible alias kept for configuration/property naming; delegating to setModel() is intentional.(package private) StringMethods inherited from class org.machanism.machai.gw.processor.AbstractFileProcessor
addMatchingFile, findFiles, findFiles, getConfigurator, getExcludes, getModuleThreadTimeoutMinutes, getPathMatcher, getPatternPath, getProjectDir, getScanDir, isModuleDir, isNonRecursive, isPathPattern, match, matchPath, pathDepth, processFile, processModulesMultiThreaded, processParentFiles, processProjectDir, scanDocuments, scanFolder, setDegreeOfConcurrency, setExcludes, setModuleThreadTimeoutMinutes, setNonRecursive, setPathMatcher, setScanDir, shouldExcludePath, shouldIncludeInFindFiles, shutdownExecutorMethods inherited from class org.machanism.machai.project.ProjectProcessor
getProjectLayout, processModule
-
Field Details
-
NOT_DEFINED_VALUE
- See Also:
-
GW_TEMP_DIR
- See Also:
-
-
Constructor Details
-
AIFileProcessor
-
-
Method Details
-
process
-
input
-
getProjectStructureDescription
-
getDirInfoLine
-
isLogInputs
public boolean isLogInputs() -
setLogInputs
public void setLogInputs(boolean logInputs) -
setInstructions
-
getInstructions
-
parseLines
-
tryToGetInstructionsFromReference
- Throws:
IOException
-
readFromHttpUrl
- Throws:
IOException
-
readFromFilePath
-
scanDocuments
- Throws:
IOException
-
parseScanDir
-
getDefaultPrompt
-
setDefaultPrompt
-
processFolder
Description copied from class:AbstractFileProcessorProcesses a project layout for documentation gathering.- Overrides:
processFolderin classAbstractFileProcessor- Parameters:
projectLayout- layout describing sources, tests, docs, and modules
-
getModel
-
setModel
-
setInteractive
public void setInteractive(boolean interactive) -
isInteractive
public boolean isInteractive() -
getProvider
FalsePositive Backward-compatible alias kept for configuration/property naming; delegating to getModel() is intentional. -
setProvider
FalsePositive Backward-compatible alias kept for configuration/property naming; delegating to setModel() is intentional.
-