Top Inners Fields Constructors Methods
com.sun.tools.jdeps

public abstract Class JdepsWriter

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.tools.jdeps.JdepsWriter.DotFileWriter, com.sun.tools.jdeps.JdepsWriter.SimpleWriter
Static Imports
com.sun.tools.jdeps.Analyzer.Type.*

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final boolean
pack-priv final Analyzer.Type

Constructor Summary

AccessConstructor and Description
pack-priv
JdepsWriter(Analyzer.Type type, boolean showModule)

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract void
public static JdepsWriter
newDotWriter(Path outputdir, Analyzer.Type type)

public static JdepsWriter
pack-priv String
pack-priv String
toTag(Archive source, String name, Archive target)

If the given target is JDK module and the source accesses a private JDK API, the returned value will have "JDK internal API" prefix For non-JDK archives, this method returns the file name of the archive.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

showModuleback to summary
pack-priv final boolean showModule
typeback to summary
pack-priv final Analyzer.Type type

Constructor Detail

JdepsWriterback to summary
pack-priv JdepsWriter(Analyzer.Type type, boolean showModule)

Method Detail

generateOutputback to summary
pack-priv abstract void generateOutput(Collection<Archive> archives, Analyzer analyzer) throws IOException
newDotWriterback to summary
public static JdepsWriter newDotWriter(Path outputdir, Analyzer.Type type)
newSimpleWriterback to summary
public static JdepsWriter newSimpleWriter(PrintWriter writer, Analyzer.Type type)
showModuleback to summary
pack-priv String showModule(Module m)
toTagback to summary
pack-priv String toTag(Archive source, String name, Archive target)

If the given target is JDK module and the source accesses a private JDK API, the returned value will have "JDK internal API" prefix For non-JDK archives, this method returns the file name of the archive.

com.sun.tools.jdeps back to summary

pack-priv Class JdepsWriter.DotFileWriter

extends JdepsWriter
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv final Path
pack-priv final boolean
Inherited from com.sun.tools.jdeps.JdepsWriter:
showModuletype

Constructor Summary

AccessConstructor and Description
pack-priv
DotFileWriter(Path dir, Analyzer.Type type, boolean showModule, boolean showLabel)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
private void
Inherited from com.sun.tools.jdeps.JdepsWriter:
newDotWriternewSimpleWritershowModuletoTag

Field Detail

outputDirback to summary
pack-priv final Path outputDir
showLabelback to summary
pack-priv final boolean showLabel

Constructor Detail

DotFileWriterback to summary
pack-priv DotFileWriter(Path dir, Analyzer.Type type, boolean showModule, boolean showLabel)

Method Detail

generateOutputback to summary
pack-priv void generateOutput(Collection<Archive> archives, Analyzer analyzer) throws IOException

Implements abstract com.sun.tools.jdeps.JdepsWriter.generateOutput.

Annotations
@Override
generateSummaryDotFileback to summary
private void generateSummaryDotFile(Collection<Archive> archives, Analyzer analyzer) throws IOException
com.sun.tools.jdeps back to summary

pack-priv Class JdepsWriter.DotFileWriter.DotFileFormatter

extends Object
implements Visitor, AutoCloseable
Class Inheritance
  • java.lang.Object
  • com.sun.tools.jdeps.JdepsWriter.DotFileWriter.DotFileFormatter
All Implemented Interfaces
java.lang.AutoCloseable, com.sun.tools.jdeps.Analyzer.Visitor

Field Summary

Modifier and TypeField and Description
private final String
private final PrintWriter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

public void
visitDependence(String origin, Archive originArchive, String target, Archive targetArchive)

Implements com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Visits a recorded dependency from origin to target which can be a fully-qualified classname, a package name, a module or archive name depending on the Analyzer's type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private final String name
writerback to summary
private final PrintWriter writer

Constructor Detail

DotFileFormatterback to summary
pack-priv DotFileFormatter(PrintWriter writer, Archive archive)

Method Detail

closeback to summary
public void close()

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
visitDependenceback to summary
public void visitDependence(String origin, Archive originArchive, String target, Archive targetArchive)

Implements com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Doc from com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Visits a recorded dependency from origin to target which can be a fully-qualified classname, a package name, a module or archive name depending on the Analyzer's type.

Annotations
@Override
com.sun.tools.jdeps back to summary

pack-priv Class JdepsWriter.DotFileWriter.SummaryDotFile

extends Object
implements Visitor, AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable, com.sun.tools.jdeps.Analyzer.Visitor

Field Summary

Modifier and TypeField and Description
private final Map<Archive, Map<Archive, StringBuilder>>
private final Analyzer.Type
private final PrintWriter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

pack-priv String
getLabel(Archive origin, Archive target)

pack-priv Analyzer.Visitor
public void
visitDependence(String origin, Archive originArchive, String target, Archive targetArchive)

Implements com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Visits a recorded dependency from origin to target which can be a fully-qualified classname, a package name, a module or archive name depending on the Analyzer's type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

edgesback to summary
private final Map<Archive, Map<Archive, StringBuilder>> edges
typeback to summary
private final Analyzer.Type type
writerback to summary
private final PrintWriter writer

Constructor Detail

SummaryDotFileback to summary
pack-priv SummaryDotFile(PrintWriter writer, Analyzer.Type type)

Method Detail

closeback to summary
public void close()

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
getLabelback to summary
pack-priv String getLabel(Archive origin, Archive target)
labelBuilderback to summary
pack-priv Analyzer.Visitor labelBuilder()
visitDependenceback to summary
public void visitDependence(String origin, Archive originArchive, String target, Archive targetArchive)

Implements com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Doc from com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Visits a recorded dependency from origin to target which can be a fully-qualified classname, a package name, a module or archive name depending on the Analyzer's type.

Annotations
@Override
com.sun.tools.jdeps back to summary

pack-priv Class JdepsWriter.SimpleWriter

extends JdepsWriter
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv final PrintWriter
Inherited from com.sun.tools.jdeps.JdepsWriter:
showModuletype

Constructor Summary

AccessConstructor and Description
pack-priv
SimpleWriter(PrintWriter writer, Analyzer.Type type, boolean showModule)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
Inherited from com.sun.tools.jdeps.JdepsWriter:
newDotWriternewSimpleWritershowModuletoTag

Field Detail

writerback to summary
pack-priv final PrintWriter writer

Constructor Detail

SimpleWriterback to summary
pack-priv SimpleWriter(PrintWriter writer, Analyzer.Type type, boolean showModule)

Method Detail

generateOutputback to summary
pack-priv void generateOutput(Collection<Archive> archives, Analyzer analyzer)

Implements abstract com.sun.tools.jdeps.JdepsWriter.generateOutput.

Annotations
@Override
com.sun.tools.jdeps back to summary

pack-priv Class JdepsWriter.SimpleWriter.RawOutputFormatter

extends Object
implements Visitor
Class Inheritance
  • java.lang.Object
  • com.sun.tools.jdeps.JdepsWriter.SimpleWriter.RawOutputFormatter
All Implemented Interfaces
com.sun.tools.jdeps.Analyzer.Visitor

Field Summary

Modifier and TypeField and Description
private String
private final PrintWriter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
visitDependence(String origin, Archive originArchive, String target, Archive targetArchive)

Implements com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Visits a recorded dependency from origin to target which can be a fully-qualified classname, a package name, a module or archive name depending on the Analyzer's type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pkgback to summary
private String pkg
writerback to summary
private final PrintWriter writer

Constructor Detail

RawOutputFormatterback to summary
pack-priv RawOutputFormatter(PrintWriter writer)

Method Detail

visitDependenceback to summary
public void visitDependence(String origin, Archive originArchive, String target, Archive targetArchive)

Implements com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Doc from com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Visits a recorded dependency from origin to target which can be a fully-qualified classname, a package name, a module or archive name depending on the Analyzer's type.

Annotations
@Override
com.sun.tools.jdeps back to summary

pack-priv Class JdepsWriter.SimpleWriter.RawSummaryFormatter

extends Object
implements Visitor
Class Inheritance
  • java.lang.Object
  • com.sun.tools.jdeps.JdepsWriter.SimpleWriter.RawSummaryFormatter
All Implemented Interfaces
com.sun.tools.jdeps.Analyzer.Visitor

Field Summary

Modifier and TypeField and Description
private final PrintWriter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
visitDependence(String origin, Archive originArchive, String target, Archive targetArchive)

Implements com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Visits a recorded dependency from origin to target which can be a fully-qualified classname, a package name, a module or archive name depending on the Analyzer's type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

writerback to summary
private final PrintWriter writer

Constructor Detail

RawSummaryFormatterback to summary
pack-priv RawSummaryFormatter(PrintWriter writer)

Method Detail

printModuleDescriptorback to summary
public void printModuleDescriptor(Module module)
visitDependenceback to summary
public void visitDependence(String origin, Archive originArchive, String target, Archive targetArchive)

Implements com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Doc from com.sun.tools.jdeps.Analyzer.Visitor.visitDependence.

Visits a recorded dependency from origin to target which can be a fully-qualified classname, a package name, a module or archive name depending on the Analyzer's type.

Annotations
@Override