Class JavaAnalysis
java.lang.Object
uno.anahata.ai.nb.tools.JavaAnalysis
Provides advanced Java code analysis tools that inspect relationships and usages within the source code.
- Author:
- Anahata
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JavaAnalysis
public JavaAnalysis()
-
-
Method Details
-
findFieldUsagesInClass
public static List<String> findFieldUsagesInClass(String filePath, String fqn, String fieldName) throws Exception Finds all method body usages of a given field within a specific Java class.- Parameters:
filePath- The absolute path to the Java source file.fqn- The fully qualified name of the class to inspect.fieldName- The name of the field to search for.- Returns:
- a list of method names where the field is used.
- Throws:
Exception- if an error occurs.
-
