Top Description Inners Methods
com.sun.tools.jdeps

public Interface Dependency

Known Direct Implementers
com.sun.tools.jdeps.Dependencies.SimpleDependency
Imports
java.lang.classfile.ClassModel

A directed relationship between two Locations. Subtypes of Dependency may provide additional detail about the dependency.
See Also
Dependency.Finder, Dependency.Filter, Dependencies

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
Dependency.Filter

A filter used to select dependencies of interest, and to discard others.

public static interface
Dependency.Finder

An interface for finding the immediate dependencies of a given class file.

public static interface
Dependency.Location

A location somewhere within a class.

Method Summary

Modifier and TypeMethod and Description
public Dependency.Location

Returns:

the location that has the dependency.
getOrigin
()

Get the location that has the dependency.

public Dependency.Location

Returns:

the location that is being depended upon.
getTarget
()

Get the location that is being depended upon.

Method Detail

getOriginback to summary
public Dependency.Location getOrigin()

Get the location that has the dependency.

Returns:Dependency.Location

the location that has the dependency.

getTargetback to summary
public Dependency.Location getTarget()

Get the location that is being depended upon.

Returns:Dependency.Location

the location that is being depended upon.

com.sun.tools.jdeps back to summary

public Interface Dependency.Filter

Known Direct Implementers
com.sun.tools.jdeps.JdepsFilter, com.sun.tools.jdeps.Dependencies.DefaultFilter, com.sun.tools.jdeps.Dependencies.TargetRegexFilter, com.sun.tools.jdeps.Dependencies.TargetPackageFilter

A filter used to select dependencies of interest, and to discard others.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if and only if the dependency is of interest.
accepts
(Dependency
the dependency to be considered
dependency
)

Return true if the dependency is of interest.

Method Detail

acceptsback to summary
public boolean accepts(Dependency dependency)

Return true if the dependency is of interest.

Parameters
dependency:Dependency

the dependency to be considered

Returns:boolean

true if and only if the dependency is of interest.

com.sun.tools.jdeps back to summary

public Interface Dependency.Finder

Known Direct Implementers
com.sun.tools.jdeps.DependencyFinder.Finder, com.sun.tools.jdeps.Dependencies.BasicDependencyFinder

An interface for finding the immediate dependencies of a given class file.

Method Summary

Modifier and TypeMethod and Description
public Iterable<? extends Dependency>

Returns:

the dependencies located in the given class file.
findDependencies
(ClassModel
the class file to be examined
classfile
)

Find the immediate dependencies of a given class file.

Method Detail

findDependenciesback to summary
public Iterable<? extends Dependency> findDependencies(ClassModel classfile)

Find the immediate dependencies of a given class file.

Parameters
classfile:ClassModel

the class file to be examined

Returns:Iterable<? extends Dependency>

the dependencies located in the given class file.

com.sun.tools.jdeps back to summary

public Interface Dependency.Location

Known Direct Implementers
com.sun.tools.jdeps.Dependencies.SimpleLocation

A location somewhere within a class. Subtypes of Location may be used to provide additional detail about the location.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the fully-qualified name of the class containing the location.
getClassName
()

Get the fully-qualified name of the class containing the location.

public String

Returns:

the name of the class containing the location.
getName
()

Get the name of the class containing the location.

public String

Returns:

the package name of the class containing the location.
getPackageName
()

Get the package name of the class containing the location.

Method Detail

getClassNameback to summary
public String getClassName()

Get the fully-qualified name of the class containing the location.

Returns:String

the fully-qualified name of the class containing the location.

getNameback to summary
public String getName()

Get the name of the class containing the location. This name will be used to locate the class file for transitive dependency analysis.

Returns:String

the name of the class containing the location.

getPackageNameback to summary
public String getPackageName()

Get the package name of the class containing the location.

Returns:String

the package name of the class containing the location.