APIdia Launch Partner
Top Description Inners Constructors Methods
com.sun.tools.jdeps

public Class Main

extends Object
Class Inheritance
Imports
java.io.*, java.util.Optional, java.util.spi.ToolProvider

Usage: jdeps [options] files ... where options include: -p package-name restrict analysis to classes in this package (may be given multiple times) -e regex restrict analysis to packages matching pattern (-p and -e are exclusive) -v show class-level dependencies default: package-level dependencies -r --recursive transitive dependencies analysis -classpath paths Classpath to locate class files -all process all class files in the given classpath

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public
Main()

Method Summary

Modifier and TypeMethod and Description
public static void
main(String... args)

public static int

Returns:

an exit code. 0 means success, non-zero means an error occurred.
run
(String[]
command line arguments
args
,
PrintWriter
output stream
out
)

Entry point that does not call System.exit.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Mainback to summary
public Main()

Method Detail

mainback to summary
public static void main(String... args) throws Exception
runback to summary
public static int run(String[] args, PrintWriter out)

Entry point that does not call System.exit.

Parameters
args:String[]

command line arguments

out:PrintWriter

output stream

Returns:int

an exit code. 0 means success, non-zero means an error occurred.

com.sun.tools.jdeps back to summary

public Class Main.JDepsToolProvider

extends Object
implements ToolProvider
Class Inheritance
All Implemented Interfaces
java.util.spi.ToolProvider

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Optional<String>
description()

Overrides default java.util.spi.ToolProvider.description.

Returns a short description of the tool, or an empty Optional if no description is available.

public String
name()

Implements java.util.spi.ToolProvider.name.

Returns the name of this tool provider.

public int
run(PrintWriter out, PrintWriter err, String... args)

Implements java.util.spi.ToolProvider.run.

Runs an instance of the tool, returning zero for a successful run.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JDepsToolProviderback to summary
public JDepsToolProvider()

Method Detail

descriptionback to summary
public Optional<String> description()

Overrides default java.util.spi.ToolProvider.description.

Doc from java.util.spi.ToolProvider.description.

Returns a short description of the tool, or an empty Optional if no description is available.

nameback to summary
public String name()

Implements java.util.spi.ToolProvider.name.

Doc from java.util.spi.ToolProvider.name.

Returns the name of this tool provider.

runback to summary
public int run(PrintWriter out, PrintWriter err, String... args)

Implements java.util.spi.ToolProvider.run.

Doc from java.util.spi.ToolProvider.run.

Runs an instance of the tool, returning zero for a successful run. Any non-zero return value indicates a tool-specific error during the execution. Two streams should be provided, for "expected" output, and for any error messages. If it is not necessary to distinguish the output, the same stream may be used for both.