java

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "java"
View Source
const StandardVersion = "11"

Variables

This section is empty.

Functions

This section is empty.

Types

type Callgraph

type Callgraph struct {
	// contains filtered or unexported fields
}

func NewCallgraph

func NewCallgraph(
	cmdFactory ICmdFactory,
	workingDirectory string,
	targetClasses []string,
	targetDir string,
	outputName string,
	filesystem ioFs.IFileSystem,
	ctx cgexec.IContext,
) Callgraph

func (*Callgraph) RunCallGraph

func (cg *Callgraph) RunCallGraph(callgraphJarPath string) error

func (*Callgraph) RunCallGraphWithSetup

func (cg *Callgraph) RunCallGraphWithSetup() error

type CmdFactory

type CmdFactory struct{}

func (CmdFactory) MakeBuildMavenCmd

func (_ CmdFactory) MakeBuildMavenCmd(workingDirectory string, ctx cgexec.IContext) (*exec.Cmd, error)

func (CmdFactory) MakeCallGraphGenerationCmd

func (_ CmdFactory) MakeCallGraphGenerationCmd(
	callgraphJarPath string,
	workingDirectory string,
	targetClasses []string,
	dependencyClasses string,
	outputName string,
	ctx cgexec.IContext,
) (*exec.Cmd, error)

func (CmdFactory) MakeMvnCopyDependenciesCmd

func (_ CmdFactory) MakeMvnCopyDependenciesCmd(
	workingDirectory string,
	targetDir string,
	ctx cgexec.IContext,
) (*exec.Cmd, error)

type ICallgraph

type ICallgraph interface {
	RunCallGraphWithSetup() error
	RunCallGraph(callgraphJarPath string) error
}

type ICmdFactory

type ICmdFactory interface {
	MakeMvnCopyDependenciesCmd(workingDirectory string, targetDir string, ctx cgexec.IContext) (*exec.Cmd, error)
	MakeCallGraphGenerationCmd(callgraphJarPath string, workingDirectory string, targetClasses []string, dependencyClasses string, outputName string, ctx cgexec.IContext) (*exec.Cmd, error)
	MakeBuildMavenCmd(workingDirectory string, ctx cgexec.IContext) (*exec.Cmd, error)
}

type Job

type Job struct {
	job.BaseJob
	// contains filtered or unexported fields
}

func NewJob

func NewJob(dir string, files []string, cmdFactory ICmdFactory, writer ioFs.IFileWriter, archive io.IArchive, config conf.IConfig, ctx cgexec.IContext, fs ioFs.IFileSystem) *Job

func (*Job) Run

func (j *Job) Run()

type Language

type Language struct {
	// contains filtered or unexported fields
}

func NewLanguage

func NewLanguage() Language

func (Language) Name

func (language Language) Name() string

func (Language) Version

func (language Language) Version() string

type Strategy

type Strategy struct {
	// contains filtered or unexported fields
}

func NewStrategy

func NewStrategy(config conf.IConfig, files []string, paths []string, exclusions []string, finder finder.IFinder, ctx cgexec.IContext) Strategy

func (Strategy) Invoke

func (s Strategy) Invoke() ([]job.IJob, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL