Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassFile ¶
type ClassFile struct {
ClassName string
Methods []*MethodInfo
ConstantPool []interface{}
}
ClassFile represents a parsed Java class file
type JARAnalyzer ¶
type JARAnalyzer struct {
// contains filtered or unexported fields
}
JARAnalyzer analyzes JAR files and extracts bytecode information
func NewJARAnalyzer ¶
func NewJARAnalyzer(jarPath string) *JARAnalyzer
NewJARAnalyzer creates a new JAR analyzer
func (*JARAnalyzer) AnalyzeJAR ¶
func (ja *JARAnalyzer) AnalyzeJAR() ([]*ClassFile, error)
AnalyzeJAR extracts all classes and methods from a JAR file
func (*JARAnalyzer) BuildCallGraphFromJAR ¶
func (ja *JARAnalyzer) BuildCallGraphFromJAR() (*models.CallGraph, error)
BuildCallGraphFromJAR builds a call graph from a JAR file
type MethodCall ¶
MethodCall represents a method invocation
type MethodInfo ¶
type MethodInfo struct {
Name string
Descriptor string
Code []byte
Calls []MethodCall
}
MethodInfo represents a method in a class
Click to show internal directories.
Click to hide internal directories.